2026-02-16 15:33:58,018 - INFO - Domain Default found not creating 2026-02-16 15:33:58,168 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77443395 not found, creating it 2026-02-16 15:33:58,612 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77443395, ID : 7c7e5d81-8caf-4320-8cde-ae4eda1e01b3 2026-02-16 15:34:00,049 - INFO - ================================================================================ 2026-02-16 15:34:00,050 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 15:34:00,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-02-16 15:34:00,307 - INFO - Initial checks done. Running the testcase now 2026-02-16 15:34:00,307 - INFO - 2026-02-16 15:34:00,307 - INFO - ================================================================================ 2026-02-16 15:34:00,307 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 15:34:00,307 - 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-02-16 15:34:00,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-02-16 15:34:00,599 - INFO - Initial checks done. Running the testcase now 2026-02-16 15:34:00,599 - INFO - 2026-02-16 15:34:00,946 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77443395:ctest-vn4-84520982, 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-77443395:ctest-vn4-84520982, 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-77443395:ctest-vn4-84520982, 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-77443395:ctest-vn4-84520982, 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-02-16 15:34:01,458 - DEBUG - Response for create_network : {'network': {'id': '961eb5fc-85c8-49ff-9613-9e75b9e03a96', 'name': 'ctest-vn4-84520982', 'tenant_id': '7c7e5d818caf43208cdeae4eda1e01b3', 'project_id': '7c7e5d818caf43208cdeae4eda1e01b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77443395', 'ctest-vn4-84520982'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 15:34:01,680 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b85a81f8-8a90-4e19-8d2e-4f6516ef516b', 'name': '', 'tenant_id': '7c7e5d818caf43208cdeae4eda1e01b3', 'network_id': '961eb5fc-85c8-49ff-9613-9e75b9e03a96', 'ip_version': 4, 'cidr': '184.239.112.128/26', 'allocation_pools': [{'start': '184.239.112.130', 'end': '184.239.112.190'}], 'gateway_ip': '184.239.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.239.112.130', 'tags': [], 'project_id': '7c7e5d818caf43208cdeae4eda1e01b3'}} 2026-02-16 15:34:01,882 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6934190-1191-434e-8d49-50f39550a3af', 'name': '', 'tenant_id': '7c7e5d818caf43208cdeae4eda1e01b3', 'network_id': '961eb5fc-85c8-49ff-9613-9e75b9e03a96', 'ip_version': 6, 'cidr': '368a:f72d:61c1:71eb:cd8:d2fb::/96', 'allocation_pools': [{'start': '368a:f72d:61c1:71eb:cd8:d2fb:0:2', 'end': '368a:f72d:61c1:71eb:cd8:d2fb:ffff:fffe'}], 'gateway_ip': '368a:f72d:61c1:71eb:cd8:d2fb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '368a:f72d:61c1:71eb:cd8:d2fb:0:2', 'tags': [], 'project_id': '7c7e5d818caf43208cdeae4eda1e01b3'}} 2026-02-16 15:34:01,901 - INFO - Created VN ctest-vn4-84520982 2026-02-16 15:34:01,953 - DEBUG - VN ctest-vn4-84520982 UUID is 961eb5fc-85c8-49ff-9613-9e75b9e03a96 2026-02-16 15:34:02,156 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '961eb5fc-85c8-49ff-9613-9e75b9e03a96', 'name': 'ctest-vn4-84520982', 'tenant_id': '7c7e5d818caf43208cdeae4eda1e01b3', 'project_id': '7c7e5d818caf43208cdeae4eda1e01b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b85a81f8-8a90-4e19-8d2e-4f6516ef516b', 'c6934190-1191-434e-8d49-50f39550a3af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77443395', 'ctest-vn4-84520982'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77443395', 'ctest-policy1-62459623']], 'subnet_ipam': [{'subnet_cidr': '184.239.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '368a:f72d:61c1:71eb:cd8:d2fb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 15:34:02,317 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-16 15:34:02,608 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-16 15:34:02,638 - DEBUG - Requesting: http://10.0.0.129:8082/domain/edb46c6f-e96c-40af-9e3c-6a94f50fcc8a 2026-02-16 15:34:02,650 - DEBUG - Requesting: http://10.0.0.129:8082/project/7c7e5d81-8caf-4320-8cde-ae4eda1e01b3 2026-02-16 15:34:02,718 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/961eb5fc-85c8-49ff-9613-9e75b9e03a96 2026-02-16 15:34:02,730 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/961eb5fc-85c8-49ff-9613-9e75b9e03a96 2026-02-16 15:34:02,739 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/49291ccb-a39d-4315-8a4b-7d1644339287 2026-02-16 15:34:02,746 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/49291ccb-a39d-4315-8a4b-7d1644339287 2026-02-16 15:34:02,753 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/60d58a7b-5940-456a-b210-339d82f29e37 2026-02-16 15:34:02,760 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 15:34:02,760 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/961eb5fc-85c8-49ff-9613-9e75b9e03a96 2026-02-16 15:34:02,771 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/49291ccb-a39d-4315-8a4b-7d1644339287 2026-02-16 15:34:02,788 - INFO - Verified VN network id 11 for VN 961eb5fc-85c8-49ff-9613-9e75b9e03a96 2026-02-16 15:34:02,788 - INFO - Verifications in API Server for VN ctest-vn4-84520982 passed 2026-02-16 15:34:02,788 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/961eb5fc-85c8-49ff-9613-9e75b9e03a96 2026-02-16 15:34:02,799 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/49291ccb-a39d-4315-8a4b-7d1644339287 2026-02-16 15:34:02,807 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/49291ccb-a39d-4315-8a4b-7d1644339287 2026-02-16 15:34:02,813 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/60d58a7b-5940-456a-b210-339d82f29e37 2026-02-16 15:34:02,825 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77443395:ctest-vn4-84520982', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77443395', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10817283451171391999', 'uuid-lslong': '10814161358713535126'}, 'enable': 'true', 'created': '2026-02-16T15:34:01', 'last-modified': '2026-02-16T15:34:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697133'} 2026-02-16 15:34:02,831 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 15:34:02,831 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84520982 passed 2026-02-16 15:34:02,832 - DEBUG - ====Verifying policy data for ctest-vn4-84520982 in API_Server ====== 2026-02-16 15:34:02,832 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-16 15:34:02,837 - DEBUG - Requesting: http://10.0.0.129:8082/domain/edb46c6f-e96c-40af-9e3c-6a94f50fcc8a 2026-02-16 15:34:02,848 - DEBUG - Requesting: http://10.0.0.129:8082/project/7c7e5d81-8caf-4320-8cde-ae4eda1e01b3 2026-02-16 15:34:02,923 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/961eb5fc-85c8-49ff-9613-9e75b9e03a96 2026-02-16 15:34:02,935 - DEBUG - ==>Verifying data for policy with id: 1aff2896-507c-40e0-a57b-4e709106ecc5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77443395', 'ctest-policy1-62459623'] 2026-02-16 15:34:02,935 - INFO - VN ctest-vn4-84520982 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 15:34:02,935 - DEBUG - Verifying the vn in opserver 2026-02-16 15:34:02,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77443395:ctest-vn4-84520982 virtual network link through opserver 10.0.0.129 2026-02-16 15:34:02,935 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-16 15:34:03,228 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-16 15:34:03,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77443395:ctest-vn4-84520982', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77443395:ctest-vn4-84520982?flat'} 2026-02-16 15:34:03,292 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77443395:ctest-vn4-84520982 is found in opserver 2026-02-16 15:34:03,301 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 15:34:03,306 - DEBUG - VRF ids for VN ctest-vn4-84520982: {} 2026-02-16 15:34:03,306 - DEBUG - ====Verifying data for ctest-policy1-62459623 in API_Server ====== 2026-02-16 15:34:03,307 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-16 15:34:03,312 - DEBUG - Requesting: http://10.0.0.129:8082/domain/edb46c6f-e96c-40af-9e3c-6a94f50fcc8a 2026-02-16 15:34:03,325 - DEBUG - Requesting: http://10.0.0.129:8082/project/7c7e5d81-8caf-4320-8cde-ae4eda1e01b3 2026-02-16 15:34:03,391 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/1aff2896-507c-40e0-a57b-4e709106ecc5 2026-02-16 15:34:03,401 - INFO - Verified policy ctest-policy1-62459623 in API Server, Result: True 2026-02-16 15:34:03,401 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 15:34:03,409 - INFO - Deleting VN ctest-vn4-84520982 2026-02-16 15:34:03,536 - DEBUG - Response for deleting network () 2026-02-16 15:34:03,536 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/49291ccb-a39d-4315-8a4b-7d1644339287 2026-02-16 15:34:03,542 - DEBUG - Response Code: 404 2026-02-16 15:34:03,542 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-16 15:34:03,548 - DEBUG - Requesting: http://10.0.0.129:8082/domain/edb46c6f-e96c-40af-9e3c-6a94f50fcc8a 2026-02-16 15:34:03,602 - DEBUG - Requesting: http://10.0.0.129:8082/project/7c7e5d81-8caf-4320-8cde-ae4eda1e01b3 2026-02-16 15:34:03,670 - INFO - Validated that VN ctest-vn4-84520982 is not found in API Server 2026-02-16 15:34:03,681 - DEBUG - VN ctest-vn4-84520982 is not present in Agent 10.0.0.129 2026-02-16 15:34:03,681 - INFO - Validated that VN ctest-vn4-84520982 is not in any agent 2026-02-16 15:34:03,696 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84520982 info 2026-02-16 15:34:03,720 - INFO - Deleted policy ctest-policy1-62459623 2026-02-16 15:34:03,881 - DEBUG - policy ctest-policy1-62459623 is not found in API Server 2026-02-16 15:34:04,138 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 15:34:04,138 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 15:34:04,138 - INFO - -------------------------------------------------------------------------------- 2026-02-16 15:34:04,429 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 15:34:04,429 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 15:34:04,429 - INFO - -------------------------------------------------------------------------------- 2026-02-16 15:34:05,125 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77443395, ID : 7c7e5d81-8caf-4320-8cde-ae4eda1e01b3