2026-09-18 04:19:47,054 - INFO - Domain Default found not creating 2026-09-18 04:19:47,222 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98010583 not found, creating it 2026-09-18 04:19:47,746 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98010583, ID : a50d737f-9227-4778-a758-623d83c0da37 2026-09-18 04:19:49,369 - INFO - ================================================================================ 2026-09-18 04:19:49,369 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-18 04:19:49,628 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-18 04:19:49,629 - INFO - Initial checks done. Running the testcase now 2026-09-18 04:19:49,629 - INFO - 2026-09-18 04:19:49,629 - INFO - ================================================================================ 2026-09-18 04:19:49,629 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-18 04:19:49,629 - 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-09-18 04:19:49,945 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-18 04:19:49,945 - INFO - Initial checks done. Running the testcase now 2026-09-18 04:19:49,945 - INFO - 2026-09-18 04:19:50,509 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98010583:ctest-vn4-62399262, 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-98010583:ctest-vn4-62399262, 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-98010583:ctest-vn4-62399262, 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-98010583:ctest-vn4-62399262, 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-09-18 04:19:51,065 - DEBUG - Response for create_network : {'network': {'id': '60d92446-b7d0-4816-8558-15ec2de24f30', 'name': 'ctest-vn4-62399262', 'tenant_id': 'a50d737f92274778a758623d83c0da37', 'project_id': 'a50d737f92274778a758623d83c0da37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98010583', 'ctest-vn4-62399262'], 'port_security_enabled': True, 'description': ''}} 2026-09-18 04:19:51,229 - DEBUG - Response for create_subnet : {'subnet': {'id': '3044c535-d370-4413-b519-6d29c29061a1', 'name': '', 'tenant_id': 'a50d737f92274778a758623d83c0da37', 'network_id': '60d92446-b7d0-4816-8558-15ec2de24f30', 'ip_version': 4, 'cidr': '124.73.49.128/26', 'allocation_pools': [{'start': '124.73.49.130', 'end': '124.73.49.190'}], 'gateway_ip': '124.73.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.73.49.130', 'tags': [], 'project_id': 'a50d737f92274778a758623d83c0da37'}} 2026-09-18 04:19:51,448 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3536078-7dab-4cd1-91e6-0a5b26e162a2', 'name': '', 'tenant_id': 'a50d737f92274778a758623d83c0da37', 'network_id': '60d92446-b7d0-4816-8558-15ec2de24f30', 'ip_version': 6, 'cidr': '3e7d:8a73:a7a8:dc20:3b29:ceba::/96', 'allocation_pools': [{'start': '3e7d:8a73:a7a8:dc20:3b29:ceba:0:2', 'end': '3e7d:8a73:a7a8:dc20:3b29:ceba:ffff:fffe'}], 'gateway_ip': '3e7d:8a73:a7a8:dc20:3b29:ceba:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e7d:8a73:a7a8:dc20:3b29:ceba:0:2', 'tags': [], 'project_id': 'a50d737f92274778a758623d83c0da37'}} 2026-09-18 04:19:51,468 - INFO - Created VN ctest-vn4-62399262 2026-09-18 04:19:51,520 - DEBUG - VN ctest-vn4-62399262 UUID is 60d92446-b7d0-4816-8558-15ec2de24f30 2026-09-18 04:19:51,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60d92446-b7d0-4816-8558-15ec2de24f30', 'name': 'ctest-vn4-62399262', 'tenant_id': 'a50d737f92274778a758623d83c0da37', 'project_id': 'a50d737f92274778a758623d83c0da37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['3044c535-d370-4413-b519-6d29c29061a1', 'd3536078-7dab-4cd1-91e6-0a5b26e162a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98010583', 'ctest-vn4-62399262'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98010583', 'ctest-policy1-31463897']], 'subnet_ipam': [{'subnet_cidr': '124.73.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e7d:8a73:a7a8:dc20:3b29:ceba::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-18 04:19:51,892 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-18 04:19:52,214 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-18 04:19:52,242 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3 2026-09-18 04:19:52,254 - DEBUG - Requesting: http://10.0.0.38:8082/project/a50d737f-9227-4778-a758-623d83c0da37 2026-09-18 04:19:52,334 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60d92446-b7d0-4816-8558-15ec2de24f30 2026-09-18 04:19:52,346 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60d92446-b7d0-4816-8558-15ec2de24f30 2026-09-18 04:19:52,357 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f642df88-0d4a-4cbc-be69-8ceda0129f99 2026-09-18 04:19:52,366 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f642df88-0d4a-4cbc-be69-8ceda0129f99 2026-09-18 04:19:52,374 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44d2d101-dc73-494d-93b2-8fecd9b358b7 2026-09-18 04:19:52,382 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-18 04:19:52,382 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60d92446-b7d0-4816-8558-15ec2de24f30 2026-09-18 04:19:52,392 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f642df88-0d4a-4cbc-be69-8ceda0129f99 2026-09-18 04:19:52,407 - INFO - Verified VN network id 12 for VN 60d92446-b7d0-4816-8558-15ec2de24f30 2026-09-18 04:19:52,408 - INFO - Verifications in API Server for VN ctest-vn4-62399262 passed 2026-09-18 04:19:52,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60d92446-b7d0-4816-8558-15ec2de24f30 2026-09-18 04:19:52,418 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f642df88-0d4a-4cbc-be69-8ceda0129f99 2026-09-18 04:19:52,425 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f642df88-0d4a-4cbc-be69-8ceda0129f99 2026-09-18 04:19:52,433 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44d2d101-dc73-494d-93b2-8fecd9b358b7 2026-09-18 04:19:52,447 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98010583:ctest-vn4-62399262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98010583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6978648983737485334', 'uuid-lslong': '9608453909121224496'}, 'enable': 'true', 'created': '2026-09-18T04:19:51', 'last-modified': '2026-09-18T04:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742332'} 2026-09-18 04:19:52,455 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-18 04:19:52,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62399262 passed 2026-09-18 04:19:52,455 - DEBUG - ====Verifying policy data for ctest-vn4-62399262 in API_Server ====== 2026-09-18 04:19:52,455 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-18 04:19:52,462 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3 2026-09-18 04:19:52,476 - DEBUG - Requesting: http://10.0.0.38:8082/project/a50d737f-9227-4778-a758-623d83c0da37 2026-09-18 04:19:52,553 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60d92446-b7d0-4816-8558-15ec2de24f30 2026-09-18 04:19:52,565 - DEBUG - ==>Verifying data for policy with id: ed527ff9-72b3-4f44-80e1-f15cacb3995f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98010583', 'ctest-policy1-31463897'] 2026-09-18 04:19:52,565 - INFO - VN ctest-vn4-62399262 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-18 04:19:52,565 - DEBUG - Verifying the vn in opserver 2026-09-18 04:19:52,565 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98010583:ctest-vn4-62399262 virtual network link through opserver 10.0.0.38 2026-09-18 04:19:52,565 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-18 04:19:52,901 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-18 04:19:52,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98010583:ctest-vn4-62399262', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98010583:ctest-vn4-62399262?flat'} 2026-09-18 04:19:52,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98010583:ctest-vn4-62399262 is found in opserver 2026-09-18 04:19:52,969 - DEBUG - Do not have enough data to verify VN in agent 2026-09-18 04:19:52,974 - DEBUG - VRF ids for VN ctest-vn4-62399262: {} 2026-09-18 04:19:52,975 - DEBUG - ====Verifying data for ctest-policy1-31463897 in API_Server ====== 2026-09-18 04:19:52,975 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-18 04:19:52,981 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3 2026-09-18 04:19:52,992 - DEBUG - Requesting: http://10.0.0.38:8082/project/a50d737f-9227-4778-a758-623d83c0da37 2026-09-18 04:19:53,068 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ed527ff9-72b3-4f44-80e1-f15cacb3995f 2026-09-18 04:19:53,079 - INFO - Verified policy ctest-policy1-31463897 in API Server, Result: True 2026-09-18 04:19:53,079 - INFO - Done with setup and verification, moving onto test .. 2026-09-18 04:19:53,089 - INFO - Deleting VN ctest-vn4-62399262 2026-09-18 04:19:53,228 - DEBUG - Response for deleting network () 2026-09-18 04:19:53,228 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f642df88-0d4a-4cbc-be69-8ceda0129f99 2026-09-18 04:19:53,233 - DEBUG - Response Code: 404 2026-09-18 04:19:53,233 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-18 04:19:53,239 - DEBUG - Requesting: http://10.0.0.38:8082/domain/001c0a2a-f384-4310-9d55-4b79fe4423f3 2026-09-18 04:19:53,294 - DEBUG - Requesting: http://10.0.0.38:8082/project/a50d737f-9227-4778-a758-623d83c0da37 2026-09-18 04:19:53,362 - INFO - Validated that VN ctest-vn4-62399262 is not found in API Server 2026-09-18 04:19:53,377 - DEBUG - VN ctest-vn4-62399262 is not present in Agent 10.0.0.38 2026-09-18 04:19:53,377 - INFO - Validated that VN ctest-vn4-62399262 is not in any agent 2026-09-18 04:19:53,396 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62399262 info 2026-09-18 04:19:53,423 - INFO - Deleted policy ctest-policy1-31463897 2026-09-18 04:19:53,596 - DEBUG - policy ctest-policy1-31463897 is not found in API Server 2026-09-18 04:19:53,865 - DEBUG - No XMPP flaps were noticed during the test