2026-03-24 19:42:57,155 - INFO - Domain Default found not creating 2026-03-24 19:42:57,311 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95285904 not found, creating it 2026-03-24 19:42:57,748 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95285904, ID : 36a1679d-158c-4d0c-b0b6-aded6e81ebbe 2026-03-24 19:42:59,187 - INFO - ================================================================================ 2026-03-24 19:42:59,187 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 19:42:59,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-24 19:42:59,459 - INFO - Initial checks done. Running the testcase now 2026-03-24 19:42:59,459 - INFO - 2026-03-24 19:42:59,459 - INFO - ================================================================================ 2026-03-24 19:42:59,459 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 19:42:59,459 - 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-03-24 19:42:59,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-24 19:42:59,746 - INFO - Initial checks done. Running the testcase now 2026-03-24 19:42:59,746 - INFO - 2026-03-24 19:43:00,104 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95285904:ctest-vn4-06484717, 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-95285904:ctest-vn4-06484717, 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-95285904:ctest-vn4-06484717, 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-95285904:ctest-vn4-06484717, 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-03-24 19:43:00,609 - DEBUG - Response for create_network : {'network': {'id': '22278ffe-52ad-4258-a14e-b5114c7b634d', 'name': 'ctest-vn4-06484717', 'tenant_id': '36a1679d158c4d0cb0b6aded6e81ebbe', 'project_id': '36a1679d158c4d0cb0b6aded6e81ebbe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95285904', 'ctest-vn4-06484717'], 'port_security_enabled': True, 'description': ''}} 2026-03-24 19:43:00,822 - DEBUG - Response for create_subnet : {'subnet': {'id': '85794ede-0899-400c-af12-f4d3601ebb0f', 'name': '', 'tenant_id': '36a1679d158c4d0cb0b6aded6e81ebbe', 'network_id': '22278ffe-52ad-4258-a14e-b5114c7b634d', 'ip_version': 4, 'cidr': '181.162.217.192/26', 'allocation_pools': [{'start': '181.162.217.194', 'end': '181.162.217.254'}], 'gateway_ip': '181.162.217.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.162.217.194', 'tags': [], 'project_id': '36a1679d158c4d0cb0b6aded6e81ebbe'}} 2026-03-24 19:43:01,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '51c63648-3edf-4bcf-90df-ecc1fb375536', 'name': '', 'tenant_id': '36a1679d158c4d0cb0b6aded6e81ebbe', 'network_id': '22278ffe-52ad-4258-a14e-b5114c7b634d', 'ip_version': 6, 'cidr': '25c5:2547:b2d9:1af3:f383:84f8::/96', 'allocation_pools': [{'start': '25c5:2547:b2d9:1af3:f383:84f8:0:2', 'end': '25c5:2547:b2d9:1af3:f383:84f8:ffff:fffe'}], 'gateway_ip': '25c5:2547:b2d9:1af3:f383:84f8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25c5:2547:b2d9:1af3:f383:84f8:0:2', 'tags': [], 'project_id': '36a1679d158c4d0cb0b6aded6e81ebbe'}} 2026-03-24 19:43:01,028 - INFO - Created VN ctest-vn4-06484717 2026-03-24 19:43:01,077 - DEBUG - VN ctest-vn4-06484717 UUID is 22278ffe-52ad-4258-a14e-b5114c7b634d 2026-03-24 19:43:01,278 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22278ffe-52ad-4258-a14e-b5114c7b634d', 'name': 'ctest-vn4-06484717', 'tenant_id': '36a1679d158c4d0cb0b6aded6e81ebbe', 'project_id': '36a1679d158c4d0cb0b6aded6e81ebbe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85794ede-0899-400c-af12-f4d3601ebb0f', '51c63648-3edf-4bcf-90df-ecc1fb375536'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95285904', 'ctest-vn4-06484717'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95285904', 'ctest-policy1-20115846']], 'subnet_ipam': [{'subnet_cidr': '181.162.217.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25c5:2547:b2d9:1af3:f383:84f8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-24 19:43:01,433 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 19:43:01,726 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 19:43:01,759 - DEBUG - Requesting: http://10.0.0.38:8082/domain/919d5ea9-ac55-483e-ae99-dc23197abd89 2026-03-24 19:43:01,771 - DEBUG - Requesting: http://10.0.0.38:8082/project/36a1679d-158c-4d0c-b0b6-aded6e81ebbe 2026-03-24 19:43:01,842 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22278ffe-52ad-4258-a14e-b5114c7b634d 2026-03-24 19:43:01,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22278ffe-52ad-4258-a14e-b5114c7b634d 2026-03-24 19:43:01,865 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2409cced-f1e6-4d48-b21f-3177ffa55ef0 2026-03-24 19:43:01,872 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2409cced-f1e6-4d48-b21f-3177ffa55ef0 2026-03-24 19:43:01,878 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/923845f4-1344-4617-9161-dae980f691a9 2026-03-24 19:43:01,885 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 19:43:01,885 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22278ffe-52ad-4258-a14e-b5114c7b634d 2026-03-24 19:43:01,894 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2409cced-f1e6-4d48-b21f-3177ffa55ef0 2026-03-24 19:43:01,908 - INFO - Verified VN network id 11 for VN 22278ffe-52ad-4258-a14e-b5114c7b634d 2026-03-24 19:43:01,909 - INFO - Verifications in API Server for VN ctest-vn4-06484717 passed 2026-03-24 19:43:01,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22278ffe-52ad-4258-a14e-b5114c7b634d 2026-03-24 19:43:01,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2409cced-f1e6-4d48-b21f-3177ffa55ef0 2026-03-24 19:43:01,923 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2409cced-f1e6-4d48-b21f-3177ffa55ef0 2026-03-24 19:43:01,929 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/923845f4-1344-4617-9161-dae980f691a9 2026-03-24 19:43:01,940 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95285904:ctest-vn4-06484717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95285904', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2461094043852816984', 'uuid-lslong': '11623426774192055117'}, 'enable': 'true', 'created': '2026-03-24T19:43:00', 'last-modified': '2026-03-24T19:43:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690544'} 2026-03-24 19:43:01,946 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 19:43:01,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06484717 passed 2026-03-24 19:43:01,946 - DEBUG - ====Verifying policy data for ctest-vn4-06484717 in API_Server ====== 2026-03-24 19:43:01,946 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 19:43:01,951 - DEBUG - Requesting: http://10.0.0.38:8082/domain/919d5ea9-ac55-483e-ae99-dc23197abd89 2026-03-24 19:43:01,961 - DEBUG - Requesting: http://10.0.0.38:8082/project/36a1679d-158c-4d0c-b0b6-aded6e81ebbe 2026-03-24 19:43:02,031 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22278ffe-52ad-4258-a14e-b5114c7b634d 2026-03-24 19:43:02,041 - DEBUG - ==>Verifying data for policy with id: 96026571-72cd-46e0-b118-8b9c929a1b8f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95285904', 'ctest-policy1-20115846'] 2026-03-24 19:43:02,041 - INFO - VN ctest-vn4-06484717 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-24 19:43:02,041 - DEBUG - Verifying the vn in opserver 2026-03-24 19:43:02,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95285904:ctest-vn4-06484717 virtual network link through opserver 10.0.0.38 2026-03-24 19:43:02,042 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-24 19:43:02,344 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-24 19:43:02,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95285904:ctest-vn4-06484717', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95285904:ctest-vn4-06484717?flat'} 2026-03-24 19:43:02,470 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95285904:ctest-vn4-06484717 is found in opserver 2026-03-24 19:43:02,482 - DEBUG - Do not have enough data to verify VN in agent 2026-03-24 19:43:02,488 - DEBUG - VRF ids for VN ctest-vn4-06484717: {} 2026-03-24 19:43:02,488 - DEBUG - ====Verifying data for ctest-policy1-20115846 in API_Server ====== 2026-03-24 19:43:02,488 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 19:43:02,505 - DEBUG - Requesting: http://10.0.0.38:8082/domain/919d5ea9-ac55-483e-ae99-dc23197abd89 2026-03-24 19:43:02,548 - DEBUG - Requesting: http://10.0.0.38:8082/project/36a1679d-158c-4d0c-b0b6-aded6e81ebbe 2026-03-24 19:43:02,641 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/96026571-72cd-46e0-b118-8b9c929a1b8f 2026-03-24 19:43:02,658 - INFO - Verified policy ctest-policy1-20115846 in API Server, Result: True 2026-03-24 19:43:02,658 - INFO - Done with setup and verification, moving onto test .. 2026-03-24 19:43:02,671 - INFO - Deleting VN ctest-vn4-06484717 2026-03-24 19:43:02,940 - DEBUG - Response for deleting network () 2026-03-24 19:43:02,940 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2409cced-f1e6-4d48-b21f-3177ffa55ef0 2026-03-24 19:43:02,946 - DEBUG - Response Code: 404 2026-03-24 19:43:02,947 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 19:43:02,951 - DEBUG - Requesting: http://10.0.0.38:8082/domain/919d5ea9-ac55-483e-ae99-dc23197abd89 2026-03-24 19:43:03,011 - DEBUG - Requesting: http://10.0.0.38:8082/project/36a1679d-158c-4d0c-b0b6-aded6e81ebbe 2026-03-24 19:43:03,085 - INFO - Validated that VN ctest-vn4-06484717 is not found in API Server 2026-03-24 19:43:03,094 - DEBUG - VN ctest-vn4-06484717 is not present in Agent 10.0.0.38 2026-03-24 19:43:03,094 - INFO - Validated that VN ctest-vn4-06484717 is not in any agent 2026-03-24 19:43:03,107 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06484717 info 2026-03-24 19:43:03,131 - INFO - Deleted policy ctest-policy1-20115846 2026-03-24 19:43:03,297 - DEBUG - policy ctest-policy1-20115846 is not found in API Server 2026-03-24 19:43:03,559 - DEBUG - No XMPP flaps were noticed during the test
2026-03-24 19:43:03,559 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-24 19:43:03,559 - INFO - -------------------------------------------------------------------------------- 2026-03-24 19:43:03,846 - DEBUG - No XMPP flaps were noticed during the test
2026-03-24 19:43:03,846 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-24 19:43:03,847 - INFO - -------------------------------------------------------------------------------- 2026-03-24 19:43:04,530 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95285904, ID : 36a1679d-158c-4d0c-b0b6-aded6e81ebbe