2026-08-14 11:41:44,797 - INFO - Domain Default found not creating 2026-08-14 11:41:44,960 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01459402 not found, creating it 2026-08-14 11:41:45,440 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01459402, ID : 8940747b-091a-4160-bf6b-40681b4d63b3 2026-08-14 11:41:47,009 - INFO - ================================================================================ 2026-08-14 11:41:47,009 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 11:41:47,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-08-14 11:41:47,268 - INFO - Initial checks done. Running the testcase now 2026-08-14 11:41:47,268 - INFO - 2026-08-14 11:41:47,268 - INFO - ================================================================================ 2026-08-14 11:41:47,268 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 11:41:47,268 - 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-14 11:41:47,565 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-08-14 11:41:47,565 - INFO - Initial checks done. Running the testcase now 2026-08-14 11:41:47,565 - INFO - 2026-08-14 11:41:47,967 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01459402:ctest-vn4-12540151, 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-01459402:ctest-vn4-12540151, 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-01459402:ctest-vn4-12540151, 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-01459402:ctest-vn4-12540151, 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-14 11:41:48,497 - DEBUG - Response for create_network : {'network': {'id': '61d24a55-d2fa-4656-8f0a-868afce386ed', 'name': 'ctest-vn4-12540151', 'tenant_id': '8940747b091a4160bf6b40681b4d63b3', 'project_id': '8940747b091a4160bf6b40681b4d63b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01459402', 'ctest-vn4-12540151'], 'port_security_enabled': True, 'description': ''}} 2026-08-14 11:41:48,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcc903d1-58b1-4f6b-882b-d6cf848e3d0c', 'name': '', 'tenant_id': '8940747b091a4160bf6b40681b4d63b3', 'network_id': '61d24a55-d2fa-4656-8f0a-868afce386ed', 'ip_version': 4, 'cidr': '129.211.104.0/26', 'allocation_pools': [{'start': '129.211.104.2', 'end': '129.211.104.62'}], 'gateway_ip': '129.211.104.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.211.104.2', 'tags': [], 'project_id': '8940747b091a4160bf6b40681b4d63b3'}} 2026-08-14 11:41:48,814 - DEBUG - Response for create_subnet : {'subnet': {'id': '0313ab24-769e-4d04-8228-0d6f14e29a4a', 'name': '', 'tenant_id': '8940747b091a4160bf6b40681b4d63b3', 'network_id': '61d24a55-d2fa-4656-8f0a-868afce386ed', 'ip_version': 6, 'cidr': '3ea3:3296:8bb4:2b31:e12d:d129::/96', 'allocation_pools': [{'start': '3ea3:3296:8bb4:2b31:e12d:d129:0:2', 'end': '3ea3:3296:8bb4:2b31:e12d:d129:ffff:fffe'}], 'gateway_ip': '3ea3:3296:8bb4:2b31:e12d:d129:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ea3:3296:8bb4:2b31:e12d:d129:0:2', 'tags': [], 'project_id': '8940747b091a4160bf6b40681b4d63b3'}} 2026-08-14 11:41:48,833 - INFO - Created VN ctest-vn4-12540151 2026-08-14 11:41:48,885 - DEBUG - VN ctest-vn4-12540151 UUID is 61d24a55-d2fa-4656-8f0a-868afce386ed 2026-08-14 11:41:49,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61d24a55-d2fa-4656-8f0a-868afce386ed', 'name': 'ctest-vn4-12540151', 'tenant_id': '8940747b091a4160bf6b40681b4d63b3', 'project_id': '8940747b091a4160bf6b40681b4d63b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcc903d1-58b1-4f6b-882b-d6cf848e3d0c', '0313ab24-769e-4d04-8228-0d6f14e29a4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01459402', 'ctest-vn4-12540151'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01459402', 'ctest-policy1-92280416']], 'subnet_ipam': [{'subnet_cidr': '129.211.104.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ea3:3296:8bb4:2b31:e12d:d129::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-14 11:41:49,277 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-14 11:41:49,605 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-14 11:41:49,634 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cda30dd0-4093-44c1-848a-eac380395ace 2026-08-14 11:41:49,648 - DEBUG - Requesting: http://10.0.0.38:8082/project/8940747b-091a-4160-bf6b-40681b4d63b3 2026-08-14 11:41:49,758 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61d24a55-d2fa-4656-8f0a-868afce386ed 2026-08-14 11:41:49,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61d24a55-d2fa-4656-8f0a-868afce386ed 2026-08-14 11:41:49,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/56064ec7-b7a4-4f98-907c-bdd5e53d03cf 2026-08-14 11:41:49,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/56064ec7-b7a4-4f98-907c-bdd5e53d03cf 2026-08-14 11:41:49,797 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1bada23b-ab91-494a-8126-4a29633a2f62 2026-08-14 11:41:49,806 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-14 11:41:49,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61d24a55-d2fa-4656-8f0a-868afce386ed 2026-08-14 11:41:49,818 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/56064ec7-b7a4-4f98-907c-bdd5e53d03cf 2026-08-14 11:41:49,836 - INFO - Verified VN network id 11 for VN 61d24a55-d2fa-4656-8f0a-868afce386ed 2026-08-14 11:41:49,836 - INFO - Verifications in API Server for VN ctest-vn4-12540151 passed 2026-08-14 11:41:49,836 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61d24a55-d2fa-4656-8f0a-868afce386ed 2026-08-14 11:41:49,846 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/56064ec7-b7a4-4f98-907c-bdd5e53d03cf 2026-08-14 11:41:49,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/56064ec7-b7a4-4f98-907c-bdd5e53d03cf 2026-08-14 11:41:49,863 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1bada23b-ab91-494a-8126-4a29633a2f62 2026-08-14 11:41:49,876 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01459402:ctest-vn4-12540151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01459402', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7048778099260540502', 'uuid-lslong': '10307198628697179885'}, 'enable': 'true', 'created': '2026-08-14T11:41:48', 'last-modified': '2026-08-14T11:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.793083'} 2026-08-14 11:41:49,882 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-14 11:41:49,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12540151 passed 2026-08-14 11:41:49,883 - DEBUG - ====Verifying policy data for ctest-vn4-12540151 in API_Server ====== 2026-08-14 11:41:49,883 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-14 11:41:49,891 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cda30dd0-4093-44c1-848a-eac380395ace 2026-08-14 11:41:49,904 - DEBUG - Requesting: http://10.0.0.38:8082/project/8940747b-091a-4160-bf6b-40681b4d63b3 2026-08-14 11:41:49,985 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61d24a55-d2fa-4656-8f0a-868afce386ed 2026-08-14 11:41:49,996 - DEBUG - ==>Verifying data for policy with id: d1a435ff-c05f-4bf1-a565-2e3baad6db17, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01459402', 'ctest-policy1-92280416'] 2026-08-14 11:41:49,996 - INFO - VN ctest-vn4-12540151 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-14 11:41:49,996 - DEBUG - Verifying the vn in opserver 2026-08-14 11:41:49,996 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01459402:ctest-vn4-12540151 virtual network link through opserver 10.0.0.38 2026-08-14 11:41:49,996 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-14 11:41:50,328 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-14 11:41:50,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01459402:ctest-vn4-12540151', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01459402:ctest-vn4-12540151?flat'} 2026-08-14 11:41:50,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01459402:ctest-vn4-12540151 is found in opserver 2026-08-14 11:41:50,403 - DEBUG - Do not have enough data to verify VN in agent 2026-08-14 11:41:50,408 - DEBUG - VRF ids for VN ctest-vn4-12540151: {} 2026-08-14 11:41:50,408 - DEBUG - ====Verifying data for ctest-policy1-92280416 in API_Server ====== 2026-08-14 11:41:50,408 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-14 11:41:50,414 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cda30dd0-4093-44c1-848a-eac380395ace 2026-08-14 11:41:50,425 - DEBUG - Requesting: http://10.0.0.38:8082/project/8940747b-091a-4160-bf6b-40681b4d63b3 2026-08-14 11:41:50,505 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/d1a435ff-c05f-4bf1-a565-2e3baad6db17 2026-08-14 11:41:50,515 - INFO - Verified policy ctest-policy1-92280416 in API Server, Result: True 2026-08-14 11:41:50,515 - INFO - Done with setup and verification, moving onto test .. 2026-08-14 11:41:50,524 - INFO - Deleting VN ctest-vn4-12540151 2026-08-14 11:41:50,647 - DEBUG - Response for deleting network () 2026-08-14 11:41:50,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/56064ec7-b7a4-4f98-907c-bdd5e53d03cf 2026-08-14 11:41:50,652 - DEBUG - Response Code: 404 2026-08-14 11:41:50,653 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-14 11:41:50,660 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cda30dd0-4093-44c1-848a-eac380395ace 2026-08-14 11:41:50,715 - DEBUG - Requesting: http://10.0.0.38:8082/project/8940747b-091a-4160-bf6b-40681b4d63b3 2026-08-14 11:41:50,785 - INFO - Validated that VN ctest-vn4-12540151 is not found in API Server 2026-08-14 11:41:50,796 - DEBUG - VN ctest-vn4-12540151 is not present in Agent 10.0.0.38 2026-08-14 11:41:50,796 - INFO - Validated that VN ctest-vn4-12540151 is not in any agent 2026-08-14 11:41:50,812 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12540151 info 2026-08-14 11:41:50,837 - INFO - Deleted policy ctest-policy1-92280416 2026-08-14 11:41:51,005 - DEBUG - policy ctest-policy1-92280416 is not found in API Server 2026-08-14 11:41:51,259 - DEBUG - No XMPP flaps were noticed during the test