2026-06-15 01:58:02,295 - INFO - Domain Default found not creating 2026-06-15 01:58:02,447 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01614163 not found, creating it 2026-06-15 01:58:02,915 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01614163, ID : 358132cc-5e75-444c-87ab-a9f06cdc536d 2026-06-15 01:58:04,475 - INFO - ================================================================================ 2026-06-15 01:58:04,475 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 01:58:04,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2026-06-15 01:58:04,732 - INFO - Initial checks done. Running the testcase now 2026-06-15 01:58:04,732 - INFO - 2026-06-15 01:58:04,732 - INFO - ================================================================================ 2026-06-15 01:58:04,732 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 01:58:04,732 - 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-06-15 01:58:05,023 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2026-06-15 01:58:05,023 - INFO - Initial checks done. Running the testcase now 2026-06-15 01:58:05,023 - INFO - 2026-06-15 01:58:05,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01614163:ctest-vn4-44300825, 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-01614163:ctest-vn4-44300825, 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-01614163:ctest-vn4-44300825, 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-01614163:ctest-vn4-44300825, 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-06-15 01:58:05,932 - DEBUG - Response for create_network : {'network': {'id': '192fbf04-7dc0-4c6e-83db-77094b004a22', 'name': 'ctest-vn4-44300825', 'tenant_id': '358132cc5e75444c87aba9f06cdc536d', 'project_id': '358132cc5e75444c87aba9f06cdc536d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01614163', 'ctest-vn4-44300825'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 01:58:06,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '3808b022-d71c-4aee-afca-2b9659f9505d', 'name': '', 'tenant_id': '358132cc5e75444c87aba9f06cdc536d', 'network_id': '192fbf04-7dc0-4c6e-83db-77094b004a22', 'ip_version': 4, 'cidr': '34.162.208.64/26', 'allocation_pools': [{'start': '34.162.208.66', 'end': '34.162.208.126'}], 'gateway_ip': '34.162.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.162.208.66', 'tags': [], 'project_id': '358132cc5e75444c87aba9f06cdc536d'}} 2026-06-15 01:58:06,317 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e2e0a4e-2fff-434d-8aef-e5a57dba1410', 'name': '', 'tenant_id': '358132cc5e75444c87aba9f06cdc536d', 'network_id': '192fbf04-7dc0-4c6e-83db-77094b004a22', 'ip_version': 6, 'cidr': '2668:bd98:3240:afcb:e144:1a32::/96', 'allocation_pools': [{'start': '2668:bd98:3240:afcb:e144:1a32:0:2', 'end': '2668:bd98:3240:afcb:e144:1a32:ffff:fffe'}], 'gateway_ip': '2668:bd98:3240:afcb:e144:1a32:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2668:bd98:3240:afcb:e144:1a32:0:2', 'tags': [], 'project_id': '358132cc5e75444c87aba9f06cdc536d'}} 2026-06-15 01:58:06,336 - INFO - Created VN ctest-vn4-44300825 2026-06-15 01:58:06,390 - DEBUG - VN ctest-vn4-44300825 UUID is 192fbf04-7dc0-4c6e-83db-77094b004a22 2026-06-15 01:58:06,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '192fbf04-7dc0-4c6e-83db-77094b004a22', 'name': 'ctest-vn4-44300825', 'tenant_id': '358132cc5e75444c87aba9f06cdc536d', 'project_id': '358132cc5e75444c87aba9f06cdc536d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3808b022-d71c-4aee-afca-2b9659f9505d', '8e2e0a4e-2fff-434d-8aef-e5a57dba1410'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01614163', 'ctest-vn4-44300825'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01614163', 'ctest-policy1-33953075']], 'subnet_ipam': [{'subnet_cidr': '34.162.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2668:bd98:3240:afcb:e144:1a32::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 01:58:06,762 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-06-15 01:58:07,093 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-06-15 01:58:07,194 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e514d2d5-fa3e-4feb-8eb0-d794d63e9e79 2026-06-15 01:58:07,206 - DEBUG - Requesting: http://10.0.0.41:8082/project/358132cc-5e75-444c-87ab-a9f06cdc536d 2026-06-15 01:58:07,277 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/192fbf04-7dc0-4c6e-83db-77094b004a22 2026-06-15 01:58:07,289 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/192fbf04-7dc0-4c6e-83db-77094b004a22 2026-06-15 01:58:07,299 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4536bcc9-3c6f-4bf4-9f62-b724282aad14 2026-06-15 01:58:07,306 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4536bcc9-3c6f-4bf4-9f62-b724282aad14 2026-06-15 01:58:07,313 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/412de078-ef71-4d02-975a-c34fad92e9e4 2026-06-15 01:58:07,319 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 01:58:07,319 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/192fbf04-7dc0-4c6e-83db-77094b004a22 2026-06-15 01:58:07,329 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4536bcc9-3c6f-4bf4-9f62-b724282aad14 2026-06-15 01:58:07,343 - INFO - Verified VN network id 11 for VN 192fbf04-7dc0-4c6e-83db-77094b004a22 2026-06-15 01:58:07,343 - INFO - Verifications in API Server for VN ctest-vn4-44300825 passed 2026-06-15 01:58:07,343 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/192fbf04-7dc0-4c6e-83db-77094b004a22 2026-06-15 01:58:07,352 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4536bcc9-3c6f-4bf4-9f62-b724282aad14 2026-06-15 01:58:07,359 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4536bcc9-3c6f-4bf4-9f62-b724282aad14 2026-06-15 01:58:07,364 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/412de078-ef71-4d02-975a-c34fad92e9e4 2026-06-15 01:58:07,375 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01614163:ctest-vn4-44300825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01614163', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1814879200864128110', 'uuid-lslong': '9501318720664914466'}, 'enable': 'true', 'created': '2026-06-15T01:58:05', 'last-modified': '2026-06-15T01:58:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.811041'} 2026-06-15 01:58:07,381 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 01:58:07,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44300825 passed 2026-06-15 01:58:07,382 - DEBUG - ====Verifying policy data for ctest-vn4-44300825 in API_Server ====== 2026-06-15 01:58:07,382 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-06-15 01:58:07,387 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e514d2d5-fa3e-4feb-8eb0-d794d63e9e79 2026-06-15 01:58:07,397 - DEBUG - Requesting: http://10.0.0.41:8082/project/358132cc-5e75-444c-87ab-a9f06cdc536d 2026-06-15 01:58:07,467 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/192fbf04-7dc0-4c6e-83db-77094b004a22 2026-06-15 01:58:07,477 - DEBUG - ==>Verifying data for policy with id: cd383447-45fb-425a-91b9-bd92bcdeaab3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01614163', 'ctest-policy1-33953075'] 2026-06-15 01:58:07,478 - INFO - VN ctest-vn4-44300825 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 01:58:07,478 - DEBUG - Verifying the vn in opserver 2026-06-15 01:58:07,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01614163:ctest-vn4-44300825 virtual network link through opserver 10.0.0.41 2026-06-15 01:58:07,478 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-06-15 01:58:07,798 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-06-15 01:58:07,852 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01614163:ctest-vn4-44300825', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01614163:ctest-vn4-44300825?flat'} 2026-06-15 01:58:07,852 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01614163:ctest-vn4-44300825 is found in opserver 2026-06-15 01:58:07,862 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 01:58:07,866 - DEBUG - VRF ids for VN ctest-vn4-44300825: {} 2026-06-15 01:58:07,867 - DEBUG - ====Verifying data for ctest-policy1-33953075 in API_Server ====== 2026-06-15 01:58:07,867 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-06-15 01:58:07,873 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e514d2d5-fa3e-4feb-8eb0-d794d63e9e79 2026-06-15 01:58:07,886 - DEBUG - Requesting: http://10.0.0.41:8082/project/358132cc-5e75-444c-87ab-a9f06cdc536d 2026-06-15 01:58:07,961 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/cd383447-45fb-425a-91b9-bd92bcdeaab3 2026-06-15 01:58:07,970 - INFO - Verified policy ctest-policy1-33953075 in API Server, Result: True 2026-06-15 01:58:07,970 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 01:58:07,977 - INFO - Deleting VN ctest-vn4-44300825 2026-06-15 01:58:08,099 - DEBUG - Response for deleting network () 2026-06-15 01:58:08,099 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4536bcc9-3c6f-4bf4-9f62-b724282aad14 2026-06-15 01:58:08,104 - DEBUG - Response Code: 404 2026-06-15 01:58:08,105 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-06-15 01:58:08,111 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e514d2d5-fa3e-4feb-8eb0-d794d63e9e79 2026-06-15 01:58:08,163 - DEBUG - Requesting: http://10.0.0.41:8082/project/358132cc-5e75-444c-87ab-a9f06cdc536d 2026-06-15 01:58:08,243 - INFO - Validated that VN ctest-vn4-44300825 is not found in API Server 2026-06-15 01:58:08,254 - DEBUG - VN ctest-vn4-44300825 is not present in Agent 10.0.0.41 2026-06-15 01:58:08,254 - INFO - Validated that VN ctest-vn4-44300825 is not in any agent 2026-06-15 01:58:08,267 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44300825 info 2026-06-15 01:58:08,293 - INFO - Deleted policy ctest-policy1-33953075 2026-06-15 01:58:08,461 - DEBUG - policy ctest-policy1-33953075 is not found in API Server 2026-06-15 01:58:08,715 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 01:58:08,716 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-15 01:58:08,716 - INFO - -------------------------------------------------------------------------------- 2026-06-15 01:58:09,003 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 01:58:09,003 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-06-15 01:58:09,003 - INFO - -------------------------------------------------------------------------------- 2026-06-15 01:58:09,746 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01614163, ID : 358132cc-5e75-444c-87ab-a9f06cdc536d