2026-01-22 01:59:57,491 - INFO - Domain Default found not creating 2026-01-22 01:59:57,671 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62417143 not found, creating it 2026-01-22 01:59:58,120 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62417143, ID : 07659583-2f39-4690-804f-91db647d1a28 2026-01-22 01:59:59,525 - INFO - ================================================================================ 2026-01-22 01:59:59,526 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 01:59:59,781 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.130': '0'}} with 2026-01-22 01:59:59,781 - INFO - Initial checks done. Running the testcase now 2026-01-22 01:59:59,781 - INFO - 2026-01-22 01:59:59,781 - INFO - ================================================================================ 2026-01-22 01:59:59,781 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 01:59:59,781 - 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-22 02:00:00,073 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.130': '0'}} with 2026-01-22 02:00:00,073 - INFO - Initial checks done. Running the testcase now 2026-01-22 02:00:00,073 - INFO - 2026-01-22 02:00:00,417 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62417143:ctest-vn4-96113856, 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-62417143:ctest-vn4-96113856, 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-62417143:ctest-vn4-96113856, 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-62417143:ctest-vn4-96113856, 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-22 02:00:00,909 - DEBUG - Response for create_network : {'network': {'id': '3d379d62-7e4a-4bb7-aba7-7e8ce476fce3', 'name': 'ctest-vn4-96113856', 'tenant_id': '076595832f394690804f91db647d1a28', 'project_id': '076595832f394690804f91db647d1a28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62417143', 'ctest-vn4-96113856'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 02:00:01,086 - DEBUG - Response for create_subnet : {'subnet': {'id': '0afd347d-3472-4b0f-8f5d-471d1715be52', 'name': '', 'tenant_id': '076595832f394690804f91db647d1a28', 'network_id': '3d379d62-7e4a-4bb7-aba7-7e8ce476fce3', 'ip_version': 4, 'cidr': '2.73.242.128/26', 'allocation_pools': [{'start': '2.73.242.130', 'end': '2.73.242.190'}], 'gateway_ip': '2.73.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.73.242.130', 'tags': [], 'project_id': '076595832f394690804f91db647d1a28'}} 2026-01-22 02:00:01,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a61bd7c-9c1f-4607-9698-7497861b69e7', 'name': '', 'tenant_id': '076595832f394690804f91db647d1a28', 'network_id': '3d379d62-7e4a-4bb7-aba7-7e8ce476fce3', 'ip_version': 6, 'cidr': '2d21:2b0e:42ef:d912:4792:8dd3::/96', 'allocation_pools': [{'start': '2d21:2b0e:42ef:d912:4792:8dd3:0:2', 'end': '2d21:2b0e:42ef:d912:4792:8dd3:ffff:fffe'}], 'gateway_ip': '2d21:2b0e:42ef:d912:4792:8dd3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d21:2b0e:42ef:d912:4792:8dd3:0:2', 'tags': [], 'project_id': '076595832f394690804f91db647d1a28'}} 2026-01-22 02:00:01,267 - INFO - Created VN ctest-vn4-96113856 2026-01-22 02:00:01,321 - DEBUG - VN ctest-vn4-96113856 UUID is 3d379d62-7e4a-4bb7-aba7-7e8ce476fce3 2026-01-22 02:00:01,516 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d379d62-7e4a-4bb7-aba7-7e8ce476fce3', 'name': 'ctest-vn4-96113856', 'tenant_id': '076595832f394690804f91db647d1a28', 'project_id': '076595832f394690804f91db647d1a28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0afd347d-3472-4b0f-8f5d-471d1715be52', '5a61bd7c-9c1f-4607-9698-7497861b69e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62417143', 'ctest-vn4-96113856'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62417143', 'ctest-policy1-20718192']], 'subnet_ipam': [{'subnet_cidr': '2.73.242.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d21:2b0e:42ef:d912:4792:8dd3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 02:00:01,681 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-01-22 02:00:01,971 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-01-22 02:00:02,005 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9f33313d-2efb-40c4-8a7e-a180880ced59 2026-01-22 02:00:02,016 - DEBUG - Requesting: http://10.0.0.73:8082/project/07659583-2f39-4690-804f-91db647d1a28 2026-01-22 02:00:02,089 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/3d379d62-7e4a-4bb7-aba7-7e8ce476fce3 2026-01-22 02:00:02,100 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/3d379d62-7e4a-4bb7-aba7-7e8ce476fce3 2026-01-22 02:00:02,109 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/9ac96726-ef5f-4571-85ce-546bf10a3951 2026-01-22 02:00:02,116 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/9ac96726-ef5f-4571-85ce-546bf10a3951 2026-01-22 02:00:02,122 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/d0f0e89a-b5bd-4b2a-a693-f5d6070c08a2 2026-01-22 02:00:02,129 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 02:00:02,129 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/3d379d62-7e4a-4bb7-aba7-7e8ce476fce3 2026-01-22 02:00:02,137 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/9ac96726-ef5f-4571-85ce-546bf10a3951 2026-01-22 02:00:02,149 - INFO - Verified VN network id 12 for VN 3d379d62-7e4a-4bb7-aba7-7e8ce476fce3 2026-01-22 02:00:02,149 - INFO - Verifications in API Server for VN ctest-vn4-96113856 passed 2026-01-22 02:00:02,149 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/3d379d62-7e4a-4bb7-aba7-7e8ce476fce3 2026-01-22 02:00:02,157 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/9ac96726-ef5f-4571-85ce-546bf10a3951 2026-01-22 02:00:02,163 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/9ac96726-ef5f-4571-85ce-546bf10a3951 2026-01-22 02:00:02,169 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/d0f0e89a-b5bd-4b2a-a693-f5d6070c08a2 2026-01-22 02:00:02,180 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62417143:ctest-vn4-96113856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62417143', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4411167406383844279', 'uuid-lslong': '12368994045189881059'}, 'enable': 'true', 'created': '2026-01-22T02:00:00', 'last-modified': '2026-01-22T02:00:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686843'} 2026-01-22 02:00:02,186 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 02:00:02,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96113856 passed 2026-01-22 02:00:02,187 - DEBUG - ====Verifying policy data for ctest-vn4-96113856 in API_Server ====== 2026-01-22 02:00:02,187 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-01-22 02:00:02,192 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9f33313d-2efb-40c4-8a7e-a180880ced59 2026-01-22 02:00:02,203 - DEBUG - Requesting: http://10.0.0.73:8082/project/07659583-2f39-4690-804f-91db647d1a28 2026-01-22 02:00:02,267 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/3d379d62-7e4a-4bb7-aba7-7e8ce476fce3 2026-01-22 02:00:02,276 - DEBUG - ==>Verifying data for policy with id: ca979366-6cae-4ad0-bd59-cdd0abcaa9a9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62417143', 'ctest-policy1-20718192'] 2026-01-22 02:00:02,276 - INFO - VN ctest-vn4-96113856 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 02:00:02,276 - DEBUG - Verifying the vn in opserver 2026-01-22 02:00:02,276 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62417143:ctest-vn4-96113856 virtual network link through opserver 10.0.0.73 2026-01-22 02:00:02,276 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-01-22 02:00:02,569 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-01-22 02:00:02,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62417143:ctest-vn4-96113856', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62417143:ctest-vn4-96113856?flat'} 2026-01-22 02:00:02,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62417143:ctest-vn4-96113856 is found in opserver 2026-01-22 02:00:02,633 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 02:00:02,637 - DEBUG - VRF ids for VN ctest-vn4-96113856: {} 2026-01-22 02:00:02,637 - DEBUG - ====Verifying data for ctest-policy1-20718192 in API_Server ====== 2026-01-22 02:00:02,637 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-01-22 02:00:02,642 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9f33313d-2efb-40c4-8a7e-a180880ced59 2026-01-22 02:00:02,651 - DEBUG - Requesting: http://10.0.0.73:8082/project/07659583-2f39-4690-804f-91db647d1a28 2026-01-22 02:00:02,715 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/ca979366-6cae-4ad0-bd59-cdd0abcaa9a9 2026-01-22 02:00:02,724 - INFO - Verified policy ctest-policy1-20718192 in API Server, Result: True 2026-01-22 02:00:02,724 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 02:00:02,736 - INFO - Deleting VN ctest-vn4-96113856 2026-01-22 02:00:02,842 - DEBUG - Response for deleting network () 2026-01-22 02:00:02,842 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/9ac96726-ef5f-4571-85ce-546bf10a3951 2026-01-22 02:00:02,847 - DEBUG - Response Code: 404 2026-01-22 02:00:02,847 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-01-22 02:00:02,852 - DEBUG - Requesting: http://10.0.0.73:8082/domain/9f33313d-2efb-40c4-8a7e-a180880ced59 2026-01-22 02:00:02,909 - DEBUG - Requesting: http://10.0.0.73:8082/project/07659583-2f39-4690-804f-91db647d1a28 2026-01-22 02:00:02,978 - INFO - Validated that VN ctest-vn4-96113856 is not found in API Server 2026-01-22 02:00:02,987 - DEBUG - VN ctest-vn4-96113856 is not present in Agent 10.0.0.73 2026-01-22 02:00:02,987 - INFO - Validated that VN ctest-vn4-96113856 is not in any agent 2026-01-22 02:00:02,999 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96113856 info 2026-01-22 02:00:03,020 - INFO - Deleted policy ctest-policy1-20718192 2026-01-22 02:00:03,181 - DEBUG - policy ctest-policy1-20718192 is not found in API Server 2026-01-22 02:00:03,437 - DEBUG - No XMPP flaps were noticed during the test
2026-01-22 02:00:03,437 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-22 02:00:03,437 - INFO - -------------------------------------------------------------------------------- 2026-01-22 02:00:03,727 - DEBUG - No XMPP flaps were noticed during the test
2026-01-22 02:00:03,728 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-22 02:00:03,728 - INFO - -------------------------------------------------------------------------------- 2026-01-22 02:00:04,397 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62417143, ID : 07659583-2f39-4690-804f-91db647d1a28