2026-09-28 02:27:49,693 - INFO - Domain Default found not creating 2026-09-28 02:27:49,878 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99462044 not found, creating it 2026-09-28 02:27:50,440 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99462044, ID : 53d0f232-2df9-46cf-8cc8-d7ea9b5f8b1d 2026-09-28 02:27:52,488 - INFO - ================================================================================ 2026-09-28 02:27:52,488 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-28 02:27:52,765 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.17': '0'}} with 2026-09-28 02:27:52,765 - INFO - Initial checks done. Running the testcase now 2026-09-28 02:27:52,765 - INFO - 2026-09-28 02:27:52,765 - INFO - ================================================================================ 2026-09-28 02:27:52,765 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-28 02:27:52,765 - 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-09-28 02:27:53,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.17': '0'}} with 2026-09-28 02:27:53,061 - INFO - Initial checks done. Running the testcase now 2026-09-28 02:27:53,061 - INFO - 2026-09-28 02:27:53,517 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99462044:ctest-vn4-10375937, 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-99462044:ctest-vn4-10375937, 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-99462044:ctest-vn4-10375937, 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-99462044:ctest-vn4-10375937, 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-09-28 02:27:54,081 - DEBUG - Response for create_network : {'network': {'id': '2ee6c04b-77c0-4315-9e6e-17f90aaed25a', 'name': 'ctest-vn4-10375937', 'tenant_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d', 'project_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99462044', 'ctest-vn4-10375937'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-09-28 02:27:54,333 - DEBUG - Response for create_subnet : {'subnet': {'id': '070690f8-42e1-4b4b-9137-75fb3f01cd0e', 'name': '', 'tenant_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d', 'network_id': '2ee6c04b-77c0-4315-9e6e-17f90aaed25a', 'ip_version': 4, 'cidr': '160.78.24.192/26', 'allocation_pools': [{'start': '160.78.24.194', 'end': '160.78.24.254'}], 'gateway_ip': '160.78.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-09-28T02:27:54.257098', 'updated_at': '2026-09-28T02:27:54.257098', 'dns_server_address': '160.78.24.194', 'tags': [], 'project_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d'}} 2026-09-28 02:27:54,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e045975-6cc8-4d3b-be36-73065bf913a0', 'name': '', 'tenant_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d', 'network_id': '2ee6c04b-77c0-4315-9e6e-17f90aaed25a', 'ip_version': 6, 'cidr': '3f28:82af:2a61:30b4:fe49:4733::/96', 'allocation_pools': [{'start': '3f28:82af:2a61:30b4:fe49:4733:0:2', 'end': '3f28:82af:2a61:30b4:fe49:4733:ffff:fffe'}], 'gateway_ip': '3f28:82af:2a61:30b4:fe49:4733:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-09-28T02:27:54.443822', 'updated_at': '2026-09-28T02:27:54.443822', 'dns_server_address': '3f28:82af:2a61:30b4:fe49:4733:0:2', 'tags': [], 'project_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d'}} 2026-09-28 02:27:54,552 - INFO - Created VN ctest-vn4-10375937 2026-09-28 02:27:54,608 - DEBUG - VN ctest-vn4-10375937 UUID is 2ee6c04b-77c0-4315-9e6e-17f90aaed25a 2026-09-28 02:27:54,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ee6c04b-77c0-4315-9e6e-17f90aaed25a', 'name': 'ctest-vn4-10375937', 'tenant_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d', 'project_id': '53d0f2322df946cf8cc8d7ea9b5f8b1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['070690f8-42e1-4b4b-9137-75fb3f01cd0e', '6e045975-6cc8-4d3b-be36-73065bf913a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99462044', 'ctest-vn4-10375937'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99462044', 'ctest-policy1-03233846']], 'subnet_ipam': [{'subnet_cidr': '160.78.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f28:82af:2a61:30b4:fe49:4733::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-09-28T02:27:54.043058', 'updated_at': '2026-09-28T02:27:54.465242'}} 2026-09-28 02:27:55,060 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-28 02:27:55,444 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-28 02:27:55,479 - DEBUG - Requesting: http://10.0.0.186:8082/domain/280555f9-ea63-46a3-9d79-b07f1b1c68e8 2026-09-28 02:27:55,497 - DEBUG - Requesting: http://10.0.0.186:8082/project/53d0f232-2df9-46cf-8cc8-d7ea9b5f8b1d 2026-09-28 02:27:55,585 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/2ee6c04b-77c0-4315-9e6e-17f90aaed25a 2026-09-28 02:27:55,601 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/2ee6c04b-77c0-4315-9e6e-17f90aaed25a 2026-09-28 02:27:55,614 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/113f37a9-ec4b-48bf-9e2d-6c59086d2a98 2026-09-28 02:27:55,624 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/113f37a9-ec4b-48bf-9e2d-6c59086d2a98 2026-09-28 02:27:55,636 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/48cf71dd-c847-4f67-8e3b-ea728ce8f6b7 2026-09-28 02:27:55,645 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 02:27:55,645 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/2ee6c04b-77c0-4315-9e6e-17f90aaed25a 2026-09-28 02:27:55,659 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/113f37a9-ec4b-48bf-9e2d-6c59086d2a98 2026-09-28 02:27:55,681 - INFO - Verified VN network id 12 for VN 2ee6c04b-77c0-4315-9e6e-17f90aaed25a 2026-09-28 02:27:55,681 - INFO - Verifications in API Server for VN ctest-vn4-10375937 passed 2026-09-28 02:27:55,681 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/2ee6c04b-77c0-4315-9e6e-17f90aaed25a 2026-09-28 02:27:55,694 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/113f37a9-ec4b-48bf-9e2d-6c59086d2a98 2026-09-28 02:27:55,703 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/113f37a9-ec4b-48bf-9e2d-6c59086d2a98 2026-09-28 02:27:55,713 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/48cf71dd-c847-4f67-8e3b-ea728ce8f6b7 2026-09-28 02:27:55,729 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99462044:ctest-vn4-10375937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99462044', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3379600000752304917', 'uuid-lslong': '11416088463824310874'}, 'enable': 'true', 'created': '2026-09-28T02:27:54', 'last-modified': '2026-09-28T02:27:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880669'} 2026-09-28 02:27:55,740 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 02:27:55,740 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10375937 passed 2026-09-28 02:27:55,740 - DEBUG - ====Verifying policy data for ctest-vn4-10375937 in API_Server ====== 2026-09-28 02:27:55,740 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-28 02:27:55,748 - DEBUG - Requesting: http://10.0.0.186:8082/domain/280555f9-ea63-46a3-9d79-b07f1b1c68e8 2026-09-28 02:27:55,762 - DEBUG - Requesting: http://10.0.0.186:8082/project/53d0f232-2df9-46cf-8cc8-d7ea9b5f8b1d 2026-09-28 02:27:55,851 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/2ee6c04b-77c0-4315-9e6e-17f90aaed25a 2026-09-28 02:27:55,863 - DEBUG - ==>Verifying data for policy with id: 864f2549-1388-4a9b-8690-22606ab939fb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99462044', 'ctest-policy1-03233846'] 2026-09-28 02:27:55,863 - INFO - VN ctest-vn4-10375937 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-28 02:27:55,863 - DEBUG - Verifying the vn in opserver 2026-09-28 02:27:55,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99462044:ctest-vn4-10375937 virtual network link through opserver 10.0.0.186 2026-09-28 02:27:55,863 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-09-28 02:27:56,242 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-09-28 02:27:56,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99462044:ctest-vn4-10375937', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99462044:ctest-vn4-10375937?flat'} 2026-09-28 02:27:56,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99462044:ctest-vn4-10375937 is found in opserver 2026-09-28 02:27:56,325 - DEBUG - Do not have enough data to verify VN in agent 2026-09-28 02:27:56,332 - DEBUG - VRF ids for VN ctest-vn4-10375937: {} 2026-09-28 02:27:56,332 - DEBUG - ====Verifying data for ctest-policy1-03233846 in API_Server ====== 2026-09-28 02:27:56,332 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-28 02:27:56,341 - DEBUG - Requesting: http://10.0.0.186:8082/domain/280555f9-ea63-46a3-9d79-b07f1b1c68e8 2026-09-28 02:27:56,357 - DEBUG - Requesting: http://10.0.0.186:8082/project/53d0f232-2df9-46cf-8cc8-d7ea9b5f8b1d 2026-09-28 02:27:56,440 - DEBUG - Requesting: http://10.0.0.186:8082/network-policy/864f2549-1388-4a9b-8690-22606ab939fb 2026-09-28 02:27:56,454 - INFO - Verified policy ctest-policy1-03233846 in API Server, Result: True 2026-09-28 02:27:56,454 - INFO - Done with setup and verification, moving onto test .. 2026-09-28 02:27:56,466 - INFO - Deleting VN ctest-vn4-10375937 2026-09-28 02:27:56,640 - DEBUG - Response for deleting network () 2026-09-28 02:27:56,641 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/113f37a9-ec4b-48bf-9e2d-6c59086d2a98 2026-09-28 02:27:56,652 - DEBUG - Response Code: 404 2026-09-28 02:27:56,652 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-09-28 02:27:56,665 - DEBUG - Requesting: http://10.0.0.186:8082/domain/280555f9-ea63-46a3-9d79-b07f1b1c68e8 2026-09-28 02:27:56,722 - DEBUG - Requesting: http://10.0.0.186:8082/project/53d0f232-2df9-46cf-8cc8-d7ea9b5f8b1d 2026-09-28 02:27:56,820 - INFO - Validated that VN ctest-vn4-10375937 is not found in API Server 2026-09-28 02:27:56,835 - DEBUG - VN ctest-vn4-10375937 is not present in Agent 10.0.0.186 2026-09-28 02:27:56,835 - INFO - Validated that VN ctest-vn4-10375937 is not in any agent 2026-09-28 02:27:56,851 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10375937 info 2026-09-28 02:27:56,890 - INFO - Deleted policy ctest-policy1-03233846 2026-09-28 02:27:57,087 - DEBUG - policy ctest-policy1-03233846 is not found in API Server 2026-09-28 02:27:57,360 - DEBUG - No XMPP flaps were noticed during the test
2026-09-28 02:27:57,360 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-28 02:27:57,361 - INFO - -------------------------------------------------------------------------------- 2026-09-28 02:27:57,668 - DEBUG - No XMPP flaps were noticed during the test
2026-09-28 02:27:57,668 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-28 02:27:57,668 - INFO - -------------------------------------------------------------------------------- 2026-09-28 02:27:58,469 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-99462044, ID : 53d0f232-2df9-46cf-8cc8-d7ea9b5f8b1d