2026-12-03 17:11:13,726 - INFO - Domain Default found not creating 2026-12-03 17:11:13,920 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37609095 not found, creating it 2026-12-03 17:11:14,402 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37609095, ID : b02f4723-dedd-4fc0-a13f-69e0f7cf5840 2026-12-03 17:11:16,234 - INFO - ================================================================================ 2026-12-03 17:11:16,235 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-03 17:11:16,494 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-12-03 17:11:16,494 - INFO - Initial checks done. Running the testcase now 2026-12-03 17:11:16,495 - INFO - 2026-12-03 17:11:16,495 - INFO - ================================================================================ 2026-12-03 17:11:16,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-03 17:11:16,495 - 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-12-03 17:11:16,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-12-03 17:11:16,789 - INFO - Initial checks done. Running the testcase now 2026-12-03 17:11:16,789 - INFO - 2026-12-03 17:11:17,225 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37609095:ctest-vn4-04971119, 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-37609095:ctest-vn4-04971119, 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-37609095:ctest-vn4-04971119, 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-37609095:ctest-vn4-04971119, 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-12-03 17:11:17,727 - DEBUG - Response for create_network : {'network': {'id': 'cc7e449f-6321-4357-8bef-ac6d5405d5fc', 'name': 'ctest-vn4-04971119', 'tenant_id': 'b02f4723dedd4fc0a13f69e0f7cf5840', 'project_id': 'b02f4723dedd4fc0a13f69e0f7cf5840', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37609095', 'ctest-vn4-04971119'], 'port_security_enabled': True, 'description': ''}} 2026-12-03 17:11:17,965 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f4be06d-3474-4e8c-8443-fd4cce026019', 'name': '', 'tenant_id': 'b02f4723dedd4fc0a13f69e0f7cf5840', 'network_id': 'cc7e449f-6321-4357-8bef-ac6d5405d5fc', 'ip_version': 4, 'cidr': '64.207.132.128/26', 'allocation_pools': [{'start': '64.207.132.130', 'end': '64.207.132.190'}], 'gateway_ip': '64.207.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.207.132.130', 'tags': [], 'project_id': 'b02f4723dedd4fc0a13f69e0f7cf5840'}} 2026-12-03 17:11:18,156 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e28a6751-c3ef-443c-b26c-71011a7af848', 'name': '', 'tenant_id': 'b02f4723dedd4fc0a13f69e0f7cf5840', 'network_id': 'cc7e449f-6321-4357-8bef-ac6d5405d5fc', 'ip_version': 6, 'cidr': '263d:7fb2:3d67:d721:2e96:4415::/96', 'allocation_pools': [{'start': '263d:7fb2:3d67:d721:2e96:4415:0:2', 'end': '263d:7fb2:3d67:d721:2e96:4415:ffff:fffe'}], 'gateway_ip': '263d:7fb2:3d67:d721:2e96:4415:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '263d:7fb2:3d67:d721:2e96:4415:0:2', 'tags': [], 'project_id': 'b02f4723dedd4fc0a13f69e0f7cf5840'}} 2026-12-03 17:11:18,172 - INFO - Created VN ctest-vn4-04971119 2026-12-03 17:11:18,224 - DEBUG - VN ctest-vn4-04971119 UUID is cc7e449f-6321-4357-8bef-ac6d5405d5fc 2026-12-03 17:11:18,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc7e449f-6321-4357-8bef-ac6d5405d5fc', 'name': 'ctest-vn4-04971119', 'tenant_id': 'b02f4723dedd4fc0a13f69e0f7cf5840', 'project_id': 'b02f4723dedd4fc0a13f69e0f7cf5840', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6f4be06d-3474-4e8c-8443-fd4cce026019', 'e28a6751-c3ef-443c-b26c-71011a7af848'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37609095', 'ctest-vn4-04971119'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37609095', 'ctest-policy1-84300330']], 'subnet_ipam': [{'subnet_cidr': '64.207.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '263d:7fb2:3d67:d721:2e96:4415::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-12-03 17:11:18,599 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-03 17:11:18,961 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-03 17:11:18,989 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c3be18ef-682b-4c87-97dd-11bd6913b2b0 2026-12-03 17:11:19,001 - DEBUG - Requesting: http://10.0.0.163:8082/project/b02f4723-dedd-4fc0-a13f-69e0f7cf5840 2026-12-03 17:11:19,083 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/cc7e449f-6321-4357-8bef-ac6d5405d5fc 2026-12-03 17:11:19,094 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/cc7e449f-6321-4357-8bef-ac6d5405d5fc 2026-12-03 17:11:19,103 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6a5e00e4-20ea-4c27-bde1-fb8843b0739e 2026-12-03 17:11:19,109 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6a5e00e4-20ea-4c27-bde1-fb8843b0739e 2026-12-03 17:11:19,114 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/1da4bfcd-315f-4ed9-9320-08d8b3580960 2026-12-03 17:11:19,123 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-03 17:11:19,123 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/cc7e449f-6321-4357-8bef-ac6d5405d5fc 2026-12-03 17:11:19,138 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6a5e00e4-20ea-4c27-bde1-fb8843b0739e 2026-12-03 17:11:19,156 - INFO - Verified VN network id 12 for VN cc7e449f-6321-4357-8bef-ac6d5405d5fc 2026-12-03 17:11:19,156 - INFO - Verifications in API Server for VN ctest-vn4-04971119 passed 2026-12-03 17:11:19,156 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/cc7e449f-6321-4357-8bef-ac6d5405d5fc 2026-12-03 17:11:19,165 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6a5e00e4-20ea-4c27-bde1-fb8843b0739e 2026-12-03 17:11:19,171 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6a5e00e4-20ea-4c27-bde1-fb8843b0739e 2026-12-03 17:11:19,176 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/1da4bfcd-315f-4ed9-9320-08d8b3580960 2026-12-03 17:11:19,187 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37609095:ctest-vn4-04971119', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37609095', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14735290482156454743', 'uuid-lslong': '10083467676266911228'}, 'enable': 'true', 'created': '2026-12-03T17:11:17', 'last-modified': '2026-12-03T17:11:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785049'} 2026-12-03 17:11:19,194 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-03 17:11:19,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04971119 passed 2026-12-03 17:11:19,194 - DEBUG - ====Verifying policy data for ctest-vn4-04971119 in API_Server ====== 2026-12-03 17:11:19,194 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-03 17:11:19,198 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c3be18ef-682b-4c87-97dd-11bd6913b2b0 2026-12-03 17:11:19,207 - DEBUG - Requesting: http://10.0.0.163:8082/project/b02f4723-dedd-4fc0-a13f-69e0f7cf5840 2026-12-03 17:11:19,282 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/cc7e449f-6321-4357-8bef-ac6d5405d5fc 2026-12-03 17:11:19,292 - DEBUG - ==>Verifying data for policy with id: 9e992e99-f4b4-4db1-bcff-c70a44b62d5d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37609095', 'ctest-policy1-84300330'] 2026-12-03 17:11:19,292 - INFO - VN ctest-vn4-04971119 Policy verification: verify_vn_policy_in_api_server, status: True 2026-12-03 17:11:19,293 - DEBUG - Verifying the vn in opserver 2026-12-03 17:11:19,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37609095:ctest-vn4-04971119 virtual network link through opserver 10.0.0.163 2026-12-03 17:11:19,293 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-12-03 17:11:19,664 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-12-03 17:11:19,713 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37609095:ctest-vn4-04971119', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37609095:ctest-vn4-04971119?flat'} 2026-12-03 17:11:19,713 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37609095:ctest-vn4-04971119 is found in opserver 2026-12-03 17:11:19,724 - DEBUG - Do not have enough data to verify VN in agent 2026-12-03 17:11:19,731 - DEBUG - VRF ids for VN ctest-vn4-04971119: {} 2026-12-03 17:11:19,731 - DEBUG - ====Verifying data for ctest-policy1-84300330 in API_Server ====== 2026-12-03 17:11:19,731 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-03 17:11:19,738 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c3be18ef-682b-4c87-97dd-11bd6913b2b0 2026-12-03 17:11:19,750 - DEBUG - Requesting: http://10.0.0.163:8082/project/b02f4723-dedd-4fc0-a13f-69e0f7cf5840 2026-12-03 17:11:19,825 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/9e992e99-f4b4-4db1-bcff-c70a44b62d5d 2026-12-03 17:11:19,836 - INFO - Verified policy ctest-policy1-84300330 in API Server, Result: True 2026-12-03 17:11:19,836 - INFO - Done with setup and verification, moving onto test .. 2026-12-03 17:11:19,845 - INFO - Deleting VN ctest-vn4-04971119 2026-12-03 17:11:19,965 - DEBUG - Response for deleting network () 2026-12-03 17:11:19,965 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6a5e00e4-20ea-4c27-bde1-fb8843b0739e 2026-12-03 17:11:19,970 - DEBUG - Response Code: 404 2026-12-03 17:11:19,970 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-12-03 17:11:19,975 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c3be18ef-682b-4c87-97dd-11bd6913b2b0 2026-12-03 17:11:20,030 - DEBUG - Requesting: http://10.0.0.163:8082/project/b02f4723-dedd-4fc0-a13f-69e0f7cf5840 2026-12-03 17:11:20,106 - INFO - Validated that VN ctest-vn4-04971119 is not found in API Server 2026-12-03 17:11:20,116 - DEBUG - VN ctest-vn4-04971119 is not present in Agent 10.0.0.163 2026-12-03 17:11:20,116 - INFO - Validated that VN ctest-vn4-04971119 is not in any agent 2026-12-03 17:11:20,135 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04971119 info 2026-12-03 17:11:20,168 - INFO - Deleted policy ctest-policy1-84300330 2026-12-03 17:11:20,351 - DEBUG - policy ctest-policy1-84300330 is not found in API Server 2026-12-03 17:11:20,607 - DEBUG - No XMPP flaps were noticed during the test