2026-08-22 08:41:19,352 - INFO - Domain Default found not creating 2026-08-22 08:41:19,558 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86891294 not found, creating it 2026-08-22 08:41:20,080 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86891294, ID : eaa0e7b7-08a4-49e6-b66b-b290bb3f96d4 2026-08-22 08:41:21,870 - INFO - ================================================================================ 2026-08-22 08:41:21,870 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-22 08:41:22,154 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-08-22 08:41:22,154 - INFO - Initial checks done. Running the testcase now 2026-08-22 08:41:22,154 - INFO - 2026-08-22 08:41:22,154 - INFO - ================================================================================ 2026-08-22 08:41:22,154 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-22 08:41:22,154 - 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-22 08:41:22,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-08-22 08:41:22,444 - INFO - Initial checks done. Running the testcase now 2026-08-22 08:41:22,444 - INFO - 2026-08-22 08:41:22,920 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86891294:ctest-vn4-26585234, 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-86891294:ctest-vn4-26585234, 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-86891294:ctest-vn4-26585234, 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-86891294:ctest-vn4-26585234, 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-22 08:41:23,523 - DEBUG - Response for create_network : {'network': {'id': '7aca1d9b-ec79-4391-befc-272f7fc5d11b', 'name': 'ctest-vn4-26585234', 'tenant_id': 'eaa0e7b708a449e6b66bb290bb3f96d4', 'project_id': 'eaa0e7b708a449e6b66bb290bb3f96d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86891294', 'ctest-vn4-26585234'], 'port_security_enabled': True, 'description': ''}} 2026-08-22 08:41:23,729 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af0d2674-8750-401d-a848-c35308eef5b0', 'name': '', 'tenant_id': 'eaa0e7b708a449e6b66bb290bb3f96d4', 'network_id': '7aca1d9b-ec79-4391-befc-272f7fc5d11b', 'ip_version': 4, 'cidr': '33.156.242.64/26', 'allocation_pools': [{'start': '33.156.242.66', 'end': '33.156.242.126'}], 'gateway_ip': '33.156.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.156.242.66', 'tags': [], 'project_id': 'eaa0e7b708a449e6b66bb290bb3f96d4'}} 2026-08-22 08:41:23,930 - DEBUG - Response for create_subnet : {'subnet': {'id': '04bb2fa1-0167-4ba8-bf20-feed0c01f1f1', 'name': '', 'tenant_id': 'eaa0e7b708a449e6b66bb290bb3f96d4', 'network_id': '7aca1d9b-ec79-4391-befc-272f7fc5d11b', 'ip_version': 6, 'cidr': '3962:de90:7c00:80ca:a610:11e2::/96', 'allocation_pools': [{'start': '3962:de90:7c00:80ca:a610:11e2:0:2', 'end': '3962:de90:7c00:80ca:a610:11e2:ffff:fffe'}], 'gateway_ip': '3962:de90:7c00:80ca:a610:11e2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3962:de90:7c00:80ca:a610:11e2:0:2', 'tags': [], 'project_id': 'eaa0e7b708a449e6b66bb290bb3f96d4'}} 2026-08-22 08:41:23,951 - INFO - Created VN ctest-vn4-26585234 2026-08-22 08:41:24,008 - DEBUG - VN ctest-vn4-26585234 UUID is 7aca1d9b-ec79-4391-befc-272f7fc5d11b 2026-08-22 08:41:24,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7aca1d9b-ec79-4391-befc-272f7fc5d11b', 'name': 'ctest-vn4-26585234', 'tenant_id': 'eaa0e7b708a449e6b66bb290bb3f96d4', 'project_id': 'eaa0e7b708a449e6b66bb290bb3f96d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af0d2674-8750-401d-a848-c35308eef5b0', '04bb2fa1-0167-4ba8-bf20-feed0c01f1f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86891294', 'ctest-vn4-26585234'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86891294', 'ctest-policy1-29387625']], 'subnet_ipam': [{'subnet_cidr': '33.156.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3962:de90:7c00:80ca:a610:11e2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-22 08:41:24,412 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 08:41:24,780 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 08:41:24,809 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9107f09d-a1f0-492e-84d3-33f9ceac733a 2026-08-22 08:41:24,821 - DEBUG - Requesting: http://10.0.0.50:8082/project/eaa0e7b7-08a4-49e6-b66b-b290bb3f96d4 2026-08-22 08:41:24,904 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7aca1d9b-ec79-4391-befc-272f7fc5d11b 2026-08-22 08:41:24,916 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7aca1d9b-ec79-4391-befc-272f7fc5d11b 2026-08-22 08:41:24,928 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2153d98f-7f06-4e3b-bc72-1d4a138a677c 2026-08-22 08:41:24,937 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2153d98f-7f06-4e3b-bc72-1d4a138a677c 2026-08-22 08:41:24,945 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac6dc121-2e2d-492e-a3d7-7361336f908f 2026-08-22 08:41:24,953 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-22 08:41:24,953 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7aca1d9b-ec79-4391-befc-272f7fc5d11b 2026-08-22 08:41:24,965 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2153d98f-7f06-4e3b-bc72-1d4a138a677c 2026-08-22 08:41:24,982 - INFO - Verified VN network id 11 for VN 7aca1d9b-ec79-4391-befc-272f7fc5d11b 2026-08-22 08:41:24,982 - INFO - Verifications in API Server for VN ctest-vn4-26585234 passed 2026-08-22 08:41:24,982 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7aca1d9b-ec79-4391-befc-272f7fc5d11b 2026-08-22 08:41:24,994 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2153d98f-7f06-4e3b-bc72-1d4a138a677c 2026-08-22 08:41:25,002 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2153d98f-7f06-4e3b-bc72-1d4a138a677c 2026-08-22 08:41:25,012 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac6dc121-2e2d-492e-a3d7-7361336f908f 2026-08-22 08:41:25,027 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86891294:ctest-vn4-26585234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86891294', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8847916973447267217', 'uuid-lslong': '13761917646298009883'}, 'enable': 'true', 'created': '2026-08-22T08:41:23', 'last-modified': '2026-08-22T08:41:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.818085'} 2026-08-22 08:41:25,036 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-22 08:41:25,036 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26585234 passed 2026-08-22 08:41:25,036 - DEBUG - ====Verifying policy data for ctest-vn4-26585234 in API_Server ====== 2026-08-22 08:41:25,036 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 08:41:25,043 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9107f09d-a1f0-492e-84d3-33f9ceac733a 2026-08-22 08:41:25,055 - DEBUG - Requesting: http://10.0.0.50:8082/project/eaa0e7b7-08a4-49e6-b66b-b290bb3f96d4 2026-08-22 08:41:25,138 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7aca1d9b-ec79-4391-befc-272f7fc5d11b 2026-08-22 08:41:25,153 - DEBUG - ==>Verifying data for policy with id: 5957392e-52a2-4e01-87d1-b957a72cb4ab, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86891294', 'ctest-policy1-29387625'] 2026-08-22 08:41:25,153 - INFO - VN ctest-vn4-26585234 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-22 08:41:25,153 - DEBUG - Verifying the vn in opserver 2026-08-22 08:41:25,153 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86891294:ctest-vn4-26585234 virtual network link through opserver 10.0.0.50 2026-08-22 08:41:25,154 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-22 08:41:25,520 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-22 08:41:25,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86891294:ctest-vn4-26585234', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86891294:ctest-vn4-26585234?flat'} 2026-08-22 08:41:25,577 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86891294:ctest-vn4-26585234 is found in opserver 2026-08-22 08:41:25,591 - DEBUG - Do not have enough data to verify VN in agent 2026-08-22 08:41:25,596 - DEBUG - VRF ids for VN ctest-vn4-26585234: {} 2026-08-22 08:41:25,596 - DEBUG - ====Verifying data for ctest-policy1-29387625 in API_Server ====== 2026-08-22 08:41:25,597 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 08:41:25,603 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9107f09d-a1f0-492e-84d3-33f9ceac733a 2026-08-22 08:41:25,618 - DEBUG - Requesting: http://10.0.0.50:8082/project/eaa0e7b7-08a4-49e6-b66b-b290bb3f96d4 2026-08-22 08:41:25,700 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5957392e-52a2-4e01-87d1-b957a72cb4ab 2026-08-22 08:41:25,711 - INFO - Verified policy ctest-policy1-29387625 in API Server, Result: True 2026-08-22 08:41:25,711 - INFO - Done with setup and verification, moving onto test .. 2026-08-22 08:41:25,721 - INFO - Deleting VN ctest-vn4-26585234 2026-08-22 08:41:25,858 - DEBUG - Response for deleting network () 2026-08-22 08:41:25,858 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2153d98f-7f06-4e3b-bc72-1d4a138a677c 2026-08-22 08:41:25,864 - DEBUG - Response Code: 404 2026-08-22 08:41:25,864 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 08:41:25,871 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9107f09d-a1f0-492e-84d3-33f9ceac733a 2026-08-22 08:41:25,926 - DEBUG - Requesting: http://10.0.0.50:8082/project/eaa0e7b7-08a4-49e6-b66b-b290bb3f96d4 2026-08-22 08:41:26,008 - INFO - Validated that VN ctest-vn4-26585234 is not found in API Server 2026-08-22 08:41:26,020 - DEBUG - VN ctest-vn4-26585234 is not present in Agent 10.0.0.50 2026-08-22 08:41:26,020 - INFO - Validated that VN ctest-vn4-26585234 is not in any agent 2026-08-22 08:41:26,038 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26585234 info 2026-08-22 08:41:26,065 - INFO - Deleted policy ctest-policy1-29387625 2026-08-22 08:41:26,244 - DEBUG - policy ctest-policy1-29387625 is not found in API Server 2026-08-22 08:41:26,521 - DEBUG - No XMPP flaps were noticed during the test