2026-06-03 16:29:49,257 - INFO - Domain Default found not creating 2026-06-03 16:29:49,433 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18956080 not found, creating it 2026-06-03 16:29:49,931 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18956080, ID : a809bc93-e750-476f-a533-179664263a59 2026-06-03 16:29:51,482 - INFO - ================================================================================ 2026-06-03 16:29:51,482 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 16:29:51,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-03 16:29:51,745 - INFO - Initial checks done. Running the testcase now 2026-06-03 16:29:51,745 - INFO - 2026-06-03 16:29:51,745 - INFO - ================================================================================ 2026-06-03 16:29:51,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 16:29:51,746 - 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-03 16:29:52,037 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-03 16:29:52,037 - INFO - Initial checks done. Running the testcase now 2026-06-03 16:29:52,037 - INFO - 2026-06-03 16:29:52,392 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18956080:ctest-vn4-40109745, 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-18956080:ctest-vn4-40109745, 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-18956080:ctest-vn4-40109745, 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-18956080:ctest-vn4-40109745, 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-03 16:29:52,914 - DEBUG - Response for create_network : {'network': {'id': '60118b2f-be10-4e8f-93e4-1bcf22130457', 'name': 'ctest-vn4-40109745', 'tenant_id': 'a809bc93e750476fa533179664263a59', 'project_id': 'a809bc93e750476fa533179664263a59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18956080', 'ctest-vn4-40109745'], 'port_security_enabled': True, 'description': ''}} 2026-06-03 16:29:53,199 - DEBUG - Response for create_subnet : {'subnet': {'id': '83e0c14e-f60a-4bd0-8198-24bd51866e27', 'name': '', 'tenant_id': 'a809bc93e750476fa533179664263a59', 'network_id': '60118b2f-be10-4e8f-93e4-1bcf22130457', 'ip_version': 4, 'cidr': '170.227.173.192/26', 'allocation_pools': [{'start': '170.227.173.194', 'end': '170.227.173.254'}], 'gateway_ip': '170.227.173.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.227.173.194', 'tags': [], 'project_id': 'a809bc93e750476fa533179664263a59'}} 2026-06-03 16:29:53,343 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f002b350-aeb3-4120-94aa-beb012c29d12', 'name': '', 'tenant_id': 'a809bc93e750476fa533179664263a59', 'network_id': '60118b2f-be10-4e8f-93e4-1bcf22130457', 'ip_version': 6, 'cidr': '359b:d078:295:f0db:b0ef:57b7::/96', 'allocation_pools': [{'start': '359b:d078:295:f0db:b0ef:57b7:0:2', 'end': '359b:d078:295:f0db:b0ef:57b7:ffff:fffe'}], 'gateway_ip': '359b:d078:295:f0db:b0ef:57b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '359b:d078:295:f0db:b0ef:57b7:0:2', 'tags': [], 'project_id': 'a809bc93e750476fa533179664263a59'}} 2026-06-03 16:29:53,368 - INFO - Created VN ctest-vn4-40109745 2026-06-03 16:29:53,424 - DEBUG - VN ctest-vn4-40109745 UUID is 60118b2f-be10-4e8f-93e4-1bcf22130457 2026-06-03 16:29:53,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60118b2f-be10-4e8f-93e4-1bcf22130457', 'name': 'ctest-vn4-40109745', 'tenant_id': 'a809bc93e750476fa533179664263a59', 'project_id': 'a809bc93e750476fa533179664263a59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83e0c14e-f60a-4bd0-8198-24bd51866e27', 'f002b350-aeb3-4120-94aa-beb012c29d12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18956080', 'ctest-vn4-40109745'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18956080', 'ctest-policy1-59552257']], 'subnet_ipam': [{'subnet_cidr': '170.227.173.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '359b:d078:295:f0db:b0ef:57b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-03 16:29:53,807 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-03 16:29:54,114 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-03 16:29:54,147 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8ee10716-e135-4ff7-be7b-20b6bc69ebc1 2026-06-03 16:29:54,161 - DEBUG - Requesting: http://10.0.0.33:8082/project/a809bc93-e750-476f-a533-179664263a59 2026-06-03 16:29:54,239 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/60118b2f-be10-4e8f-93e4-1bcf22130457 2026-06-03 16:29:54,251 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/60118b2f-be10-4e8f-93e4-1bcf22130457 2026-06-03 16:29:54,260 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2581cb7b-b7ce-4786-9cb3-a692a092ac2d 2026-06-03 16:29:54,267 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2581cb7b-b7ce-4786-9cb3-a692a092ac2d 2026-06-03 16:29:54,274 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3c7b0b5a-3d9d-4967-863e-e6e9225894ca 2026-06-03 16:29:54,280 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 16:29:54,280 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/60118b2f-be10-4e8f-93e4-1bcf22130457 2026-06-03 16:29:54,289 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2581cb7b-b7ce-4786-9cb3-a692a092ac2d 2026-06-03 16:29:54,304 - INFO - Verified VN network id 11 for VN 60118b2f-be10-4e8f-93e4-1bcf22130457 2026-06-03 16:29:54,304 - INFO - Verifications in API Server for VN ctest-vn4-40109745 passed 2026-06-03 16:29:54,304 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/60118b2f-be10-4e8f-93e4-1bcf22130457 2026-06-03 16:29:54,314 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2581cb7b-b7ce-4786-9cb3-a692a092ac2d 2026-06-03 16:29:54,321 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2581cb7b-b7ce-4786-9cb3-a692a092ac2d 2026-06-03 16:29:54,329 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3c7b0b5a-3d9d-4967-863e-e6e9225894ca 2026-06-03 16:29:54,342 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18956080:ctest-vn4-40109745', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18956080', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6922467139413626511', 'uuid-lslong': '10656673194709288023'}, 'enable': 'true', 'created': '2026-06-03T16:29:52', 'last-modified': '2026-06-03T16:29:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729500'} 2026-06-03 16:29:54,349 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 16:29:54,349 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40109745 passed 2026-06-03 16:29:54,349 - DEBUG - ====Verifying policy data for ctest-vn4-40109745 in API_Server ====== 2026-06-03 16:29:54,349 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-03 16:29:54,355 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8ee10716-e135-4ff7-be7b-20b6bc69ebc1 2026-06-03 16:29:54,370 - DEBUG - Requesting: http://10.0.0.33:8082/project/a809bc93-e750-476f-a533-179664263a59 2026-06-03 16:29:54,443 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/60118b2f-be10-4e8f-93e4-1bcf22130457 2026-06-03 16:29:54,453 - DEBUG - ==>Verifying data for policy with id: 737ec9e2-aa55-44cd-9204-8900c0bf12b3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18956080', 'ctest-policy1-59552257'] 2026-06-03 16:29:54,453 - INFO - VN ctest-vn4-40109745 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-03 16:29:54,453 - DEBUG - Verifying the vn in opserver 2026-06-03 16:29:54,453 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18956080:ctest-vn4-40109745 virtual network link through opserver 10.0.0.33 2026-06-03 16:29:54,453 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-03 16:29:54,744 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-03 16:29:54,807 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18956080:ctest-vn4-40109745', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18956080:ctest-vn4-40109745?flat'} 2026-06-03 16:29:54,807 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18956080:ctest-vn4-40109745 is found in opserver 2026-06-03 16:29:54,818 - DEBUG - Do not have enough data to verify VN in agent 2026-06-03 16:29:54,824 - DEBUG - VRF ids for VN ctest-vn4-40109745: {} 2026-06-03 16:29:54,825 - DEBUG - ====Verifying data for ctest-policy1-59552257 in API_Server ====== 2026-06-03 16:29:54,825 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-03 16:29:54,831 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8ee10716-e135-4ff7-be7b-20b6bc69ebc1 2026-06-03 16:29:54,844 - DEBUG - Requesting: http://10.0.0.33:8082/project/a809bc93-e750-476f-a533-179664263a59 2026-06-03 16:29:54,916 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/737ec9e2-aa55-44cd-9204-8900c0bf12b3 2026-06-03 16:29:54,927 - INFO - Verified policy ctest-policy1-59552257 in API Server, Result: True 2026-06-03 16:29:54,927 - INFO - Done with setup and verification, moving onto test .. 2026-06-03 16:29:54,935 - INFO - Deleting VN ctest-vn4-40109745 2026-06-03 16:29:55,069 - DEBUG - Response for deleting network () 2026-06-03 16:29:55,069 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2581cb7b-b7ce-4786-9cb3-a692a092ac2d 2026-06-03 16:29:55,075 - DEBUG - Response Code: 404 2026-06-03 16:29:55,075 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-03 16:29:55,081 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8ee10716-e135-4ff7-be7b-20b6bc69ebc1 2026-06-03 16:29:55,136 - DEBUG - Requesting: http://10.0.0.33:8082/project/a809bc93-e750-476f-a533-179664263a59 2026-06-03 16:29:55,210 - INFO - Validated that VN ctest-vn4-40109745 is not found in API Server 2026-06-03 16:29:55,219 - DEBUG - VN ctest-vn4-40109745 is not present in Agent 10.0.0.33 2026-06-03 16:29:55,219 - INFO - Validated that VN ctest-vn4-40109745 is not in any agent 2026-06-03 16:29:55,234 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40109745 info 2026-06-03 16:29:55,256 - INFO - Deleted policy ctest-policy1-59552257 2026-06-03 16:29:55,419 - DEBUG - policy ctest-policy1-59552257 is not found in API Server 2026-06-03 16:29:55,676 - DEBUG - No XMPP flaps were noticed during the test 2026-06-03 16:29:55,676 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-03 16:29:55,676 - INFO - -------------------------------------------------------------------------------- 2026-06-03 16:29:55,969 - DEBUG - No XMPP flaps were noticed during the test 2026-06-03 16:29:55,969 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-03 16:29:55,969 - INFO - -------------------------------------------------------------------------------- 2026-06-03 16:29:56,661 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18956080, ID : a809bc93-e750-476f-a533-179664263a59