2026-04-29 10:02:27,122 - INFO - Domain Default found not creating 2026-04-29 10:02:27,345 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27947822 not found, creating it 2026-04-29 10:02:27,839 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27947822, ID : b40d06e6-2212-47f3-b7ee-c69a7b4ea4d7 2026-04-29 10:02:29,482 - INFO - ================================================================================ 2026-04-29 10:02:29,482 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 10:02:29,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-29 10:02:29,754 - INFO - Initial checks done. Running the testcase now 2026-04-29 10:02:29,754 - INFO - 2026-04-29 10:02:29,754 - INFO - ================================================================================ 2026-04-29 10:02:29,754 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 10:02:29,754 - 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-04-29 10:02:30,044 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-29 10:02:30,044 - INFO - Initial checks done. Running the testcase now 2026-04-29 10:02:30,044 - INFO - 2026-04-29 10:02:30,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27947822:ctest-vn4-66204372, 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-27947822:ctest-vn4-66204372, 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-27947822:ctest-vn4-66204372, 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-27947822:ctest-vn4-66204372, 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-04-29 10:02:31,003 - DEBUG - Response for create_network : {'network': {'id': '60606d64-17e5-4082-90c9-68bbe5c9d00d', 'name': 'ctest-vn4-66204372', 'tenant_id': 'b40d06e6221247f3b7eec69a7b4ea4d7', 'project_id': 'b40d06e6221247f3b7eec69a7b4ea4d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27947822', 'ctest-vn4-66204372'], 'port_security_enabled': True, 'description': ''}} 2026-04-29 10:02:31,182 - DEBUG - Response for create_subnet : {'subnet': {'id': '96ee4349-edbf-47a3-a561-891c6f38c7e5', 'name': '', 'tenant_id': 'b40d06e6221247f3b7eec69a7b4ea4d7', 'network_id': '60606d64-17e5-4082-90c9-68bbe5c9d00d', 'ip_version': 4, 'cidr': '203.235.216.64/26', 'allocation_pools': [{'start': '203.235.216.66', 'end': '203.235.216.126'}], 'gateway_ip': '203.235.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.235.216.66', 'tags': [], 'project_id': 'b40d06e6221247f3b7eec69a7b4ea4d7'}} 2026-04-29 10:02:31,377 - DEBUG - Response for create_subnet : {'subnet': {'id': '62e2b8ff-9e9d-4f68-9877-edc968bc9c27', 'name': '', 'tenant_id': 'b40d06e6221247f3b7eec69a7b4ea4d7', 'network_id': '60606d64-17e5-4082-90c9-68bbe5c9d00d', 'ip_version': 6, 'cidr': '3f16:f32a:13db:7b2e:de51:6059::/96', 'allocation_pools': [{'start': '3f16:f32a:13db:7b2e:de51:6059:0:2', 'end': '3f16:f32a:13db:7b2e:de51:6059:ffff:fffe'}], 'gateway_ip': '3f16:f32a:13db:7b2e:de51:6059:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f16:f32a:13db:7b2e:de51:6059:0:2', 'tags': [], 'project_id': 'b40d06e6221247f3b7eec69a7b4ea4d7'}} 2026-04-29 10:02:31,401 - INFO - Created VN ctest-vn4-66204372 2026-04-29 10:02:31,459 - DEBUG - VN ctest-vn4-66204372 UUID is 60606d64-17e5-4082-90c9-68bbe5c9d00d 2026-04-29 10:02:31,684 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60606d64-17e5-4082-90c9-68bbe5c9d00d', 'name': 'ctest-vn4-66204372', 'tenant_id': 'b40d06e6221247f3b7eec69a7b4ea4d7', 'project_id': 'b40d06e6221247f3b7eec69a7b4ea4d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96ee4349-edbf-47a3-a561-891c6f38c7e5', '62e2b8ff-9e9d-4f68-9877-edc968bc9c27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27947822', 'ctest-vn4-66204372'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27947822', 'ctest-policy1-41670023']], 'subnet_ipam': [{'subnet_cidr': '203.235.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f16:f32a:13db:7b2e:de51:6059::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-29 10:02:31,846 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 10:02:32,148 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 10:02:32,191 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab63ec03-c50f-4e96-aa00-87722ef1dbe8 2026-04-29 10:02:32,205 - DEBUG - Requesting: http://10.0.0.38:8082/project/b40d06e6-2212-47f3-b7ee-c69a7b4ea4d7 2026-04-29 10:02:32,285 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60606d64-17e5-4082-90c9-68bbe5c9d00d 2026-04-29 10:02:32,298 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60606d64-17e5-4082-90c9-68bbe5c9d00d 2026-04-29 10:02:32,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/998d52de-9d6e-42a7-8137-69a1d3bd1e05 2026-04-29 10:02:32,319 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/998d52de-9d6e-42a7-8137-69a1d3bd1e05 2026-04-29 10:02:32,329 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cab57aaf-9f13-4a0f-a32a-3a1a8d646b54 2026-04-29 10:02:32,336 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 10:02:32,336 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60606d64-17e5-4082-90c9-68bbe5c9d00d 2026-04-29 10:02:32,347 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/998d52de-9d6e-42a7-8137-69a1d3bd1e05 2026-04-29 10:02:32,363 - INFO - Verified VN network id 11 for VN 60606d64-17e5-4082-90c9-68bbe5c9d00d 2026-04-29 10:02:32,363 - INFO - Verifications in API Server for VN ctest-vn4-66204372 passed 2026-04-29 10:02:32,363 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60606d64-17e5-4082-90c9-68bbe5c9d00d 2026-04-29 10:02:32,374 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/998d52de-9d6e-42a7-8137-69a1d3bd1e05 2026-04-29 10:02:32,383 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/998d52de-9d6e-42a7-8137-69a1d3bd1e05 2026-04-29 10:02:32,391 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cab57aaf-9f13-4a0f-a32a-3a1a8d646b54 2026-04-29 10:02:32,405 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27947822:ctest-vn4-66204372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27947822', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6944670902070362242', 'uuid-lslong': '10432985168003846157'}, 'enable': 'true', 'created': '2026-04-29T10:02:30', 'last-modified': '2026-04-29T10:02:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747804'} 2026-04-29 10:02:32,411 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 10:02:32,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66204372 passed 2026-04-29 10:02:32,411 - DEBUG - ====Verifying policy data for ctest-vn4-66204372 in API_Server ====== 2026-04-29 10:02:32,411 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 10:02:32,417 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab63ec03-c50f-4e96-aa00-87722ef1dbe8 2026-04-29 10:02:32,428 - DEBUG - Requesting: http://10.0.0.38:8082/project/b40d06e6-2212-47f3-b7ee-c69a7b4ea4d7 2026-04-29 10:02:32,512 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60606d64-17e5-4082-90c9-68bbe5c9d00d 2026-04-29 10:02:32,521 - DEBUG - ==>Verifying data for policy with id: ee468728-419b-48e7-a9b6-3f891fb07f05, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27947822', 'ctest-policy1-41670023'] 2026-04-29 10:02:32,521 - INFO - VN ctest-vn4-66204372 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-29 10:02:32,522 - DEBUG - Verifying the vn in opserver 2026-04-29 10:02:32,522 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27947822:ctest-vn4-66204372 virtual network link through opserver 10.0.0.38 2026-04-29 10:02:32,522 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-29 10:02:32,821 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-29 10:02:32,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27947822:ctest-vn4-66204372', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27947822:ctest-vn4-66204372?flat'} 2026-04-29 10:02:32,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27947822:ctest-vn4-66204372 is found in opserver 2026-04-29 10:02:32,915 - DEBUG - Do not have enough data to verify VN in agent 2026-04-29 10:02:32,921 - DEBUG - VRF ids for VN ctest-vn4-66204372: {} 2026-04-29 10:02:32,921 - DEBUG - ====Verifying data for ctest-policy1-41670023 in API_Server ====== 2026-04-29 10:02:32,922 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 10:02:32,928 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab63ec03-c50f-4e96-aa00-87722ef1dbe8 2026-04-29 10:02:32,942 - DEBUG - Requesting: http://10.0.0.38:8082/project/b40d06e6-2212-47f3-b7ee-c69a7b4ea4d7 2026-04-29 10:02:33,016 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ee468728-419b-48e7-a9b6-3f891fb07f05 2026-04-29 10:02:33,028 - INFO - Verified policy ctest-policy1-41670023 in API Server, Result: True 2026-04-29 10:02:33,028 - INFO - Done with setup and verification, moving onto test .. 2026-04-29 10:02:33,037 - INFO - Deleting VN ctest-vn4-66204372 2026-04-29 10:02:33,174 - DEBUG - Response for deleting network () 2026-04-29 10:02:33,174 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/998d52de-9d6e-42a7-8137-69a1d3bd1e05 2026-04-29 10:02:33,180 - DEBUG - Response Code: 404 2026-04-29 10:02:33,180 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 10:02:33,186 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab63ec03-c50f-4e96-aa00-87722ef1dbe8 2026-04-29 10:02:33,239 - DEBUG - Requesting: http://10.0.0.38:8082/project/b40d06e6-2212-47f3-b7ee-c69a7b4ea4d7 2026-04-29 10:02:33,316 - INFO - Validated that VN ctest-vn4-66204372 is not found in API Server 2026-04-29 10:02:33,328 - DEBUG - VN ctest-vn4-66204372 is not present in Agent 10.0.0.38 2026-04-29 10:02:33,328 - INFO - Validated that VN ctest-vn4-66204372 is not in any agent 2026-04-29 10:02:33,347 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66204372 info 2026-04-29 10:02:33,371 - INFO - Deleted policy ctest-policy1-41670023 2026-04-29 10:02:33,546 - DEBUG - policy ctest-policy1-41670023 is not found in API Server 2026-04-29 10:02:33,805 - DEBUG - No XMPP flaps were noticed during the test 2026-04-29 10:02:33,805 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-29 10:02:33,805 - INFO - -------------------------------------------------------------------------------- 2026-04-29 10:02:34,112 - DEBUG - No XMPP flaps were noticed during the test 2026-04-29 10:02:34,112 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-29 10:02:34,112 - INFO - -------------------------------------------------------------------------------- 2026-04-29 10:02:34,869 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-27947822, ID : b40d06e6-2212-47f3-b7ee-c69a7b4ea4d7