2026-05-30 07:09:08,173 - INFO - Domain Default found not creating 2026-05-30 07:09:08,356 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08826894 not found, creating it 2026-05-30 07:09:08,842 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08826894, ID : 67b24a28-50b1-4169-8e50-6f10673e2bea 2026-05-30 07:09:10,502 - INFO - ================================================================================ 2026-05-30 07:09:10,502 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-30 07:09:10,759 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-30 07:09:10,759 - INFO - Initial checks done. Running the testcase now 2026-05-30 07:09:10,759 - INFO - 2026-05-30 07:09:10,759 - INFO - ================================================================================ 2026-05-30 07:09:10,759 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-30 07:09:10,759 - 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-05-30 07:09:11,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-30 07:09:11,050 - INFO - Initial checks done. Running the testcase now 2026-05-30 07:09:11,050 - INFO - 2026-05-30 07:09:11,437 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08826894:ctest-vn4-39218235, 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-08826894:ctest-vn4-39218235, 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-08826894:ctest-vn4-39218235, 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-08826894:ctest-vn4-39218235, 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-05-30 07:09:11,979 - DEBUG - Response for create_network : {'network': {'id': '743840b1-6ae2-4ac0-bf72-88db1c25ab89', 'name': 'ctest-vn4-39218235', 'tenant_id': '67b24a2850b141698e506f10673e2bea', 'project_id': '67b24a2850b141698e506f10673e2bea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08826894', 'ctest-vn4-39218235'], 'port_security_enabled': True, 'description': ''}} 2026-05-30 07:09:12,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '378fe680-1ae3-4de8-ab00-016a444c46f4', 'name': '', 'tenant_id': '67b24a2850b141698e506f10673e2bea', 'network_id': '743840b1-6ae2-4ac0-bf72-88db1c25ab89', 'ip_version': 4, 'cidr': '43.77.255.128/26', 'allocation_pools': [{'start': '43.77.255.130', 'end': '43.77.255.190'}], 'gateway_ip': '43.77.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.77.255.130', 'tags': [], 'project_id': '67b24a2850b141698e506f10673e2bea'}} 2026-05-30 07:09:12,369 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4b00c30-3422-4122-9bda-93d7301da14f', 'name': '', 'tenant_id': '67b24a2850b141698e506f10673e2bea', 'network_id': '743840b1-6ae2-4ac0-bf72-88db1c25ab89', 'ip_version': 6, 'cidr': '376b:49b5:9c2a:c55d:c7d1:f1c1::/96', 'allocation_pools': [{'start': '376b:49b5:9c2a:c55d:c7d1:f1c1:0:2', 'end': '376b:49b5:9c2a:c55d:c7d1:f1c1:ffff:fffe'}], 'gateway_ip': '376b:49b5:9c2a:c55d:c7d1:f1c1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '376b:49b5:9c2a:c55d:c7d1:f1c1:0:2', 'tags': [], 'project_id': '67b24a2850b141698e506f10673e2bea'}} 2026-05-30 07:09:12,390 - INFO - Created VN ctest-vn4-39218235 2026-05-30 07:09:12,445 - DEBUG - VN ctest-vn4-39218235 UUID is 743840b1-6ae2-4ac0-bf72-88db1c25ab89 2026-05-30 07:09:12,658 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '743840b1-6ae2-4ac0-bf72-88db1c25ab89', 'name': 'ctest-vn4-39218235', 'tenant_id': '67b24a2850b141698e506f10673e2bea', 'project_id': '67b24a2850b141698e506f10673e2bea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['378fe680-1ae3-4de8-ab00-016a444c46f4', 'e4b00c30-3422-4122-9bda-93d7301da14f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08826894', 'ctest-vn4-39218235'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08826894', 'ctest-policy1-26130764']], 'subnet_ipam': [{'subnet_cidr': '43.77.255.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '376b:49b5:9c2a:c55d:c7d1:f1c1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-30 07:09:12,821 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-30 07:09:13,122 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-30 07:09:13,155 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76 2026-05-30 07:09:13,167 - DEBUG - Requesting: http://10.0.0.38:8082/project/67b24a28-50b1-4169-8e50-6f10673e2bea 2026-05-30 07:09:13,250 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/743840b1-6ae2-4ac0-bf72-88db1c25ab89 2026-05-30 07:09:13,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/743840b1-6ae2-4ac0-bf72-88db1c25ab89 2026-05-30 07:09:13,270 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/07f4d130-16c2-4e4c-b85c-e2739721a6c0 2026-05-30 07:09:13,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/07f4d130-16c2-4e4c-b85c-e2739721a6c0 2026-05-30 07:09:13,285 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bb26f055-65da-48c7-88eb-5641a3f0905a 2026-05-30 07:09:13,292 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-30 07:09:13,292 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/743840b1-6ae2-4ac0-bf72-88db1c25ab89 2026-05-30 07:09:13,302 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/07f4d130-16c2-4e4c-b85c-e2739721a6c0 2026-05-30 07:09:13,319 - INFO - Verified VN network id 11 for VN 743840b1-6ae2-4ac0-bf72-88db1c25ab89 2026-05-30 07:09:13,319 - INFO - Verifications in API Server for VN ctest-vn4-39218235 passed 2026-05-30 07:09:13,319 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/743840b1-6ae2-4ac0-bf72-88db1c25ab89 2026-05-30 07:09:13,329 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/07f4d130-16c2-4e4c-b85c-e2739721a6c0 2026-05-30 07:09:13,337 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/07f4d130-16c2-4e4c-b85c-e2739721a6c0 2026-05-30 07:09:13,346 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bb26f055-65da-48c7-88eb-5641a3f0905a 2026-05-30 07:09:13,359 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08826894:ctest-vn4-39218235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08826894', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8374514637842041536', 'uuid-lslong': '13795239083240696713'}, 'enable': 'true', 'created': '2026-05-30T07:09:11', 'last-modified': '2026-05-30T07:09:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727492'} 2026-05-30 07:09:13,364 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-30 07:09:13,365 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39218235 passed 2026-05-30 07:09:13,365 - DEBUG - ====Verifying policy data for ctest-vn4-39218235 in API_Server ====== 2026-05-30 07:09:13,365 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-30 07:09:13,371 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76 2026-05-30 07:09:13,382 - DEBUG - Requesting: http://10.0.0.38:8082/project/67b24a28-50b1-4169-8e50-6f10673e2bea 2026-05-30 07:09:13,454 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/743840b1-6ae2-4ac0-bf72-88db1c25ab89 2026-05-30 07:09:13,464 - DEBUG - ==>Verifying data for policy with id: 07858936-d6e5-41c2-b1fa-26d4eb821b50, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08826894', 'ctest-policy1-26130764'] 2026-05-30 07:09:13,464 - INFO - VN ctest-vn4-39218235 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-30 07:09:13,464 - DEBUG - Verifying the vn in opserver 2026-05-30 07:09:13,464 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08826894:ctest-vn4-39218235 virtual network link through opserver 10.0.0.38 2026-05-30 07:09:13,464 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-30 07:09:13,758 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-30 07:09:13,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08826894:ctest-vn4-39218235', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08826894:ctest-vn4-39218235?flat'} 2026-05-30 07:09:13,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08826894:ctest-vn4-39218235 is found in opserver 2026-05-30 07:09:13,831 - DEBUG - Do not have enough data to verify VN in agent 2026-05-30 07:09:13,835 - DEBUG - VRF ids for VN ctest-vn4-39218235: {} 2026-05-30 07:09:13,836 - DEBUG - ====Verifying data for ctest-policy1-26130764 in API_Server ====== 2026-05-30 07:09:13,836 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-30 07:09:13,842 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76 2026-05-30 07:09:13,853 - DEBUG - Requesting: http://10.0.0.38:8082/project/67b24a28-50b1-4169-8e50-6f10673e2bea 2026-05-30 07:09:13,921 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/07858936-d6e5-41c2-b1fa-26d4eb821b50 2026-05-30 07:09:13,930 - INFO - Verified policy ctest-policy1-26130764 in API Server, Result: True 2026-05-30 07:09:13,930 - INFO - Done with setup and verification, moving onto test .. 2026-05-30 07:09:13,938 - INFO - Deleting VN ctest-vn4-39218235 2026-05-30 07:09:14,088 - DEBUG - Response for deleting network () 2026-05-30 07:09:14,088 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/07f4d130-16c2-4e4c-b85c-e2739721a6c0 2026-05-30 07:09:14,093 - DEBUG - Response Code: 404 2026-05-30 07:09:14,094 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-30 07:09:14,099 - DEBUG - Requesting: http://10.0.0.38:8082/domain/897db3cc-3fb5-4aea-9506-17a610ce1f76 2026-05-30 07:09:14,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/67b24a28-50b1-4169-8e50-6f10673e2bea 2026-05-30 07:09:14,225 - INFO - Validated that VN ctest-vn4-39218235 is not found in API Server 2026-05-30 07:09:14,235 - DEBUG - VN ctest-vn4-39218235 is not present in Agent 10.0.0.38 2026-05-30 07:09:14,235 - INFO - Validated that VN ctest-vn4-39218235 is not in any agent 2026-05-30 07:09:14,249 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39218235 info 2026-05-30 07:09:14,274 - INFO - Deleted policy ctest-policy1-26130764 2026-05-30 07:09:14,445 - DEBUG - policy ctest-policy1-26130764 is not found in API Server 2026-05-30 07:09:14,698 - DEBUG - No XMPP flaps were noticed during the test