2026-08-25 08:20:07,544 - INFO - Domain Default found not creating 2026-08-25 08:20:07,720 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24711806 not found, creating it 2026-08-25 08:20:08,269 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24711806, ID : 2ab77376-e7ab-467e-a609-07481e276400 2026-08-25 08:20:10,067 - INFO - ================================================================================ 2026-08-25 08:20:10,067 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:20:10,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-25 08:20:10,340 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:20:10,340 - INFO - 2026-08-25 08:20:10,340 - INFO - ================================================================================ 2026-08-25 08:20:10,340 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:20:10,340 - 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-08-25 08:20:10,637 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-25 08:20:10,637 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:20:10,637 - INFO - 2026-08-25 08:20:11,079 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24711806:ctest-vn4-79188372, 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-24711806:ctest-vn4-79188372, 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-24711806:ctest-vn4-79188372, 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-24711806:ctest-vn4-79188372, 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-08-25 08:20:11,663 - DEBUG - Response for create_network : {'network': {'id': '7fe1a774-4698-4afc-aeb8-eebf4eed65d7', 'name': 'ctest-vn4-79188372', 'tenant_id': '2ab77376e7ab467ea60907481e276400', 'project_id': '2ab77376e7ab467ea60907481e276400', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24711806', 'ctest-vn4-79188372'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:20:11,879 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bfce049-ed32-4e16-8139-0d42432eae4a', 'name': '', 'tenant_id': '2ab77376e7ab467ea60907481e276400', 'network_id': '7fe1a774-4698-4afc-aeb8-eebf4eed65d7', 'ip_version': 4, 'cidr': '122.164.128.128/26', 'allocation_pools': [{'start': '122.164.128.130', 'end': '122.164.128.190'}], 'gateway_ip': '122.164.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.164.128.130', 'tags': [], 'project_id': '2ab77376e7ab467ea60907481e276400'}} 2026-08-25 08:20:12,110 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed6a99b9-449f-4ff1-b42f-b7d674818be1', 'name': '', 'tenant_id': '2ab77376e7ab467ea60907481e276400', 'network_id': '7fe1a774-4698-4afc-aeb8-eebf4eed65d7', 'ip_version': 6, 'cidr': '3381:972d:c145:d8af:519c:3f56::/96', 'allocation_pools': [{'start': '3381:972d:c145:d8af:519c:3f56:0:2', 'end': '3381:972d:c145:d8af:519c:3f56:ffff:fffe'}], 'gateway_ip': '3381:972d:c145:d8af:519c:3f56:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3381:972d:c145:d8af:519c:3f56:0:2', 'tags': [], 'project_id': '2ab77376e7ab467ea60907481e276400'}} 2026-08-25 08:20:12,134 - INFO - Created VN ctest-vn4-79188372 2026-08-25 08:20:12,190 - DEBUG - VN ctest-vn4-79188372 UUID is 7fe1a774-4698-4afc-aeb8-eebf4eed65d7 2026-08-25 08:20:12,417 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7fe1a774-4698-4afc-aeb8-eebf4eed65d7', 'name': 'ctest-vn4-79188372', 'tenant_id': '2ab77376e7ab467ea60907481e276400', 'project_id': '2ab77376e7ab467ea60907481e276400', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0bfce049-ed32-4e16-8139-0d42432eae4a', 'ed6a99b9-449f-4ff1-b42f-b7d674818be1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24711806', 'ctest-vn4-79188372'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24711806', 'ctest-policy1-25891378']], 'subnet_ipam': [{'subnet_cidr': '122.164.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3381:972d:c145:d8af:519c:3f56::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:20:12,586 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 08:20:12,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 08:20:12,988 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb 2026-08-25 08:20:13,006 - DEBUG - Requesting: http://10.0.0.38:8082/project/2ab77376-e7ab-467e-a609-07481e276400 2026-08-25 08:20:13,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fe1a774-4698-4afc-aeb8-eebf4eed65d7 2026-08-25 08:20:13,108 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fe1a774-4698-4afc-aeb8-eebf4eed65d7 2026-08-25 08:20:13,125 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/12918d6b-d2b7-4da3-bf8b-99e2ba829134 2026-08-25 08:20:13,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/12918d6b-d2b7-4da3-bf8b-99e2ba829134 2026-08-25 08:20:13,148 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac0c40e8-d991-4d41-9190-2cdcb52cce6b 2026-08-25 08:20:13,159 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 08:20:13,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fe1a774-4698-4afc-aeb8-eebf4eed65d7 2026-08-25 08:20:13,173 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/12918d6b-d2b7-4da3-bf8b-99e2ba829134 2026-08-25 08:20:13,194 - INFO - Verified VN network id 11 for VN 7fe1a774-4698-4afc-aeb8-eebf4eed65d7 2026-08-25 08:20:13,194 - INFO - Verifications in API Server for VN ctest-vn4-79188372 passed 2026-08-25 08:20:13,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fe1a774-4698-4afc-aeb8-eebf4eed65d7 2026-08-25 08:20:13,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/12918d6b-d2b7-4da3-bf8b-99e2ba829134 2026-08-25 08:20:13,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/12918d6b-d2b7-4da3-bf8b-99e2ba829134 2026-08-25 08:20:13,230 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac0c40e8-d991-4d41-9190-2cdcb52cce6b 2026-08-25 08:20:13,246 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24711806:ctest-vn4-79188372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24711806', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9214830430419176188', 'uuid-lslong': '12590075263744566743'}, 'enable': 'true', 'created': '2026-08-25T08:20:11', 'last-modified': '2026-08-25T08:20:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855075'} 2026-08-25 08:20:13,253 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 08:20:13,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79188372 passed 2026-08-25 08:20:13,254 - DEBUG - ====Verifying policy data for ctest-vn4-79188372 in API_Server ====== 2026-08-25 08:20:13,254 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 08:20:13,262 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb 2026-08-25 08:20:13,278 - DEBUG - Requesting: http://10.0.0.38:8082/project/2ab77376-e7ab-467e-a609-07481e276400 2026-08-25 08:20:13,371 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fe1a774-4698-4afc-aeb8-eebf4eed65d7 2026-08-25 08:20:13,383 - DEBUG - ==>Verifying data for policy with id: 14632502-4e4d-4862-9b35-29458c53e571, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24711806', 'ctest-policy1-25891378'] 2026-08-25 08:20:13,383 - INFO - VN ctest-vn4-79188372 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 08:20:13,383 - DEBUG - Verifying the vn in opserver 2026-08-25 08:20:13,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24711806:ctest-vn4-79188372 virtual network link through opserver 10.0.0.38 2026-08-25 08:20:13,383 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-25 08:20:13,753 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-25 08:20:13,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24711806:ctest-vn4-79188372', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24711806:ctest-vn4-79188372?flat'} 2026-08-25 08:20:13,815 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24711806:ctest-vn4-79188372 is found in opserver 2026-08-25 08:20:13,830 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 08:20:13,835 - DEBUG - VRF ids for VN ctest-vn4-79188372: {} 2026-08-25 08:20:13,836 - DEBUG - ====Verifying data for ctest-policy1-25891378 in API_Server ====== 2026-08-25 08:20:13,836 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 08:20:13,844 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb 2026-08-25 08:20:13,857 - DEBUG - Requesting: http://10.0.0.38:8082/project/2ab77376-e7ab-467e-a609-07481e276400 2026-08-25 08:20:13,935 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/14632502-4e4d-4862-9b35-29458c53e571 2026-08-25 08:20:13,947 - INFO - Verified policy ctest-policy1-25891378 in API Server, Result: True 2026-08-25 08:20:13,948 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 08:20:13,960 - INFO - Deleting VN ctest-vn4-79188372 2026-08-25 08:20:14,120 - DEBUG - Response for deleting network () 2026-08-25 08:20:14,120 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/12918d6b-d2b7-4da3-bf8b-99e2ba829134 2026-08-25 08:20:14,127 - DEBUG - Response Code: 404 2026-08-25 08:20:14,127 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 08:20:14,135 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d4677a8-59fa-40f2-a66c-82b6bdeb6beb 2026-08-25 08:20:14,196 - DEBUG - Requesting: http://10.0.0.38:8082/project/2ab77376-e7ab-467e-a609-07481e276400 2026-08-25 08:20:14,280 - INFO - Validated that VN ctest-vn4-79188372 is not found in API Server 2026-08-25 08:20:14,292 - DEBUG - VN ctest-vn4-79188372 is not present in Agent 10.0.0.38 2026-08-25 08:20:14,292 - INFO - Validated that VN ctest-vn4-79188372 is not in any agent 2026-08-25 08:20:14,310 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79188372 info 2026-08-25 08:20:14,343 - INFO - Deleted policy ctest-policy1-25891378 2026-08-25 08:20:14,510 - DEBUG - policy ctest-policy1-25891378 is not found in API Server 2026-08-25 08:20:14,779 - DEBUG - No XMPP flaps were noticed during the test