2026-10-27 20:43:00,061 - INFO - Domain Default found not creating 2026-10-27 20:43:00,226 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73108671 not found, creating it 2026-10-27 20:43:00,671 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73108671, ID : 2e79b863-abef-40e1-a4c9-17b2de7224e4 2026-10-27 20:43:02,315 - INFO - ================================================================================ 2026-10-27 20:43:02,315 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 20:43:02,576 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-27 20:43:02,576 - INFO - Initial checks done. Running the testcase now 2026-10-27 20:43:02,576 - INFO - 2026-10-27 20:43:02,576 - INFO - ================================================================================ 2026-10-27 20:43:02,576 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 20:43:02,576 - 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-10-27 20:43:02,864 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-27 20:43:02,864 - INFO - Initial checks done. Running the testcase now 2026-10-27 20:43:02,864 - INFO - 2026-10-27 20:43:03,287 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73108671:ctest-vn4-98225666, 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-73108671:ctest-vn4-98225666, 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-73108671:ctest-vn4-98225666, 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-73108671:ctest-vn4-98225666, 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-10-27 20:43:03,806 - DEBUG - Response for create_network : {'network': {'id': 'fd99ffe8-0eb6-47a4-8ee8-05acb7708638', 'name': 'ctest-vn4-98225666', 'tenant_id': '2e79b863abef40e1a4c917b2de7224e4', 'project_id': '2e79b863abef40e1a4c917b2de7224e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73108671', 'ctest-vn4-98225666'], 'port_security_enabled': True, 'description': ''}} 2026-10-27 20:43:03,965 - DEBUG - Response for create_subnet : {'subnet': {'id': '41507455-1316-4b17-a224-c889422cff35', 'name': '', 'tenant_id': '2e79b863abef40e1a4c917b2de7224e4', 'network_id': 'fd99ffe8-0eb6-47a4-8ee8-05acb7708638', 'ip_version': 4, 'cidr': '111.235.202.64/26', 'allocation_pools': [{'start': '111.235.202.66', 'end': '111.235.202.126'}], 'gateway_ip': '111.235.202.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.235.202.66', 'tags': [], 'project_id': '2e79b863abef40e1a4c917b2de7224e4'}} 2026-10-27 20:43:04,136 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec51d352-9439-4de9-8877-bb4ab355652c', 'name': '', 'tenant_id': '2e79b863abef40e1a4c917b2de7224e4', 'network_id': 'fd99ffe8-0eb6-47a4-8ee8-05acb7708638', 'ip_version': 6, 'cidr': '2751:9bf4:8636:4931:a803:8d75::/96', 'allocation_pools': [{'start': '2751:9bf4:8636:4931:a803:8d75:0:2', 'end': '2751:9bf4:8636:4931:a803:8d75:ffff:fffe'}], 'gateway_ip': '2751:9bf4:8636:4931:a803:8d75:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2751:9bf4:8636:4931:a803:8d75:0:2', 'tags': [], 'project_id': '2e79b863abef40e1a4c917b2de7224e4'}} 2026-10-27 20:43:04,154 - INFO - Created VN ctest-vn4-98225666 2026-10-27 20:43:04,205 - DEBUG - VN ctest-vn4-98225666 UUID is fd99ffe8-0eb6-47a4-8ee8-05acb7708638 2026-10-27 20:43:04,408 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd99ffe8-0eb6-47a4-8ee8-05acb7708638', 'name': 'ctest-vn4-98225666', 'tenant_id': '2e79b863abef40e1a4c917b2de7224e4', 'project_id': '2e79b863abef40e1a4c917b2de7224e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['41507455-1316-4b17-a224-c889422cff35', 'ec51d352-9439-4de9-8877-bb4ab355652c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73108671', 'ctest-vn4-98225666'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73108671', 'ctest-policy1-97348272']], 'subnet_ipam': [{'subnet_cidr': '111.235.202.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2751:9bf4:8636:4931:a803:8d75::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-27 20:43:04,573 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 20:43:04,940 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 20:43:04,965 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a077ec8-b70c-4458-98fb-b787e2d7dc83 2026-10-27 20:43:04,978 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e79b863-abef-40e1-a4c9-17b2de7224e4 2026-10-27 20:43:05,049 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd99ffe8-0eb6-47a4-8ee8-05acb7708638 2026-10-27 20:43:05,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd99ffe8-0eb6-47a4-8ee8-05acb7708638 2026-10-27 20:43:05,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a79ba630-90fa-457a-86dd-fd723098097a 2026-10-27 20:43:05,076 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a79ba630-90fa-457a-86dd-fd723098097a 2026-10-27 20:43:05,082 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ec88315-1994-4d40-9e7d-c8f39ccb414a 2026-10-27 20:43:05,087 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 20:43:05,087 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd99ffe8-0eb6-47a4-8ee8-05acb7708638 2026-10-27 20:43:05,098 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a79ba630-90fa-457a-86dd-fd723098097a 2026-10-27 20:43:05,111 - INFO - Verified VN network id 12 for VN fd99ffe8-0eb6-47a4-8ee8-05acb7708638 2026-10-27 20:43:05,111 - INFO - Verifications in API Server for VN ctest-vn4-98225666 passed 2026-10-27 20:43:05,111 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd99ffe8-0eb6-47a4-8ee8-05acb7708638 2026-10-27 20:43:05,120 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a79ba630-90fa-457a-86dd-fd723098097a 2026-10-27 20:43:05,126 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a79ba630-90fa-457a-86dd-fd723098097a 2026-10-27 20:43:05,132 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ec88315-1994-4d40-9e7d-c8f39ccb414a 2026-10-27 20:43:05,144 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73108671:ctest-vn4-98225666', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73108671', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18273918335176820644', 'uuid-lslong': '10297486787352757816'}, 'enable': 'true', 'created': '2026-10-27T20:43:03', 'last-modified': '2026-10-27T20:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773317'} 2026-10-27 20:43:05,152 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 20:43:05,152 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98225666 passed 2026-10-27 20:43:05,152 - DEBUG - ====Verifying policy data for ctest-vn4-98225666 in API_Server ====== 2026-10-27 20:43:05,152 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 20:43:05,157 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a077ec8-b70c-4458-98fb-b787e2d7dc83 2026-10-27 20:43:05,169 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e79b863-abef-40e1-a4c9-17b2de7224e4 2026-10-27 20:43:05,245 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd99ffe8-0eb6-47a4-8ee8-05acb7708638 2026-10-27 20:43:05,254 - DEBUG - ==>Verifying data for policy with id: df0662a4-2b97-465e-9f22-a137f3de30c3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73108671', 'ctest-policy1-97348272'] 2026-10-27 20:43:05,254 - INFO - VN ctest-vn4-98225666 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-27 20:43:05,254 - DEBUG - Verifying the vn in opserver 2026-10-27 20:43:05,254 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73108671:ctest-vn4-98225666 virtual network link through opserver 10.0.0.38 2026-10-27 20:43:05,254 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-27 20:43:05,614 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-27 20:43:05,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73108671:ctest-vn4-98225666', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73108671:ctest-vn4-98225666?flat'} 2026-10-27 20:43:05,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73108671:ctest-vn4-98225666 is found in opserver 2026-10-27 20:43:05,672 - DEBUG - Do not have enough data to verify VN in agent 2026-10-27 20:43:05,677 - DEBUG - VRF ids for VN ctest-vn4-98225666: {} 2026-10-27 20:43:05,677 - DEBUG - ====Verifying data for ctest-policy1-97348272 in API_Server ====== 2026-10-27 20:43:05,677 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 20:43:05,682 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a077ec8-b70c-4458-98fb-b787e2d7dc83 2026-10-27 20:43:05,692 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e79b863-abef-40e1-a4c9-17b2de7224e4 2026-10-27 20:43:05,760 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/df0662a4-2b97-465e-9f22-a137f3de30c3 2026-10-27 20:43:05,769 - INFO - Verified policy ctest-policy1-97348272 in API Server, Result: True 2026-10-27 20:43:05,769 - INFO - Done with setup and verification, moving onto test .. 2026-10-27 20:43:05,776 - INFO - Deleting VN ctest-vn4-98225666 2026-10-27 20:43:05,881 - DEBUG - Response for deleting network () 2026-10-27 20:43:05,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a79ba630-90fa-457a-86dd-fd723098097a 2026-10-27 20:43:05,885 - DEBUG - Response Code: 404 2026-10-27 20:43:05,886 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 20:43:05,891 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a077ec8-b70c-4458-98fb-b787e2d7dc83 2026-10-27 20:43:05,944 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e79b863-abef-40e1-a4c9-17b2de7224e4 2026-10-27 20:43:06,021 - INFO - Validated that VN ctest-vn4-98225666 is not found in API Server 2026-10-27 20:43:06,030 - DEBUG - VN ctest-vn4-98225666 is not present in Agent 10.0.0.38 2026-10-27 20:43:06,031 - INFO - Validated that VN ctest-vn4-98225666 is not in any agent 2026-10-27 20:43:06,043 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98225666 info 2026-10-27 20:43:06,067 - INFO - Deleted policy ctest-policy1-97348272 2026-10-27 20:43:06,237 - DEBUG - policy ctest-policy1-97348272 is not found in API Server 2026-10-27 20:43:06,491 - DEBUG - No XMPP flaps were noticed during the test