2026-09-10 09:33:55,687 - INFO - Domain Default found not creating 2026-09-10 09:33:55,883 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28071458 not found, creating it 2026-09-10 09:33:56,408 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28071458, ID : 558e7dc1-1b14-437a-b3f1-3d1e91e5f746 2026-09-10 09:33:58,257 - INFO - ================================================================================ 2026-09-10 09:33:58,257 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-10 09:33:58,542 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.254': '0'}} with 2026-09-10 09:33:58,543 - INFO - Initial checks done. Running the testcase now 2026-09-10 09:33:58,543 - INFO - 2026-09-10 09:33:58,543 - INFO - ================================================================================ 2026-09-10 09:33:58,543 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-10 09:33:58,543 - 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-10 09:33:58,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.254': '0'}} with 2026-09-10 09:33:58,844 - INFO - Initial checks done. Running the testcase now 2026-09-10 09:33:58,844 - INFO - 2026-09-10 09:33:59,297 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28071458:ctest-vn4-13130490, 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-28071458:ctest-vn4-13130490, 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-28071458:ctest-vn4-13130490, 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-28071458:ctest-vn4-13130490, 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-10 09:33:59,878 - DEBUG - Response for create_network : {'network': {'id': '57830a64-2dac-4de2-bd2b-acc95d39d538', 'name': 'ctest-vn4-13130490', 'tenant_id': '558e7dc11b14437ab3f13d1e91e5f746', 'project_id': '558e7dc11b14437ab3f13d1e91e5f746', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28071458', 'ctest-vn4-13130490'], 'port_security_enabled': True, 'description': ''}} 2026-09-10 09:34:00,060 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a4fec46-5ed5-4b11-9a78-14b9ebcd9280', 'name': '', 'tenant_id': '558e7dc11b14437ab3f13d1e91e5f746', 'network_id': '57830a64-2dac-4de2-bd2b-acc95d39d538', 'ip_version': 4, 'cidr': '149.26.96.0/26', 'allocation_pools': [{'start': '149.26.96.2', 'end': '149.26.96.62'}], 'gateway_ip': '149.26.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.26.96.2', 'tags': [], 'project_id': '558e7dc11b14437ab3f13d1e91e5f746'}} 2026-09-10 09:34:00,275 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d343b9d-bd95-4d2d-8197-6f263ebf98ee', 'name': '', 'tenant_id': '558e7dc11b14437ab3f13d1e91e5f746', 'network_id': '57830a64-2dac-4de2-bd2b-acc95d39d538', 'ip_version': 6, 'cidr': '2949:33b5:a596:df75:e0b4:c38::/96', 'allocation_pools': [{'start': '2949:33b5:a596:df75:e0b4:c38:0:2', 'end': '2949:33b5:a596:df75:e0b4:c38:ffff:fffe'}], 'gateway_ip': '2949:33b5:a596:df75:e0b4:c38:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2949:33b5:a596:df75:e0b4:c38:0:2', 'tags': [], 'project_id': '558e7dc11b14437ab3f13d1e91e5f746'}} 2026-09-10 09:34:00,302 - INFO - Created VN ctest-vn4-13130490 2026-09-10 09:34:00,362 - DEBUG - VN ctest-vn4-13130490 UUID is 57830a64-2dac-4de2-bd2b-acc95d39d538 2026-09-10 09:34:00,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57830a64-2dac-4de2-bd2b-acc95d39d538', 'name': 'ctest-vn4-13130490', 'tenant_id': '558e7dc11b14437ab3f13d1e91e5f746', 'project_id': '558e7dc11b14437ab3f13d1e91e5f746', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5a4fec46-5ed5-4b11-9a78-14b9ebcd9280', '5d343b9d-bd95-4d2d-8197-6f263ebf98ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28071458', 'ctest-vn4-13130490'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28071458', 'ctest-policy1-38105122']], 'subnet_ipam': [{'subnet_cidr': '149.26.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2949:33b5:a596:df75:e0b4:c38::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-10 09:34:00,818 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-10 09:34:01,197 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-10 09:34:01,236 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2ea1ff06-8ea7-4f0f-abbf-dc8fd66eaf9d 2026-09-10 09:34:01,252 - DEBUG - Requesting: http://10.0.0.161:8082/project/558e7dc1-1b14-437a-b3f1-3d1e91e5f746 2026-09-10 09:34:01,351 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/57830a64-2dac-4de2-bd2b-acc95d39d538 2026-09-10 09:34:01,368 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/57830a64-2dac-4de2-bd2b-acc95d39d538 2026-09-10 09:34:01,380 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5d1b50d-d1ca-45c4-8e36-7117954dac33 2026-09-10 09:34:01,390 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5d1b50d-d1ca-45c4-8e36-7117954dac33 2026-09-10 09:34:01,397 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/eb83d9cf-ae8f-420b-b8ab-b2be669d50cb 2026-09-10 09:34:01,404 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-10 09:34:01,405 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/57830a64-2dac-4de2-bd2b-acc95d39d538 2026-09-10 09:34:01,415 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5d1b50d-d1ca-45c4-8e36-7117954dac33 2026-09-10 09:34:01,434 - INFO - Verified VN network id 12 for VN 57830a64-2dac-4de2-bd2b-acc95d39d538 2026-09-10 09:34:01,434 - INFO - Verifications in API Server for VN ctest-vn4-13130490 passed 2026-09-10 09:34:01,434 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/57830a64-2dac-4de2-bd2b-acc95d39d538 2026-09-10 09:34:01,448 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5d1b50d-d1ca-45c4-8e36-7117954dac33 2026-09-10 09:34:01,456 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5d1b50d-d1ca-45c4-8e36-7117954dac33 2026-09-10 09:34:01,463 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/eb83d9cf-ae8f-420b-b8ab-b2be669d50cb 2026-09-10 09:34:01,476 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28071458:ctest-vn4-13130490', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28071458', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6305895328628100578', 'uuid-lslong': '13631178678019413304'}, 'enable': 'true', 'created': '2026-09-10T09:33:59', 'last-modified': '2026-09-10T09:34:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894327'} 2026-09-10 09:34:01,482 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-10 09:34:01,482 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13130490 passed 2026-09-10 09:34:01,483 - DEBUG - ====Verifying policy data for ctest-vn4-13130490 in API_Server ====== 2026-09-10 09:34:01,483 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-10 09:34:01,490 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2ea1ff06-8ea7-4f0f-abbf-dc8fd66eaf9d 2026-09-10 09:34:01,503 - DEBUG - Requesting: http://10.0.0.161:8082/project/558e7dc1-1b14-437a-b3f1-3d1e91e5f746 2026-09-10 09:34:01,588 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/57830a64-2dac-4de2-bd2b-acc95d39d538 2026-09-10 09:34:01,600 - DEBUG - ==>Verifying data for policy with id: edd7420e-35cf-49d3-8fa8-e7cf37c00b2a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28071458', 'ctest-policy1-38105122'] 2026-09-10 09:34:01,600 - INFO - VN ctest-vn4-13130490 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-10 09:34:01,600 - DEBUG - Verifying the vn in opserver 2026-09-10 09:34:01,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28071458:ctest-vn4-13130490 virtual network link through opserver 10.0.0.161 2026-09-10 09:34:01,600 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-10 09:34:01,975 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-10 09:34:02,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28071458:ctest-vn4-13130490', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28071458:ctest-vn4-13130490?flat'} 2026-09-10 09:34:02,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28071458:ctest-vn4-13130490 is found in opserver 2026-09-10 09:34:02,057 - DEBUG - Do not have enough data to verify VN in agent 2026-09-10 09:34:02,063 - DEBUG - VRF ids for VN ctest-vn4-13130490: {} 2026-09-10 09:34:02,063 - DEBUG - ====Verifying data for ctest-policy1-38105122 in API_Server ====== 2026-09-10 09:34:02,063 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-10 09:34:02,069 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2ea1ff06-8ea7-4f0f-abbf-dc8fd66eaf9d 2026-09-10 09:34:02,080 - DEBUG - Requesting: http://10.0.0.161:8082/project/558e7dc1-1b14-437a-b3f1-3d1e91e5f746 2026-09-10 09:34:02,168 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/edd7420e-35cf-49d3-8fa8-e7cf37c00b2a 2026-09-10 09:34:02,182 - INFO - Verified policy ctest-policy1-38105122 in API Server, Result: True 2026-09-10 09:34:02,182 - INFO - Done with setup and verification, moving onto test .. 2026-09-10 09:34:02,194 - INFO - Deleting VN ctest-vn4-13130490 2026-09-10 09:34:02,353 - DEBUG - Response for deleting network () 2026-09-10 09:34:02,353 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c5d1b50d-d1ca-45c4-8e36-7117954dac33 2026-09-10 09:34:02,359 - DEBUG - Response Code: 404 2026-09-10 09:34:02,360 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-10 09:34:02,366 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2ea1ff06-8ea7-4f0f-abbf-dc8fd66eaf9d 2026-09-10 09:34:02,419 - DEBUG - Requesting: http://10.0.0.161:8082/project/558e7dc1-1b14-437a-b3f1-3d1e91e5f746 2026-09-10 09:34:02,503 - INFO - Validated that VN ctest-vn4-13130490 is not found in API Server 2026-09-10 09:34:02,523 - DEBUG - VN ctest-vn4-13130490 is not present in Agent 10.0.0.161 2026-09-10 09:34:02,523 - INFO - Validated that VN ctest-vn4-13130490 is not in any agent 2026-09-10 09:34:02,545 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13130490 info 2026-09-10 09:34:02,577 - INFO - Deleted policy ctest-policy1-38105122 2026-09-10 09:34:02,753 - DEBUG - policy ctest-policy1-38105122 is not found in API Server 2026-09-10 09:34:03,028 - DEBUG - No XMPP flaps were noticed during the test 2026-09-10 09:34:03,029 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-10 09:34:03,029 - INFO - -------------------------------------------------------------------------------- 2026-09-10 09:34:03,323 - DEBUG - No XMPP flaps were noticed during the test 2026-09-10 09:34:03,323 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-10 09:34:03,323 - INFO - -------------------------------------------------------------------------------- 2026-09-10 09:34:04,161 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28071458, ID : 558e7dc1-1b14-437a-b3f1-3d1e91e5f746