2026-04-03 17:12:53,247 - INFO - Domain Default found not creating 2026-04-03 17:12:53,415 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50720107 not found, creating it 2026-04-03 17:12:53,978 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50720107, ID : 4ccac654-d118-4895-8427-1da5f2c5f55f 2026-04-03 17:12:55,479 - INFO - ================================================================================ 2026-04-03 17:12:55,480 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 17:12:55,736 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2026-04-03 17:12:55,736 - INFO - Initial checks done. Running the testcase now 2026-04-03 17:12:55,736 - INFO - 2026-04-03 17:12:55,736 - INFO - ================================================================================ 2026-04-03 17:12:55,736 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 17:12:55,736 - 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-04-03 17:12:56,025 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2026-04-03 17:12:56,025 - INFO - Initial checks done. Running the testcase now 2026-04-03 17:12:56,025 - INFO - 2026-04-03 17:12:56,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50720107:ctest-vn4-68590021, 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-50720107:ctest-vn4-68590021, 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-50720107:ctest-vn4-68590021, 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-50720107:ctest-vn4-68590021, 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-04-03 17:12:56,922 - DEBUG - Response for create_network : {'network': {'id': '647d43fd-e3ff-4c71-bebd-2a0d31d7a358', 'name': 'ctest-vn4-68590021', 'tenant_id': '4ccac654d118489584271da5f2c5f55f', 'project_id': '4ccac654d118489584271da5f2c5f55f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50720107', 'ctest-vn4-68590021'], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:12:57,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '56d719f8-d6d3-4369-ac38-88fac9d0c3df', 'name': '', 'tenant_id': '4ccac654d118489584271da5f2c5f55f', 'network_id': '647d43fd-e3ff-4c71-bebd-2a0d31d7a358', 'ip_version': 4, 'cidr': '126.103.163.128/26', 'allocation_pools': [{'start': '126.103.163.130', 'end': '126.103.163.190'}], 'gateway_ip': '126.103.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.103.163.130', 'tags': [], 'project_id': '4ccac654d118489584271da5f2c5f55f'}} 2026-04-03 17:12:57,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '058ee333-3d06-4eb0-9e8d-a664b0a1e279', 'name': '', 'tenant_id': '4ccac654d118489584271da5f2c5f55f', 'network_id': '647d43fd-e3ff-4c71-bebd-2a0d31d7a358', 'ip_version': 6, 'cidr': '3a31:34b8:cad2:a752:c0cf:2be7::/96', 'allocation_pools': [{'start': '3a31:34b8:cad2:a752:c0cf:2be7:0:2', 'end': '3a31:34b8:cad2:a752:c0cf:2be7:ffff:fffe'}], 'gateway_ip': '3a31:34b8:cad2:a752:c0cf:2be7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a31:34b8:cad2:a752:c0cf:2be7:0:2', 'tags': [], 'project_id': '4ccac654d118489584271da5f2c5f55f'}} 2026-04-03 17:12:57,276 - INFO - Created VN ctest-vn4-68590021 2026-04-03 17:12:57,329 - DEBUG - VN ctest-vn4-68590021 UUID is 647d43fd-e3ff-4c71-bebd-2a0d31d7a358 2026-04-03 17:12:57,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '647d43fd-e3ff-4c71-bebd-2a0d31d7a358', 'name': 'ctest-vn4-68590021', 'tenant_id': '4ccac654d118489584271da5f2c5f55f', 'project_id': '4ccac654d118489584271da5f2c5f55f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56d719f8-d6d3-4369-ac38-88fac9d0c3df', '058ee333-3d06-4eb0-9e8d-a664b0a1e279'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50720107', 'ctest-vn4-68590021'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50720107', 'ctest-policy1-72459872']], 'subnet_ipam': [{'subnet_cidr': '126.103.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a31:34b8:cad2:a752:c0cf:2be7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:12:57,700 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-03 17:12:58,025 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-03 17:12:58,059 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fd2cff5-124e-49c4-9ab7-4d2772ecb25d 2026-04-03 17:12:58,073 - DEBUG - Requesting: http://10.0.0.50:8082/project/4ccac654-d118-4895-8427-1da5f2c5f55f 2026-04-03 17:12:58,148 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647d43fd-e3ff-4c71-bebd-2a0d31d7a358 2026-04-03 17:12:58,160 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647d43fd-e3ff-4c71-bebd-2a0d31d7a358 2026-04-03 17:12:58,169 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ebee493c-17b7-46f7-be3d-591c5def9949 2026-04-03 17:12:58,175 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ebee493c-17b7-46f7-be3d-591c5def9949 2026-04-03 17:12:58,182 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/acb4b34e-5131-47d2-86f0-5d96fe229c3b 2026-04-03 17:12:58,189 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:12:58,189 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647d43fd-e3ff-4c71-bebd-2a0d31d7a358 2026-04-03 17:12:58,198 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ebee493c-17b7-46f7-be3d-591c5def9949 2026-04-03 17:12:58,210 - INFO - Verified VN network id 11 for VN 647d43fd-e3ff-4c71-bebd-2a0d31d7a358 2026-04-03 17:12:58,210 - INFO - Verifications in API Server for VN ctest-vn4-68590021 passed 2026-04-03 17:12:58,210 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647d43fd-e3ff-4c71-bebd-2a0d31d7a358 2026-04-03 17:12:58,220 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ebee493c-17b7-46f7-be3d-591c5def9949 2026-04-03 17:12:58,226 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ebee493c-17b7-46f7-be3d-591c5def9949 2026-04-03 17:12:58,233 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/acb4b34e-5131-47d2-86f0-5d96fe229c3b 2026-04-03 17:12:58,245 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50720107:ctest-vn4-68590021', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50720107', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7241018533612571761', 'uuid-lslong': '13744187873963778904'}, 'enable': 'true', 'created': '2026-04-03T17:12:56', 'last-modified': '2026-04-03T17:12:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738402'} 2026-04-03 17:12:58,250 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:12:58,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68590021 passed 2026-04-03 17:12:58,251 - DEBUG - ====Verifying policy data for ctest-vn4-68590021 in API_Server ====== 2026-04-03 17:12:58,251 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-03 17:12:58,256 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fd2cff5-124e-49c4-9ab7-4d2772ecb25d 2026-04-03 17:12:58,267 - DEBUG - Requesting: http://10.0.0.50:8082/project/4ccac654-d118-4895-8427-1da5f2c5f55f 2026-04-03 17:12:58,339 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647d43fd-e3ff-4c71-bebd-2a0d31d7a358 2026-04-03 17:12:58,348 - DEBUG - ==>Verifying data for policy with id: 5bc62e7a-f8b0-4ca2-bf15-8ed3daffed8d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50720107', 'ctest-policy1-72459872'] 2026-04-03 17:12:58,348 - INFO - VN ctest-vn4-68590021 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-03 17:12:58,348 - DEBUG - Verifying the vn in opserver 2026-04-03 17:12:58,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50720107:ctest-vn4-68590021 virtual network link through opserver 10.0.0.50 2026-04-03 17:12:58,349 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-03 17:12:58,643 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-03 17:12:58,713 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50720107:ctest-vn4-68590021', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50720107:ctest-vn4-68590021?flat'} 2026-04-03 17:12:58,713 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50720107:ctest-vn4-68590021 is found in opserver 2026-04-03 17:12:58,725 - DEBUG - Do not have enough data to verify VN in agent 2026-04-03 17:12:58,730 - DEBUG - VRF ids for VN ctest-vn4-68590021: {} 2026-04-03 17:12:58,730 - DEBUG - ====Verifying data for ctest-policy1-72459872 in API_Server ====== 2026-04-03 17:12:58,730 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-03 17:12:58,736 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fd2cff5-124e-49c4-9ab7-4d2772ecb25d 2026-04-03 17:12:58,751 - DEBUG - Requesting: http://10.0.0.50:8082/project/4ccac654-d118-4895-8427-1da5f2c5f55f 2026-04-03 17:12:58,826 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5bc62e7a-f8b0-4ca2-bf15-8ed3daffed8d 2026-04-03 17:12:58,837 - INFO - Verified policy ctest-policy1-72459872 in API Server, Result: True 2026-04-03 17:12:58,837 - INFO - Done with setup and verification, moving onto test .. 2026-04-03 17:12:58,846 - INFO - Deleting VN ctest-vn4-68590021 2026-04-03 17:12:59,008 - DEBUG - Response for deleting network () 2026-04-03 17:12:59,008 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ebee493c-17b7-46f7-be3d-591c5def9949 2026-04-03 17:12:59,013 - DEBUG - Response Code: 404 2026-04-03 17:12:59,013 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-03 17:12:59,018 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fd2cff5-124e-49c4-9ab7-4d2772ecb25d 2026-04-03 17:12:59,072 - DEBUG - Requesting: http://10.0.0.50:8082/project/4ccac654-d118-4895-8427-1da5f2c5f55f 2026-04-03 17:12:59,142 - INFO - Validated that VN ctest-vn4-68590021 is not found in API Server 2026-04-03 17:12:59,154 - DEBUG - VN ctest-vn4-68590021 is not present in Agent 10.0.0.50 2026-04-03 17:12:59,154 - INFO - Validated that VN ctest-vn4-68590021 is not in any agent 2026-04-03 17:12:59,167 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68590021 info 2026-04-03 17:12:59,196 - INFO - Deleted policy ctest-policy1-72459872 2026-04-03 17:12:59,364 - DEBUG - policy ctest-policy1-72459872 is not found in API Server 2026-04-03 17:12:59,633 - DEBUG - No XMPP flaps were noticed during the test