2026-01-29 17:46:08,928 - INFO - Domain Default found not creating 2026-01-29 17:46:09,430 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93419045 not found, creating it 2026-01-29 17:46:09,926 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93419045, ID : eaed7d09-7cb9-442b-bd27-3858efa7934c 2026-01-29 17:46:11,415 - INFO - ================================================================================ 2026-01-29 17:46:11,415 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 17:46:11,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-29 17:46:11,673 - INFO - Initial checks done. Running the testcase now 2026-01-29 17:46:11,673 - INFO - 2026-01-29 17:46:11,673 - INFO - ================================================================================ 2026-01-29 17:46:11,673 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 17:46:11,673 - 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 17:46:11,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-29 17:46:11,958 - INFO - Initial checks done. Running the testcase now 2026-01-29 17:46:11,958 - INFO - 2026-01-29 17:46:12,318 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93419045:ctest-vn4-11197834, 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-93419045:ctest-vn4-11197834, 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-93419045:ctest-vn4-11197834, 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-93419045:ctest-vn4-11197834, 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 17:46:12,838 - DEBUG - Response for create_network : {'network': {'id': 'ceeb8ea0-a678-459e-9342-cb74cc6c140e', 'name': 'ctest-vn4-11197834', 'tenant_id': 'eaed7d097cb9442bbd273858efa7934c', 'project_id': 'eaed7d097cb9442bbd273858efa7934c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93419045', 'ctest-vn4-11197834'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 17:46:13,048 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c5c6095-e0c8-4a22-9f53-e1ab56b3b100', 'name': '', 'tenant_id': 'eaed7d097cb9442bbd273858efa7934c', 'network_id': 'ceeb8ea0-a678-459e-9342-cb74cc6c140e', 'ip_version': 4, 'cidr': '203.181.240.64/26', 'allocation_pools': [{'start': '203.181.240.66', 'end': '203.181.240.126'}], 'gateway_ip': '203.181.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.181.240.66', 'tags': [], 'project_id': 'eaed7d097cb9442bbd273858efa7934c'}} 2026-01-29 17:46:13,236 - DEBUG - Response for create_subnet : {'subnet': {'id': '33338415-736c-4747-963a-2283044b0d25', 'name': '', 'tenant_id': 'eaed7d097cb9442bbd273858efa7934c', 'network_id': 'ceeb8ea0-a678-459e-9342-cb74cc6c140e', 'ip_version': 6, 'cidr': '3539:440a:2d3e:71cd:4014:5c5c::/96', 'allocation_pools': [{'start': '3539:440a:2d3e:71cd:4014:5c5c:0:2', 'end': '3539:440a:2d3e:71cd:4014:5c5c:ffff:fffe'}], 'gateway_ip': '3539:440a:2d3e:71cd:4014:5c5c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3539:440a:2d3e:71cd:4014:5c5c:0:2', 'tags': [], 'project_id': 'eaed7d097cb9442bbd273858efa7934c'}} 2026-01-29 17:46:13,254 - INFO - Created VN ctest-vn4-11197834 2026-01-29 17:46:13,305 - DEBUG - VN ctest-vn4-11197834 UUID is ceeb8ea0-a678-459e-9342-cb74cc6c140e 2026-01-29 17:46:13,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ceeb8ea0-a678-459e-9342-cb74cc6c140e', 'name': 'ctest-vn4-11197834', 'tenant_id': 'eaed7d097cb9442bbd273858efa7934c', 'project_id': 'eaed7d097cb9442bbd273858efa7934c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c5c6095-e0c8-4a22-9f53-e1ab56b3b100', '33338415-736c-4747-963a-2283044b0d25'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93419045', 'ctest-vn4-11197834'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93419045', 'ctest-policy1-17002920']], 'subnet_ipam': [{'subnet_cidr': '203.181.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3539:440a:2d3e:71cd:4014:5c5c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 17:46:13,665 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 17:46:13,957 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 17:46:13,986 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c899d912-b5db-4d73-8995-a02a71b2b98a 2026-01-29 17:46:14,000 - DEBUG - Requesting: http://10.0.0.22:8082/project/eaed7d09-7cb9-442b-bd27-3858efa7934c 2026-01-29 17:46:14,072 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ceeb8ea0-a678-459e-9342-cb74cc6c140e 2026-01-29 17:46:14,085 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ceeb8ea0-a678-459e-9342-cb74cc6c140e 2026-01-29 17:46:14,096 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f74278b0-30c4-4e97-9ee7-8b8b90d09aac 2026-01-29 17:46:14,104 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f74278b0-30c4-4e97-9ee7-8b8b90d09aac 2026-01-29 17:46:14,111 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/515aa2a7-a598-4060-8f6a-18b1dc94359b 2026-01-29 17:46:14,118 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 17:46:14,118 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ceeb8ea0-a678-459e-9342-cb74cc6c140e 2026-01-29 17:46:14,128 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f74278b0-30c4-4e97-9ee7-8b8b90d09aac 2026-01-29 17:46:14,142 - INFO - Verified VN network id 11 for VN ceeb8ea0-a678-459e-9342-cb74cc6c140e 2026-01-29 17:46:14,142 - INFO - Verifications in API Server for VN ctest-vn4-11197834 passed 2026-01-29 17:46:14,142 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ceeb8ea0-a678-459e-9342-cb74cc6c140e 2026-01-29 17:46:14,151 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f74278b0-30c4-4e97-9ee7-8b8b90d09aac 2026-01-29 17:46:14,159 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f74278b0-30c4-4e97-9ee7-8b8b90d09aac 2026-01-29 17:46:14,166 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/515aa2a7-a598-4060-8f6a-18b1dc94359b 2026-01-29 17:46:14,179 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93419045:ctest-vn4-11197834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93419045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14910167811978970526', 'uuid-lslong': '10611267374544589838'}, 'enable': 'true', 'created': '2026-01-29T17:46:12', 'last-modified': '2026-01-29T17:46:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703876'} 2026-01-29 17:46:14,185 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 17:46:14,185 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11197834 passed 2026-01-29 17:46:14,186 - DEBUG - ====Verifying policy data for ctest-vn4-11197834 in API_Server ====== 2026-01-29 17:46:14,186 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 17:46:14,192 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c899d912-b5db-4d73-8995-a02a71b2b98a 2026-01-29 17:46:14,203 - DEBUG - Requesting: http://10.0.0.22:8082/project/eaed7d09-7cb9-442b-bd27-3858efa7934c 2026-01-29 17:46:14,270 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ceeb8ea0-a678-459e-9342-cb74cc6c140e 2026-01-29 17:46:14,281 - DEBUG - ==>Verifying data for policy with id: acab5d31-30e9-4444-a9cb-2f4edd2df1d2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93419045', 'ctest-policy1-17002920'] 2026-01-29 17:46:14,281 - INFO - VN ctest-vn4-11197834 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 17:46:14,282 - DEBUG - Verifying the vn in opserver 2026-01-29 17:46:14,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93419045:ctest-vn4-11197834 virtual network link through opserver 10.0.0.22 2026-01-29 17:46:14,282 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 17:46:14,574 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 17:46:14,630 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93419045:ctest-vn4-11197834', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93419045:ctest-vn4-11197834?flat'} 2026-01-29 17:46:14,630 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93419045:ctest-vn4-11197834 is found in opserver 2026-01-29 17:46:14,639 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 17:46:14,643 - DEBUG - VRF ids for VN ctest-vn4-11197834: {} 2026-01-29 17:46:14,644 - DEBUG - ====Verifying data for ctest-policy1-17002920 in API_Server ====== 2026-01-29 17:46:14,644 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 17:46:14,648 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c899d912-b5db-4d73-8995-a02a71b2b98a 2026-01-29 17:46:14,657 - DEBUG - Requesting: http://10.0.0.22:8082/project/eaed7d09-7cb9-442b-bd27-3858efa7934c 2026-01-29 17:46:14,725 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/acab5d31-30e9-4444-a9cb-2f4edd2df1d2 2026-01-29 17:46:14,733 - INFO - Verified policy ctest-policy1-17002920 in API Server, Result: True 2026-01-29 17:46:14,733 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 17:46:14,742 - INFO - Deleting VN ctest-vn4-11197834 2026-01-29 17:46:14,858 - DEBUG - Response for deleting network () 2026-01-29 17:46:14,859 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f74278b0-30c4-4e97-9ee7-8b8b90d09aac 2026-01-29 17:46:14,864 - DEBUG - Response Code: 404 2026-01-29 17:46:14,864 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 17:46:14,869 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c899d912-b5db-4d73-8995-a02a71b2b98a 2026-01-29 17:46:14,922 - DEBUG - Requesting: http://10.0.0.22:8082/project/eaed7d09-7cb9-442b-bd27-3858efa7934c 2026-01-29 17:46:14,988 - INFO - Validated that VN ctest-vn4-11197834 is not found in API Server 2026-01-29 17:46:14,997 - DEBUG - VN ctest-vn4-11197834 is not present in Agent 10.0.0.22 2026-01-29 17:46:14,997 - INFO - Validated that VN ctest-vn4-11197834 is not in any agent 2026-01-29 17:46:15,010 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11197834 info 2026-01-29 17:46:15,031 - INFO - Deleted policy ctest-policy1-17002920 2026-01-29 17:46:15,193 - DEBUG - policy ctest-policy1-17002920 is not found in API Server 2026-01-29 17:46:15,446 - DEBUG - No XMPP flaps were noticed during the test