2026-02-27 12:00:49,726 - INFO - Domain Default found not creating 2026-02-27 12:00:49,994 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40670890 not found, creating it 2026-02-27 12:00:50,505 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40670890, ID : d3b53be6-e4e6-4d18-ac11-739a487a7821 2026-02-27 12:00:52,289 - INFO - ================================================================================ 2026-02-27 12:00:52,291 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-27 12:00:52,577 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-27 12:00:52,577 - INFO - Initial checks done. Running the testcase now 2026-02-27 12:00:52,578 - INFO - 2026-02-27 12:00:52,578 - INFO - ================================================================================ 2026-02-27 12:00:52,578 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-27 12:00:52,578 - 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-27 12:00:52,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-27 12:00:52,904 - INFO - Initial checks done. Running the testcase now 2026-02-27 12:00:52,905 - INFO - 2026-02-27 12:00:53,335 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40670890:ctest-vn4-19195145, 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-40670890:ctest-vn4-19195145, 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-40670890:ctest-vn4-19195145, 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-40670890:ctest-vn4-19195145, 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-27 12:00:53,949 - DEBUG - Response for create_network : {'network': {'id': 'f043c0e0-062d-4829-81d3-b8b0934346bd', 'name': 'ctest-vn4-19195145', 'tenant_id': 'd3b53be6e4e64d18ac11739a487a7821', 'project_id': 'd3b53be6e4e64d18ac11739a487a7821', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40670890', 'ctest-vn4-19195145'], 'port_security_enabled': True, 'description': ''}} 2026-02-27 12:00:54,168 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eab75ec3-7dda-45db-b2e5-30e89c2ce3fc', 'name': '', 'tenant_id': 'd3b53be6e4e64d18ac11739a487a7821', 'network_id': 'f043c0e0-062d-4829-81d3-b8b0934346bd', 'ip_version': 4, 'cidr': '116.250.54.192/26', 'allocation_pools': [{'start': '116.250.54.194', 'end': '116.250.54.254'}], 'gateway_ip': '116.250.54.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.250.54.194', 'tags': [], 'project_id': 'd3b53be6e4e64d18ac11739a487a7821'}} 2026-02-27 12:00:54,375 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd41ca756-89d8-43ea-bde8-eee826ba7c79', 'name': '', 'tenant_id': 'd3b53be6e4e64d18ac11739a487a7821', 'network_id': 'f043c0e0-062d-4829-81d3-b8b0934346bd', 'ip_version': 6, 'cidr': '306e:4f68:e317:af22:c121:649d::/96', 'allocation_pools': [{'start': '306e:4f68:e317:af22:c121:649d:0:2', 'end': '306e:4f68:e317:af22:c121:649d:ffff:fffe'}], 'gateway_ip': '306e:4f68:e317:af22:c121:649d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '306e:4f68:e317:af22:c121:649d:0:2', 'tags': [], 'project_id': 'd3b53be6e4e64d18ac11739a487a7821'}} 2026-02-27 12:00:54,398 - INFO - Created VN ctest-vn4-19195145 2026-02-27 12:00:54,455 - DEBUG - VN ctest-vn4-19195145 UUID is f043c0e0-062d-4829-81d3-b8b0934346bd 2026-02-27 12:00:54,818 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f043c0e0-062d-4829-81d3-b8b0934346bd', 'name': 'ctest-vn4-19195145', 'tenant_id': 'd3b53be6e4e64d18ac11739a487a7821', 'project_id': 'd3b53be6e4e64d18ac11739a487a7821', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eab75ec3-7dda-45db-b2e5-30e89c2ce3fc', 'd41ca756-89d8-43ea-bde8-eee826ba7c79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40670890', 'ctest-vn4-19195145'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40670890', 'ctest-policy1-71287679']], 'subnet_ipam': [{'subnet_cidr': '116.250.54.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '306e:4f68:e317:af22:c121:649d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-27 12:00:54,992 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 12:00:55,326 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 12:00:55,378 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2493d97c-c6c1-4935-b41c-8a857c38fd51 2026-02-27 12:00:55,402 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3b53be6-e4e6-4d18-ac11-739a487a7821 2026-02-27 12:00:55,503 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f043c0e0-062d-4829-81d3-b8b0934346bd 2026-02-27 12:00:55,522 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f043c0e0-062d-4829-81d3-b8b0934346bd 2026-02-27 12:00:55,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41058d27-e673-4536-953c-456cbae23301 2026-02-27 12:00:55,555 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41058d27-e673-4536-953c-456cbae23301 2026-02-27 12:00:55,566 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/128b1631-e6ee-4cc7-b65e-b8983fa7696b 2026-02-27 12:00:55,579 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-27 12:00:55,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f043c0e0-062d-4829-81d3-b8b0934346bd 2026-02-27 12:00:55,599 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41058d27-e673-4536-953c-456cbae23301 2026-02-27 12:00:55,620 - INFO - Verified VN network id 11 for VN f043c0e0-062d-4829-81d3-b8b0934346bd 2026-02-27 12:00:55,620 - INFO - Verifications in API Server for VN ctest-vn4-19195145 passed 2026-02-27 12:00:55,620 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f043c0e0-062d-4829-81d3-b8b0934346bd 2026-02-27 12:00:55,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41058d27-e673-4536-953c-456cbae23301 2026-02-27 12:00:55,649 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41058d27-e673-4536-953c-456cbae23301 2026-02-27 12:00:55,658 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/128b1631-e6ee-4cc7-b65e-b8983fa7696b 2026-02-27 12:00:55,676 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40670890:ctest-vn4-19195145', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40670890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17312893460951156777', 'uuid-lslong': '9355023919503066813'}, 'enable': 'true', 'created': '2026-02-27T12:00:53', 'last-modified': '2026-02-27T12:00:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915159'} 2026-02-27 12:00:55,682 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-27 12:00:55,682 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19195145 passed 2026-02-27 12:00:55,682 - DEBUG - ====Verifying policy data for ctest-vn4-19195145 in API_Server ====== 2026-02-27 12:00:55,682 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 12:00:55,688 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2493d97c-c6c1-4935-b41c-8a857c38fd51 2026-02-27 12:00:55,701 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3b53be6-e4e6-4d18-ac11-739a487a7821 2026-02-27 12:00:55,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f043c0e0-062d-4829-81d3-b8b0934346bd 2026-02-27 12:00:55,813 - DEBUG - ==>Verifying data for policy with id: 9f4272d7-3b5c-47b6-8d14-dca8054a8b65, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40670890', 'ctest-policy1-71287679'] 2026-02-27 12:00:55,813 - INFO - VN ctest-vn4-19195145 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-27 12:00:55,814 - DEBUG - Verifying the vn in opserver 2026-02-27 12:00:55,814 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40670890:ctest-vn4-19195145 virtual network link through opserver 10.0.0.38 2026-02-27 12:00:55,814 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-27 12:00:56,122 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-27 12:00:56,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40670890:ctest-vn4-19195145', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40670890:ctest-vn4-19195145?flat'} 2026-02-27 12:00:56,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40670890:ctest-vn4-19195145 is found in opserver 2026-02-27 12:00:56,219 - DEBUG - Do not have enough data to verify VN in agent 2026-02-27 12:00:56,233 - DEBUG - VRF ids for VN ctest-vn4-19195145: {} 2026-02-27 12:00:56,235 - DEBUG - ====Verifying data for ctest-policy1-71287679 in API_Server ====== 2026-02-27 12:00:56,235 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 12:00:56,248 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2493d97c-c6c1-4935-b41c-8a857c38fd51 2026-02-27 12:00:56,271 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3b53be6-e4e6-4d18-ac11-739a487a7821 2026-02-27 12:00:56,354 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/9f4272d7-3b5c-47b6-8d14-dca8054a8b65 2026-02-27 12:00:56,368 - INFO - Verified policy ctest-policy1-71287679 in API Server, Result: True 2026-02-27 12:00:56,368 - INFO - Done with setup and verification, moving onto test .. 2026-02-27 12:00:56,380 - INFO - Deleting VN ctest-vn4-19195145 2026-02-27 12:00:56,531 - DEBUG - Response for deleting network () 2026-02-27 12:00:56,531 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/41058d27-e673-4536-953c-456cbae23301 2026-02-27 12:00:56,537 - DEBUG - Response Code: 404 2026-02-27 12:00:56,537 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 12:00:56,542 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2493d97c-c6c1-4935-b41c-8a857c38fd51 2026-02-27 12:00:56,596 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3b53be6-e4e6-4d18-ac11-739a487a7821 2026-02-27 12:00:56,676 - INFO - Validated that VN ctest-vn4-19195145 is not found in API Server 2026-02-27 12:00:56,687 - DEBUG - VN ctest-vn4-19195145 is not present in Agent 10.0.0.38 2026-02-27 12:00:56,687 - INFO - Validated that VN ctest-vn4-19195145 is not in any agent 2026-02-27 12:00:56,705 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19195145 info 2026-02-27 12:00:56,730 - INFO - Deleted policy ctest-policy1-71287679 2026-02-27 12:00:56,918 - DEBUG - policy ctest-policy1-71287679 is not found in API Server 2026-02-27 12:00:57,213 - DEBUG - No XMPP flaps were noticed during the test