2026-01-29 13:19:02,630 - INFO - Domain Default found not creating 2026-01-29 13:19:02,833 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28781959 not found, creating it 2026-01-29 13:19:03,322 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28781959, ID : 797c9a62-aadd-4a84-8968-e50925d0c96d 2026-01-29 13:19:04,937 - INFO - ================================================================================ 2026-01-29 13:19:04,937 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:19:05,208 - DEBUG - Nothing to compare xmpp stats {'10.0.0.156': {'10.20.0.14': '0'}} with 2026-01-29 13:19:05,208 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:19:05,208 - INFO - 2026-01-29 13:19:05,208 - INFO - ================================================================================ 2026-01-29 13:19:05,208 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:19:05,208 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-01-29 13:19:05,496 - DEBUG - Nothing to compare xmpp stats {'10.0.0.156': {'10.20.0.14': '0'}} with 2026-01-29 13:19:05,496 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:19:05,496 - INFO - 2026-01-29 13:19:05,861 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-01-29 13:19:06,400 - DEBUG - Response for create_network : {'network': {'id': '543d670c-9c87-4bb4-a013-4dc4de34b56a', 'name': 'ctest-vn4-22254369', 'tenant_id': '797c9a62aadd4a848968e50925d0c96d', 'project_id': '797c9a62aadd4a848968e50925d0c96d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28781959', 'ctest-vn4-22254369'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:19:06,586 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5e1b634-3aab-4735-8c25-2e95b24bb9f8', 'name': '', 'tenant_id': '797c9a62aadd4a848968e50925d0c96d', 'network_id': '543d670c-9c87-4bb4-a013-4dc4de34b56a', 'ip_version': 4, 'cidr': '193.194.47.0/26', 'allocation_pools': [{'start': '193.194.47.2', 'end': '193.194.47.62'}], 'gateway_ip': '193.194.47.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.194.47.2', 'tags': [], 'project_id': '797c9a62aadd4a848968e50925d0c96d'}} 2026-01-29 13:19:06,767 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efa1f31f-a62e-47e5-a3c1-2b5631c16846', 'name': '', 'tenant_id': '797c9a62aadd4a848968e50925d0c96d', 'network_id': '543d670c-9c87-4bb4-a013-4dc4de34b56a', 'ip_version': 6, 'cidr': '32a2:2072:6451:6983:47f0:1f35::/96', 'allocation_pools': [{'start': '32a2:2072:6451:6983:47f0:1f35:0:2', 'end': '32a2:2072:6451:6983:47f0:1f35:ffff:fffe'}], 'gateway_ip': '32a2:2072:6451:6983:47f0:1f35:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32a2:2072:6451:6983:47f0:1f35:0:2', 'tags': [], 'project_id': '797c9a62aadd4a848968e50925d0c96d'}} 2026-01-29 13:19:06,789 - INFO - Created VN ctest-vn4-22254369 2026-01-29 13:19:06,842 - DEBUG - VN ctest-vn4-22254369 UUID is 543d670c-9c87-4bb4-a013-4dc4de34b56a 2026-01-29 13:19:07,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '543d670c-9c87-4bb4-a013-4dc4de34b56a', 'name': 'ctest-vn4-22254369', 'tenant_id': '797c9a62aadd4a848968e50925d0c96d', 'project_id': '797c9a62aadd4a848968e50925d0c96d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5e1b634-3aab-4735-8c25-2e95b24bb9f8', 'efa1f31f-a62e-47e5-a3c1-2b5631c16846'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28781959', 'ctest-vn4-22254369'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28781959', 'ctest-policy1-99240152']], 'subnet_ipam': [{'subnet_cidr': '193.194.47.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32a2:2072:6451:6983:47f0:1f35::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:19:07,242 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-29 13:19:07,559 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-29 13:19:07,597 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82 2026-01-29 13:19:07,610 - DEBUG - Requesting: http://10.0.0.156:8082/project/797c9a62-aadd-4a84-8968-e50925d0c96d 2026-01-29 13:19:07,686 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/543d670c-9c87-4bb4-a013-4dc4de34b56a 2026-01-29 13:19:07,699 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/543d670c-9c87-4bb4-a013-4dc4de34b56a 2026-01-29 13:19:07,713 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/d96616cb-edf9-49ed-b38b-b8f8da0a859e 2026-01-29 13:19:07,722 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/d96616cb-edf9-49ed-b38b-b8f8da0a859e 2026-01-29 13:19:07,730 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/84352e5d-f4a1-4567-aecc-5148e8813494 2026-01-29 13:19:07,737 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:19:07,737 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/543d670c-9c87-4bb4-a013-4dc4de34b56a 2026-01-29 13:19:07,747 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/d96616cb-edf9-49ed-b38b-b8f8da0a859e 2026-01-29 13:19:07,763 - INFO - Verified VN network id 11 for VN 543d670c-9c87-4bb4-a013-4dc4de34b56a 2026-01-29 13:19:07,763 - INFO - Verifications in API Server for VN ctest-vn4-22254369 passed 2026-01-29 13:19:07,764 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/543d670c-9c87-4bb4-a013-4dc4de34b56a 2026-01-29 13:19:07,774 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/d96616cb-edf9-49ed-b38b-b8f8da0a859e 2026-01-29 13:19:07,783 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/d96616cb-edf9-49ed-b38b-b8f8da0a859e 2026-01-29 13:19:07,791 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/84352e5d-f4a1-4567-aecc-5148e8813494 2026-01-29 13:19:07,804 - DEBUG - Control-node 10.0.0.156 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28781959', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6070121176628677556', 'uuid-lslong': '11534648578562897258'}, 'enable': 'true', 'created': '2026-01-29T13:19:06', 'last-modified': '2026-01-29T13:19:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751725'} 2026-01-29 13:19:07,812 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:19:07,812 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22254369 passed 2026-01-29 13:19:07,812 - DEBUG - ====Verifying policy data for ctest-vn4-22254369 in API_Server ====== 2026-01-29 13:19:07,812 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-29 13:19:07,818 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82 2026-01-29 13:19:07,832 - DEBUG - Requesting: http://10.0.0.156:8082/project/797c9a62-aadd-4a84-8968-e50925d0c96d 2026-01-29 13:19:07,913 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/543d670c-9c87-4bb4-a013-4dc4de34b56a 2026-01-29 13:19:07,926 - DEBUG - ==>Verifying data for policy with id: ec0fa938-1e95-4012-b74d-0eea15de52be, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28781959', 'ctest-policy1-99240152'] 2026-01-29 13:19:07,926 - INFO - VN ctest-vn4-22254369 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 13:19:07,926 - DEBUG - Verifying the vn in opserver 2026-01-29 13:19:07,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369 virtual network link through opserver 10.0.0.156 2026-01-29 13:19:07,926 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks 2026-01-29 13:19:08,247 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks 2026-01-29 13:19:08,318 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369', 'href': 'http://10.0.0.156:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369?flat'} 2026-01-29 13:19:08,318 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28781959:ctest-vn4-22254369 is found in opserver 2026-01-29 13:19:08,328 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 13:19:08,333 - DEBUG - VRF ids for VN ctest-vn4-22254369: {} 2026-01-29 13:19:08,333 - DEBUG - ====Verifying data for ctest-policy1-99240152 in API_Server ====== 2026-01-29 13:19:08,333 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-29 13:19:08,339 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82 2026-01-29 13:19:08,350 - DEBUG - Requesting: http://10.0.0.156:8082/project/797c9a62-aadd-4a84-8968-e50925d0c96d 2026-01-29 13:19:08,419 - DEBUG - Requesting: http://10.0.0.156:8082/network-policy/ec0fa938-1e95-4012-b74d-0eea15de52be 2026-01-29 13:19:08,433 - INFO - Verified policy ctest-policy1-99240152 in API Server, Result: True 2026-01-29 13:19:08,433 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 13:19:08,442 - INFO - Deleting VN ctest-vn4-22254369 2026-01-29 13:19:08,572 - DEBUG - Response for deleting network () 2026-01-29 13:19:08,572 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/d96616cb-edf9-49ed-b38b-b8f8da0a859e 2026-01-29 13:19:08,578 - DEBUG - Response Code: 404 2026-01-29 13:19:08,578 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-29 13:19:08,584 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82 2026-01-29 13:19:08,639 - DEBUG - Requesting: http://10.0.0.156:8082/project/797c9a62-aadd-4a84-8968-e50925d0c96d 2026-01-29 13:19:08,713 - INFO - Validated that VN ctest-vn4-22254369 is not found in API Server 2026-01-29 13:19:08,723 - DEBUG - VN ctest-vn4-22254369 is not present in Agent 10.0.0.156 2026-01-29 13:19:08,723 - INFO - Validated that VN ctest-vn4-22254369 is not in any agent 2026-01-29 13:19:08,738 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22254369 info 2026-01-29 13:19:08,763 - INFO - Deleted policy ctest-policy1-99240152 2026-01-29 13:19:08,929 - DEBUG - policy ctest-policy1-99240152 is not found in API Server 2026-01-29 13:19:09,184 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 13:19:09,184 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-29 13:19:09,184 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:19:09,480 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 13:19:09,480 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-29 13:19:09,480 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:19:10,186 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28781959, ID : 797c9a62-aadd-4a84-8968-e50925d0c96d