2026-06-19 20:45:54,489 - INFO - Domain Default found not creating 2026-06-19 20:45:54,637 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52427241 not found, creating it 2026-06-19 20:45:55,064 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52427241, ID : f78cafea-0bb6-47e3-a25e-5c753681ff6d 2026-06-19 20:45:56,592 - INFO - ================================================================================ 2026-06-19 20:45:56,593 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 20:45:56,846 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-06-19 20:45:56,846 - INFO - Initial checks done. Running the testcase now 2026-06-19 20:45:56,846 - INFO - 2026-06-19 20:45:56,846 - INFO - ================================================================================ 2026-06-19 20:45:56,846 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 20:45:56,846 - 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-06-19 20:45:57,137 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-06-19 20:45:57,137 - INFO - Initial checks done. Running the testcase now 2026-06-19 20:45:57,137 - INFO - 2026-06-19 20:45:57,548 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52427241:ctest-vn4-59849735, 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-52427241:ctest-vn4-59849735, 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-52427241:ctest-vn4-59849735, 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-52427241:ctest-vn4-59849735, 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-06-19 20:45:58,029 - DEBUG - Response for create_network : {'network': {'id': '7bb672aa-4b74-4ac5-b32b-9b597e9a58f9', 'name': 'ctest-vn4-59849735', 'tenant_id': 'f78cafea0bb647e3a25e5c753681ff6d', 'project_id': 'f78cafea0bb647e3a25e5c753681ff6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52427241', 'ctest-vn4-59849735'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 20:45:58,253 - DEBUG - Response for create_subnet : {'subnet': {'id': '512f5954-bbca-4021-a785-68ac5502579d', 'name': '', 'tenant_id': 'f78cafea0bb647e3a25e5c753681ff6d', 'network_id': '7bb672aa-4b74-4ac5-b32b-9b597e9a58f9', 'ip_version': 4, 'cidr': '161.137.52.0/26', 'allocation_pools': [{'start': '161.137.52.2', 'end': '161.137.52.62'}], 'gateway_ip': '161.137.52.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.137.52.2', 'tags': [], 'project_id': 'f78cafea0bb647e3a25e5c753681ff6d'}} 2026-06-19 20:45:58,443 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed28d395-d0c8-4107-8ed7-9d70a9f810cd', 'name': '', 'tenant_id': 'f78cafea0bb647e3a25e5c753681ff6d', 'network_id': '7bb672aa-4b74-4ac5-b32b-9b597e9a58f9', 'ip_version': 6, 'cidr': '2e2d:394d:92fe:de58:ce55:c86f::/96', 'allocation_pools': [{'start': '2e2d:394d:92fe:de58:ce55:c86f:0:2', 'end': '2e2d:394d:92fe:de58:ce55:c86f:ffff:fffe'}], 'gateway_ip': '2e2d:394d:92fe:de58:ce55:c86f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e2d:394d:92fe:de58:ce55:c86f:0:2', 'tags': [], 'project_id': 'f78cafea0bb647e3a25e5c753681ff6d'}} 2026-06-19 20:45:58,459 - INFO - Created VN ctest-vn4-59849735 2026-06-19 20:45:58,508 - DEBUG - VN ctest-vn4-59849735 UUID is 7bb672aa-4b74-4ac5-b32b-9b597e9a58f9 2026-06-19 20:45:58,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bb672aa-4b74-4ac5-b32b-9b597e9a58f9', 'name': 'ctest-vn4-59849735', 'tenant_id': 'f78cafea0bb647e3a25e5c753681ff6d', 'project_id': 'f78cafea0bb647e3a25e5c753681ff6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['512f5954-bbca-4021-a785-68ac5502579d', 'ed28d395-d0c8-4107-8ed7-9d70a9f810cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52427241', 'ctest-vn4-59849735'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52427241', 'ctest-policy1-42381216']], 'subnet_ipam': [{'subnet_cidr': '161.137.52.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e2d:394d:92fe:de58:ce55:c86f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 20:45:58,873 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 20:45:59,196 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 20:45:59,217 - DEBUG - Requesting: http://10.0.0.19:8082/domain/44e49982-02e6-4058-b701-2ca41fef80a3 2026-06-19 20:45:59,226 - DEBUG - Requesting: http://10.0.0.19:8082/project/f78cafea-0bb6-47e3-a25e-5c753681ff6d 2026-06-19 20:45:59,293 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7bb672aa-4b74-4ac5-b32b-9b597e9a58f9 2026-06-19 20:45:59,304 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7bb672aa-4b74-4ac5-b32b-9b597e9a58f9 2026-06-19 20:45:59,312 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5689dfcf-aeba-4032-af6c-6ff8a4608ec1 2026-06-19 20:45:59,318 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5689dfcf-aeba-4032-af6c-6ff8a4608ec1 2026-06-19 20:45:59,323 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/fb6601f6-ae9d-46ab-8e78-805c5f5d0a6e 2026-06-19 20:45:59,329 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 20:45:59,329 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7bb672aa-4b74-4ac5-b32b-9b597e9a58f9 2026-06-19 20:45:59,337 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5689dfcf-aeba-4032-af6c-6ff8a4608ec1 2026-06-19 20:45:59,347 - INFO - Verified VN network id 11 for VN 7bb672aa-4b74-4ac5-b32b-9b597e9a58f9 2026-06-19 20:45:59,347 - INFO - Verifications in API Server for VN ctest-vn4-59849735 passed 2026-06-19 20:45:59,347 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7bb672aa-4b74-4ac5-b32b-9b597e9a58f9 2026-06-19 20:45:59,354 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5689dfcf-aeba-4032-af6c-6ff8a4608ec1 2026-06-19 20:45:59,359 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5689dfcf-aeba-4032-af6c-6ff8a4608ec1 2026-06-19 20:45:59,364 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/fb6601f6-ae9d-46ab-8e78-805c5f5d0a6e 2026-06-19 20:45:59,373 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52427241:ctest-vn4-59849735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52427241', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8914438588162394821', 'uuid-lslong': '12910583565466097913'}, 'enable': 'true', 'created': '2026-06-19T20:45:58', 'last-modified': '2026-06-19T20:45:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689301'} 2026-06-19 20:45:59,378 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 20:45:59,378 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59849735 passed 2026-06-19 20:45:59,378 - DEBUG - ====Verifying policy data for ctest-vn4-59849735 in API_Server ====== 2026-06-19 20:45:59,378 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 20:45:59,382 - DEBUG - Requesting: http://10.0.0.19:8082/domain/44e49982-02e6-4058-b701-2ca41fef80a3 2026-06-19 20:45:59,391 - DEBUG - Requesting: http://10.0.0.19:8082/project/f78cafea-0bb6-47e3-a25e-5c753681ff6d 2026-06-19 20:45:59,458 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7bb672aa-4b74-4ac5-b32b-9b597e9a58f9 2026-06-19 20:45:59,467 - DEBUG - ==>Verifying data for policy with id: 5ffac83a-9ca1-4ad4-8122-e11b89c2c445, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52427241', 'ctest-policy1-42381216'] 2026-06-19 20:45:59,467 - INFO - VN ctest-vn4-59849735 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 20:45:59,467 - DEBUG - Verifying the vn in opserver 2026-06-19 20:45:59,467 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52427241:ctest-vn4-59849735 virtual network link through opserver 10.0.0.19 2026-06-19 20:45:59,467 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 20:45:59,792 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 20:45:59,839 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52427241:ctest-vn4-59849735', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52427241:ctest-vn4-59849735?flat'} 2026-06-19 20:45:59,839 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52427241:ctest-vn4-59849735 is found in opserver 2026-06-19 20:45:59,848 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 20:45:59,853 - DEBUG - VRF ids for VN ctest-vn4-59849735: {} 2026-06-19 20:45:59,853 - DEBUG - ====Verifying data for ctest-policy1-42381216 in API_Server ====== 2026-06-19 20:45:59,853 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 20:45:59,859 - DEBUG - Requesting: http://10.0.0.19:8082/domain/44e49982-02e6-4058-b701-2ca41fef80a3 2026-06-19 20:45:59,867 - DEBUG - Requesting: http://10.0.0.19:8082/project/f78cafea-0bb6-47e3-a25e-5c753681ff6d 2026-06-19 20:45:59,936 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/5ffac83a-9ca1-4ad4-8122-e11b89c2c445 2026-06-19 20:45:59,944 - INFO - Verified policy ctest-policy1-42381216 in API Server, Result: True 2026-06-19 20:45:59,944 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 20:45:59,951 - INFO - Deleting VN ctest-vn4-59849735 2026-06-19 20:46:00,064 - DEBUG - Response for deleting network () 2026-06-19 20:46:00,064 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5689dfcf-aeba-4032-af6c-6ff8a4608ec1 2026-06-19 20:46:00,068 - DEBUG - Response Code: 404 2026-06-19 20:46:00,068 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 20:46:00,072 - DEBUG - Requesting: http://10.0.0.19:8082/domain/44e49982-02e6-4058-b701-2ca41fef80a3 2026-06-19 20:46:00,124 - DEBUG - Requesting: http://10.0.0.19:8082/project/f78cafea-0bb6-47e3-a25e-5c753681ff6d 2026-06-19 20:46:00,192 - INFO - Validated that VN ctest-vn4-59849735 is not found in API Server 2026-06-19 20:46:00,201 - DEBUG - VN ctest-vn4-59849735 is not present in Agent 10.0.0.19 2026-06-19 20:46:00,201 - INFO - Validated that VN ctest-vn4-59849735 is not in any agent 2026-06-19 20:46:00,212 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59849735 info 2026-06-19 20:46:00,231 - INFO - Deleted policy ctest-policy1-42381216 2026-06-19 20:46:00,392 - DEBUG - policy ctest-policy1-42381216 is not found in API Server 2026-06-19 20:46:00,645 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 20:46:00,645 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 20:46:00,645 - INFO - -------------------------------------------------------------------------------- 2026-06-19 20:46:00,937 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 20:46:00,937 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 20:46:00,938 - INFO - -------------------------------------------------------------------------------- 2026-06-19 20:46:01,627 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52427241, ID : f78cafea-0bb6-47e3-a25e-5c753681ff6d