2026-05-26 16:07:08,786 - INFO - Domain Default found not creating 2026-05-26 16:07:09,003 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43885447 not found, creating it 2026-05-26 16:07:09,625 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43885447, ID : 3178e35b-cccc-4063-9a49-012a3c22b11f 2026-05-26 16:07:11,277 - INFO - ================================================================================ 2026-05-26 16:07:11,277 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-26 16:07:11,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.129': '0'}} with 2026-05-26 16:07:11,543 - INFO - Initial checks done. Running the testcase now 2026-05-26 16:07:11,543 - INFO - 2026-05-26 16:07:11,543 - INFO - ================================================================================ 2026-05-26 16:07:11,544 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-26 16:07:11,544 - 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-26 16:07:11,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.129': '0'}} with 2026-05-26 16:07:11,830 - INFO - Initial checks done. Running the testcase now 2026-05-26 16:07:11,830 - INFO - 2026-05-26 16:07:12,205 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43885447:ctest-vn4-48139179, 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-43885447:ctest-vn4-48139179, 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-43885447:ctest-vn4-48139179, 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-43885447:ctest-vn4-48139179, 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-26 16:07:12,751 - DEBUG - Response for create_network : {'network': {'id': '45750b8b-ea30-4d1d-a731-9ed2b0b74329', 'name': 'ctest-vn4-48139179', 'tenant_id': '3178e35bcccc40639a49012a3c22b11f', 'project_id': '3178e35bcccc40639a49012a3c22b11f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43885447', 'ctest-vn4-48139179'], 'port_security_enabled': True, 'description': ''}} 2026-05-26 16:07:12,978 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e80e0807-7293-4110-a241-039edc0cb7f2', 'name': '', 'tenant_id': '3178e35bcccc40639a49012a3c22b11f', 'network_id': '45750b8b-ea30-4d1d-a731-9ed2b0b74329', 'ip_version': 4, 'cidr': '191.87.155.192/26', 'allocation_pools': [{'start': '191.87.155.194', 'end': '191.87.155.254'}], 'gateway_ip': '191.87.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.87.155.194', 'tags': [], 'project_id': '3178e35bcccc40639a49012a3c22b11f'}} 2026-05-26 16:07:13,137 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f146d416-83bf-4b51-85a9-ebc9ebc5c4c2', 'name': '', 'tenant_id': '3178e35bcccc40639a49012a3c22b11f', 'network_id': '45750b8b-ea30-4d1d-a731-9ed2b0b74329', 'ip_version': 6, 'cidr': '2324:a412:55d0:f051:578a:24ad::/96', 'allocation_pools': [{'start': '2324:a412:55d0:f051:578a:24ad:0:2', 'end': '2324:a412:55d0:f051:578a:24ad:ffff:fffe'}], 'gateway_ip': '2324:a412:55d0:f051:578a:24ad:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2324:a412:55d0:f051:578a:24ad:0:2', 'tags': [], 'project_id': '3178e35bcccc40639a49012a3c22b11f'}} 2026-05-26 16:07:13,159 - INFO - Created VN ctest-vn4-48139179 2026-05-26 16:07:13,212 - DEBUG - VN ctest-vn4-48139179 UUID is 45750b8b-ea30-4d1d-a731-9ed2b0b74329 2026-05-26 16:07:13,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45750b8b-ea30-4d1d-a731-9ed2b0b74329', 'name': 'ctest-vn4-48139179', 'tenant_id': '3178e35bcccc40639a49012a3c22b11f', 'project_id': '3178e35bcccc40639a49012a3c22b11f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e80e0807-7293-4110-a241-039edc0cb7f2', 'f146d416-83bf-4b51-85a9-ebc9ebc5c4c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43885447', 'ctest-vn4-48139179'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43885447', 'ctest-policy1-48790471']], 'subnet_ipam': [{'subnet_cidr': '191.87.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2324:a412:55d0:f051:578a:24ad::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-26 16:07:13,608 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-26 16:07:13,908 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-26 16:07:13,943 - DEBUG - Requesting: http://10.0.0.141:8082/domain/bfe61374-1fe4-49de-a89f-a0f0ef2c241b 2026-05-26 16:07:13,959 - DEBUG - Requesting: http://10.0.0.141:8082/project/3178e35b-cccc-4063-9a49-012a3c22b11f 2026-05-26 16:07:14,041 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/45750b8b-ea30-4d1d-a731-9ed2b0b74329 2026-05-26 16:07:14,055 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/45750b8b-ea30-4d1d-a731-9ed2b0b74329 2026-05-26 16:07:14,067 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/645303e4-787a-4670-98e6-6fcbae1a74aa 2026-05-26 16:07:14,074 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/645303e4-787a-4670-98e6-6fcbae1a74aa 2026-05-26 16:07:14,083 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f73c9372-8122-4298-b392-e9d8cb69d0df 2026-05-26 16:07:14,090 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-26 16:07:14,090 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/45750b8b-ea30-4d1d-a731-9ed2b0b74329 2026-05-26 16:07:14,100 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/645303e4-787a-4670-98e6-6fcbae1a74aa 2026-05-26 16:07:14,116 - INFO - Verified VN network id 11 for VN 45750b8b-ea30-4d1d-a731-9ed2b0b74329 2026-05-26 16:07:14,116 - INFO - Verifications in API Server for VN ctest-vn4-48139179 passed 2026-05-26 16:07:14,117 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/45750b8b-ea30-4d1d-a731-9ed2b0b74329 2026-05-26 16:07:14,127 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/645303e4-787a-4670-98e6-6fcbae1a74aa 2026-05-26 16:07:14,135 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/645303e4-787a-4670-98e6-6fcbae1a74aa 2026-05-26 16:07:14,143 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f73c9372-8122-4298-b392-e9d8cb69d0df 2026-05-26 16:07:14,157 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43885447:ctest-vn4-48139179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43885447', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5004919256449568029', 'uuid-lslong': '12047585105937908521'}, 'enable': 'true', 'created': '2026-05-26T16:07:12', 'last-modified': '2026-05-26T16:07:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753252'} 2026-05-26 16:07:14,163 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-26 16:07:14,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48139179 passed 2026-05-26 16:07:14,163 - DEBUG - ====Verifying policy data for ctest-vn4-48139179 in API_Server ====== 2026-05-26 16:07:14,163 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-26 16:07:14,169 - DEBUG - Requesting: http://10.0.0.141:8082/domain/bfe61374-1fe4-49de-a89f-a0f0ef2c241b 2026-05-26 16:07:14,182 - DEBUG - Requesting: http://10.0.0.141:8082/project/3178e35b-cccc-4063-9a49-012a3c22b11f 2026-05-26 16:07:14,269 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/45750b8b-ea30-4d1d-a731-9ed2b0b74329 2026-05-26 16:07:14,280 - DEBUG - ==>Verifying data for policy with id: 1f095d77-bc25-4167-b67e-20497da4262c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43885447', 'ctest-policy1-48790471'] 2026-05-26 16:07:14,280 - INFO - VN ctest-vn4-48139179 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-26 16:07:14,280 - DEBUG - Verifying the vn in opserver 2026-05-26 16:07:14,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43885447:ctest-vn4-48139179 virtual network link through opserver 10.0.0.141 2026-05-26 16:07:14,280 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-26 16:07:14,576 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-26 16:07:14,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43885447:ctest-vn4-48139179', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43885447:ctest-vn4-48139179?flat'} 2026-05-26 16:07:14,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43885447:ctest-vn4-48139179 is found in opserver 2026-05-26 16:07:14,664 - DEBUG - Do not have enough data to verify VN in agent 2026-05-26 16:07:14,671 - DEBUG - VRF ids for VN ctest-vn4-48139179: {} 2026-05-26 16:07:14,672 - DEBUG - ====Verifying data for ctest-policy1-48790471 in API_Server ====== 2026-05-26 16:07:14,672 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-26 16:07:14,680 - DEBUG - Requesting: http://10.0.0.141:8082/domain/bfe61374-1fe4-49de-a89f-a0f0ef2c241b 2026-05-26 16:07:14,694 - DEBUG - Requesting: http://10.0.0.141:8082/project/3178e35b-cccc-4063-9a49-012a3c22b11f 2026-05-26 16:07:14,767 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/1f095d77-bc25-4167-b67e-20497da4262c 2026-05-26 16:07:14,777 - INFO - Verified policy ctest-policy1-48790471 in API Server, Result: True 2026-05-26 16:07:14,777 - INFO - Done with setup and verification, moving onto test .. 2026-05-26 16:07:14,785 - INFO - Deleting VN ctest-vn4-48139179 2026-05-26 16:07:14,928 - DEBUG - Response for deleting network () 2026-05-26 16:07:14,928 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/645303e4-787a-4670-98e6-6fcbae1a74aa 2026-05-26 16:07:14,935 - DEBUG - Response Code: 404 2026-05-26 16:07:14,935 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-26 16:07:14,942 - DEBUG - Requesting: http://10.0.0.141:8082/domain/bfe61374-1fe4-49de-a89f-a0f0ef2c241b 2026-05-26 16:07:14,993 - DEBUG - Requesting: http://10.0.0.141:8082/project/3178e35b-cccc-4063-9a49-012a3c22b11f 2026-05-26 16:07:15,064 - INFO - Validated that VN ctest-vn4-48139179 is not found in API Server 2026-05-26 16:07:15,074 - DEBUG - VN ctest-vn4-48139179 is not present in Agent 10.0.0.141 2026-05-26 16:07:15,074 - INFO - Validated that VN ctest-vn4-48139179 is not in any agent 2026-05-26 16:07:15,089 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48139179 info 2026-05-26 16:07:15,111 - INFO - Deleted policy ctest-policy1-48790471 2026-05-26 16:07:15,272 - DEBUG - policy ctest-policy1-48790471 is not found in API Server 2026-05-26 16:07:15,529 - DEBUG - No XMPP flaps were noticed during the test 2026-05-26 16:07:15,529 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-26 16:07:15,529 - INFO - -------------------------------------------------------------------------------- 2026-05-26 16:07:15,817 - DEBUG - No XMPP flaps were noticed during the test 2026-05-26 16:07:15,817 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-26 16:07:15,817 - INFO - -------------------------------------------------------------------------------- 2026-05-26 16:07:16,504 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43885447, ID : 3178e35b-cccc-4063-9a49-012a3c22b11f