2026-08-26 09:22:42,383 - INFO - Domain Default found not creating 2026-08-26 09:22:42,566 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11417331 not found, creating it 2026-08-26 09:22:43,088 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11417331, ID : 8c9a6c27-374b-4bd1-ab9b-afe79788696b 2026-08-26 09:22:44,841 - INFO - ================================================================================ 2026-08-26 09:22:44,842 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-26 09:22:45,118 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-08-26 09:22:45,118 - INFO - Initial checks done. Running the testcase now 2026-08-26 09:22:45,118 - INFO - 2026-08-26 09:22:45,118 - INFO - ================================================================================ 2026-08-26 09:22:45,118 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-26 09:22:45,118 - 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-26 09:22:45,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-08-26 09:22:45,424 - INFO - Initial checks done. Running the testcase now 2026-08-26 09:22:45,424 - INFO - 2026-08-26 09:22:45,861 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11417331:ctest-vn4-25686657, 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-11417331:ctest-vn4-25686657, 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-11417331:ctest-vn4-25686657, 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-11417331:ctest-vn4-25686657, 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-26 09:22:46,412 - DEBUG - Response for create_network : {'network': {'id': 'f1ccc41c-6d44-48f1-9ded-86e3568c20ff', 'name': 'ctest-vn4-25686657', 'tenant_id': '8c9a6c27374b4bd1ab9bafe79788696b', 'project_id': '8c9a6c27374b4bd1ab9bafe79788696b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11417331', 'ctest-vn4-25686657'], 'port_security_enabled': True, 'description': ''}} 2026-08-26 09:22:46,633 - DEBUG - Response for create_subnet : {'subnet': {'id': '78dc76d9-2fb4-4a87-9572-2da2d1a9b46f', 'name': '', 'tenant_id': '8c9a6c27374b4bd1ab9bafe79788696b', 'network_id': 'f1ccc41c-6d44-48f1-9ded-86e3568c20ff', 'ip_version': 4, 'cidr': '126.118.206.0/26', 'allocation_pools': [{'start': '126.118.206.2', 'end': '126.118.206.62'}], 'gateway_ip': '126.118.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.118.206.2', 'tags': [], 'project_id': '8c9a6c27374b4bd1ab9bafe79788696b'}} 2026-08-26 09:22:46,821 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6328263-7467-4429-a530-bb5ad1e06e32', 'name': '', 'tenant_id': '8c9a6c27374b4bd1ab9bafe79788696b', 'network_id': 'f1ccc41c-6d44-48f1-9ded-86e3568c20ff', 'ip_version': 6, 'cidr': '2369:5767:d403:1d7f:a7a0:c8b4::/96', 'allocation_pools': [{'start': '2369:5767:d403:1d7f:a7a0:c8b4:0:2', 'end': '2369:5767:d403:1d7f:a7a0:c8b4:ffff:fffe'}], 'gateway_ip': '2369:5767:d403:1d7f:a7a0:c8b4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2369:5767:d403:1d7f:a7a0:c8b4:0:2', 'tags': [], 'project_id': '8c9a6c27374b4bd1ab9bafe79788696b'}} 2026-08-26 09:22:46,840 - INFO - Created VN ctest-vn4-25686657 2026-08-26 09:22:46,891 - DEBUG - VN ctest-vn4-25686657 UUID is f1ccc41c-6d44-48f1-9ded-86e3568c20ff 2026-08-26 09:22:47,163 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1ccc41c-6d44-48f1-9ded-86e3568c20ff', 'name': 'ctest-vn4-25686657', 'tenant_id': '8c9a6c27374b4bd1ab9bafe79788696b', 'project_id': '8c9a6c27374b4bd1ab9bafe79788696b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['78dc76d9-2fb4-4a87-9572-2da2d1a9b46f', 'd6328263-7467-4429-a530-bb5ad1e06e32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11417331', 'ctest-vn4-25686657'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11417331', 'ctest-policy1-73428744']], 'subnet_ipam': [{'subnet_cidr': '126.118.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2369:5767:d403:1d7f:a7a0:c8b4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-26 09:22:47,335 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 09:22:47,709 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 09:22:47,740 - DEBUG - Requesting: http://10.0.0.177:8082/domain/261aebf8-950f-457b-9023-feaa2f7b66ec 2026-08-26 09:22:47,755 - DEBUG - Requesting: http://10.0.0.177:8082/project/8c9a6c27-374b-4bd1-ab9b-afe79788696b 2026-08-26 09:22:47,830 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f1ccc41c-6d44-48f1-9ded-86e3568c20ff 2026-08-26 09:22:47,845 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f1ccc41c-6d44-48f1-9ded-86e3568c20ff 2026-08-26 09:22:47,856 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2c359375-39fa-4766-873b-e0f79f7be2ed 2026-08-26 09:22:47,863 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2c359375-39fa-4766-873b-e0f79f7be2ed 2026-08-26 09:22:47,869 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/44e006a2-6cf2-4c4b-be5e-57bbc59884e0 2026-08-26 09:22:47,876 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-26 09:22:47,876 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f1ccc41c-6d44-48f1-9ded-86e3568c20ff 2026-08-26 09:22:47,887 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2c359375-39fa-4766-873b-e0f79f7be2ed 2026-08-26 09:22:47,902 - INFO - Verified VN network id 12 for VN f1ccc41c-6d44-48f1-9ded-86e3568c20ff 2026-08-26 09:22:47,902 - INFO - Verifications in API Server for VN ctest-vn4-25686657 passed 2026-08-26 09:22:47,902 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f1ccc41c-6d44-48f1-9ded-86e3568c20ff 2026-08-26 09:22:47,912 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2c359375-39fa-4766-873b-e0f79f7be2ed 2026-08-26 09:22:47,919 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2c359375-39fa-4766-873b-e0f79f7be2ed 2026-08-26 09:22:47,925 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/44e006a2-6cf2-4c4b-be5e-57bbc59884e0 2026-08-26 09:22:47,939 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11417331:ctest-vn4-25686657', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11417331', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17423516684760926449', 'uuid-lslong': '11379900144402833663'}, 'enable': 'true', 'created': '2026-08-26T09:22:46', 'last-modified': '2026-08-26T09:22:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860334'} 2026-08-26 09:22:47,946 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-26 09:22:47,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25686657 passed 2026-08-26 09:22:47,946 - DEBUG - ====Verifying policy data for ctest-vn4-25686657 in API_Server ====== 2026-08-26 09:22:47,946 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 09:22:47,954 - DEBUG - Requesting: http://10.0.0.177:8082/domain/261aebf8-950f-457b-9023-feaa2f7b66ec 2026-08-26 09:22:47,966 - DEBUG - Requesting: http://10.0.0.177:8082/project/8c9a6c27-374b-4bd1-ab9b-afe79788696b 2026-08-26 09:22:48,042 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f1ccc41c-6d44-48f1-9ded-86e3568c20ff 2026-08-26 09:22:48,053 - DEBUG - ==>Verifying data for policy with id: 9674ec9f-77ad-4eba-b714-bd6c7a8e787b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11417331', 'ctest-policy1-73428744'] 2026-08-26 09:22:48,054 - INFO - VN ctest-vn4-25686657 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-26 09:22:48,054 - DEBUG - Verifying the vn in opserver 2026-08-26 09:22:48,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11417331:ctest-vn4-25686657 virtual network link through opserver 10.0.0.177 2026-08-26 09:22:48,054 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-26 09:22:48,416 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-26 09:22:48,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11417331:ctest-vn4-25686657', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11417331:ctest-vn4-25686657?flat'} 2026-08-26 09:22:48,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11417331:ctest-vn4-25686657 is found in opserver 2026-08-26 09:22:48,490 - DEBUG - Do not have enough data to verify VN in agent 2026-08-26 09:22:48,495 - DEBUG - VRF ids for VN ctest-vn4-25686657: {} 2026-08-26 09:22:48,495 - DEBUG - ====Verifying data for ctest-policy1-73428744 in API_Server ====== 2026-08-26 09:22:48,495 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 09:22:48,502 - DEBUG - Requesting: http://10.0.0.177:8082/domain/261aebf8-950f-457b-9023-feaa2f7b66ec 2026-08-26 09:22:48,514 - DEBUG - Requesting: http://10.0.0.177:8082/project/8c9a6c27-374b-4bd1-ab9b-afe79788696b 2026-08-26 09:22:48,593 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/9674ec9f-77ad-4eba-b714-bd6c7a8e787b 2026-08-26 09:22:48,604 - INFO - Verified policy ctest-policy1-73428744 in API Server, Result: True 2026-08-26 09:22:48,605 - INFO - Done with setup and verification, moving onto test .. 2026-08-26 09:22:48,615 - INFO - Deleting VN ctest-vn4-25686657 2026-08-26 09:22:48,751 - DEBUG - Response for deleting network () 2026-08-26 09:22:48,751 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2c359375-39fa-4766-873b-e0f79f7be2ed 2026-08-26 09:22:48,756 - DEBUG - Response Code: 404 2026-08-26 09:22:48,756 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 09:22:48,762 - DEBUG - Requesting: http://10.0.0.177:8082/domain/261aebf8-950f-457b-9023-feaa2f7b66ec 2026-08-26 09:22:48,816 - DEBUG - Requesting: http://10.0.0.177:8082/project/8c9a6c27-374b-4bd1-ab9b-afe79788696b 2026-08-26 09:22:48,899 - INFO - Validated that VN ctest-vn4-25686657 is not found in API Server 2026-08-26 09:22:48,911 - DEBUG - VN ctest-vn4-25686657 is not present in Agent 10.0.0.177 2026-08-26 09:22:48,911 - INFO - Validated that VN ctest-vn4-25686657 is not in any agent 2026-08-26 09:22:48,929 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25686657 info 2026-08-26 09:22:48,958 - INFO - Deleted policy ctest-policy1-73428744 2026-08-26 09:22:49,135 - DEBUG - policy ctest-policy1-73428744 is not found in API Server 2026-08-26 09:22:49,411 - DEBUG - No XMPP flaps were noticed during the test