2026-10-30 00:26:25,342 - INFO - Domain Default found not creating 2026-10-30 00:26:25,471 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69418647 not found, creating it 2026-10-30 00:26:25,930 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69418647, ID : b2ec872b-6305-4472-ade0-6f7f101d5ff3 2026-10-30 00:26:27,321 - INFO - ================================================================================ 2026-10-30 00:26:27,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-30 00:26:27,578 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.17': '0'}} with 2026-10-30 00:26:27,578 - INFO - Initial checks done. Running the testcase now 2026-10-30 00:26:27,578 - INFO - 2026-10-30 00:26:27,579 - INFO - ================================================================================ 2026-10-30 00:26:27,579 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-30 00:26:27,579 - 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-10-30 00:26:27,875 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.17': '0'}} with 2026-10-30 00:26:27,875 - INFO - Initial checks done. Running the testcase now 2026-10-30 00:26:27,875 - INFO - 2026-10-30 00:26:28,235 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69418647:ctest-vn4-54732137, 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-69418647:ctest-vn4-54732137, 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-69418647:ctest-vn4-54732137, 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-69418647:ctest-vn4-54732137, 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-10-30 00:26:28,722 - DEBUG - Response for create_network : {'network': {'id': '9c722f8e-67f0-4677-a914-fca6fa03c357', 'name': 'ctest-vn4-54732137', 'tenant_id': 'b2ec872b63054472ade06f7f101d5ff3', 'project_id': 'b2ec872b63054472ade06f7f101d5ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69418647', 'ctest-vn4-54732137'], 'port_security_enabled': True, 'description': ''}} 2026-10-30 00:26:28,881 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb76d084-bc66-4e60-8736-e5b534fab900', 'name': '', 'tenant_id': 'b2ec872b63054472ade06f7f101d5ff3', 'network_id': '9c722f8e-67f0-4677-a914-fca6fa03c357', 'ip_version': 4, 'cidr': '52.23.146.192/26', 'allocation_pools': [{'start': '52.23.146.194', 'end': '52.23.146.254'}], 'gateway_ip': '52.23.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.23.146.194', 'tags': [], 'project_id': 'b2ec872b63054472ade06f7f101d5ff3'}} 2026-10-30 00:26:29,035 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7571e79-d48c-4dfc-8f1b-028ce1b9f463', 'name': '', 'tenant_id': 'b2ec872b63054472ade06f7f101d5ff3', 'network_id': '9c722f8e-67f0-4677-a914-fca6fa03c357', 'ip_version': 6, 'cidr': '3e25:be7f:6bcd:3a78:1132:2fff::/96', 'allocation_pools': [{'start': '3e25:be7f:6bcd:3a78:1132:2fff:0:2', 'end': '3e25:be7f:6bcd:3a78:1132:2fff:ffff:fffe'}], 'gateway_ip': '3e25:be7f:6bcd:3a78:1132:2fff:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e25:be7f:6bcd:3a78:1132:2fff:0:2', 'tags': [], 'project_id': 'b2ec872b63054472ade06f7f101d5ff3'}} 2026-10-30 00:26:29,050 - INFO - Created VN ctest-vn4-54732137 2026-10-30 00:26:29,102 - DEBUG - VN ctest-vn4-54732137 UUID is 9c722f8e-67f0-4677-a914-fca6fa03c357 2026-10-30 00:26:29,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c722f8e-67f0-4677-a914-fca6fa03c357', 'name': 'ctest-vn4-54732137', 'tenant_id': 'b2ec872b63054472ade06f7f101d5ff3', 'project_id': 'b2ec872b63054472ade06f7f101d5ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['cb76d084-bc66-4e60-8736-e5b534fab900', 'b7571e79-d48c-4dfc-8f1b-028ce1b9f463'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69418647', 'ctest-vn4-54732137'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69418647', 'ctest-policy1-41885451']], 'subnet_ipam': [{'subnet_cidr': '52.23.146.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e25:be7f:6bcd:3a78:1132:2fff::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-30 00:26:29,418 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-30 00:26:29,731 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-30 00:26:29,753 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8c71abcc-18f4-48d9-a920-d3c340a55008 2026-10-30 00:26:29,764 - DEBUG - Requesting: http://10.0.0.250:8082/project/b2ec872b-6305-4472-ade0-6f7f101d5ff3 2026-10-30 00:26:29,834 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/9c722f8e-67f0-4677-a914-fca6fa03c357 2026-10-30 00:26:29,843 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/9c722f8e-67f0-4677-a914-fca6fa03c357 2026-10-30 00:26:29,850 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2b9f5566-0c4e-4236-b755-8b2558a459b8 2026-10-30 00:26:29,855 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2b9f5566-0c4e-4236-b755-8b2558a459b8 2026-10-30 00:26:29,860 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/ea326d0a-ba9f-4818-87aa-9d0c6ab85016 2026-10-30 00:26:29,864 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-30 00:26:29,864 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/9c722f8e-67f0-4677-a914-fca6fa03c357 2026-10-30 00:26:29,872 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2b9f5566-0c4e-4236-b755-8b2558a459b8 2026-10-30 00:26:29,882 - INFO - Verified VN network id 12 for VN 9c722f8e-67f0-4677-a914-fca6fa03c357 2026-10-30 00:26:29,882 - INFO - Verifications in API Server for VN ctest-vn4-54732137 passed 2026-10-30 00:26:29,882 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/9c722f8e-67f0-4677-a914-fca6fa03c357 2026-10-30 00:26:29,889 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2b9f5566-0c4e-4236-b755-8b2558a459b8 2026-10-30 00:26:29,894 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2b9f5566-0c4e-4236-b755-8b2558a459b8 2026-10-30 00:26:29,898 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/ea326d0a-ba9f-4818-87aa-9d0c6ab85016 2026-10-30 00:26:29,908 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69418647:ctest-vn4-54732137', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69418647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11273125105937434231', 'uuid-lslong': '12183640686033355607'}, 'enable': 'true', 'created': '2026-10-30T00:26:28', 'last-modified': '2026-10-30T00:26:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.670198'} 2026-10-30 00:26:29,913 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-30 00:26:29,913 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54732137 passed 2026-10-30 00:26:29,913 - DEBUG - ====Verifying policy data for ctest-vn4-54732137 in API_Server ====== 2026-10-30 00:26:29,913 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-30 00:26:29,917 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8c71abcc-18f4-48d9-a920-d3c340a55008 2026-10-30 00:26:29,925 - DEBUG - Requesting: http://10.0.0.250:8082/project/b2ec872b-6305-4472-ade0-6f7f101d5ff3 2026-10-30 00:26:29,991 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/9c722f8e-67f0-4677-a914-fca6fa03c357 2026-10-30 00:26:29,999 - DEBUG - ==>Verifying data for policy with id: b6747a97-7528-4ee3-a36e-602dddc50625, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69418647', 'ctest-policy1-41885451'] 2026-10-30 00:26:29,999 - INFO - VN ctest-vn4-54732137 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-30 00:26:29,999 - DEBUG - Verifying the vn in opserver 2026-10-30 00:26:29,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69418647:ctest-vn4-54732137 virtual network link through opserver 10.0.0.250 2026-10-30 00:26:29,999 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-10-30 00:26:30,314 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-10-30 00:26:30,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69418647:ctest-vn4-54732137', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69418647:ctest-vn4-54732137?flat'} 2026-10-30 00:26:30,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69418647:ctest-vn4-54732137 is found in opserver 2026-10-30 00:26:30,362 - DEBUG - Do not have enough data to verify VN in agent 2026-10-30 00:26:30,367 - DEBUG - VRF ids for VN ctest-vn4-54732137: {} 2026-10-30 00:26:30,367 - DEBUG - ====Verifying data for ctest-policy1-41885451 in API_Server ====== 2026-10-30 00:26:30,367 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-30 00:26:30,371 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8c71abcc-18f4-48d9-a920-d3c340a55008 2026-10-30 00:26:30,379 - DEBUG - Requesting: http://10.0.0.250:8082/project/b2ec872b-6305-4472-ade0-6f7f101d5ff3 2026-10-30 00:26:30,446 - DEBUG - Requesting: http://10.0.0.250:8082/network-policy/b6747a97-7528-4ee3-a36e-602dddc50625 2026-10-30 00:26:30,453 - INFO - Verified policy ctest-policy1-41885451 in API Server, Result: True 2026-10-30 00:26:30,453 - INFO - Done with setup and verification, moving onto test .. 2026-10-30 00:26:30,459 - INFO - Deleting VN ctest-vn4-54732137 2026-10-30 00:26:30,560 - DEBUG - Response for deleting network () 2026-10-30 00:26:30,560 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2b9f5566-0c4e-4236-b755-8b2558a459b8 2026-10-30 00:26:30,563 - DEBUG - Response Code: 404 2026-10-30 00:26:30,563 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-30 00:26:30,568 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8c71abcc-18f4-48d9-a920-d3c340a55008 2026-10-30 00:26:30,617 - DEBUG - Requesting: http://10.0.0.250:8082/project/b2ec872b-6305-4472-ade0-6f7f101d5ff3 2026-10-30 00:26:30,688 - INFO - Validated that VN ctest-vn4-54732137 is not found in API Server 2026-10-30 00:26:30,695 - DEBUG - VN ctest-vn4-54732137 is not present in Agent 10.0.0.250 2026-10-30 00:26:30,695 - INFO - Validated that VN ctest-vn4-54732137 is not in any agent 2026-10-30 00:26:30,710 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54732137 info 2026-10-30 00:26:30,729 - INFO - Deleted policy ctest-policy1-41885451 2026-10-30 00:26:30,898 - DEBUG - policy ctest-policy1-41885451 is not found in API Server 2026-10-30 00:26:31,150 - DEBUG - No XMPP flaps were noticed during the test
2026-10-30 00:26:31,150 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-30 00:26:31,150 - INFO - -------------------------------------------------------------------------------- 2026-10-30 00:26:31,451 - DEBUG - No XMPP flaps were noticed during the test
2026-10-30 00:26:31,451 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-30 00:26:31,451 - INFO - -------------------------------------------------------------------------------- 2026-10-30 00:26:32,120 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69418647, ID : b2ec872b-6305-4472-ade0-6f7f101d5ff3