2026-09-15 08:13:47,422 - INFO - Domain Default found not creating 2026-09-15 08:13:47,606 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53970066 not found, creating it 2026-09-15 08:13:48,100 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53970066, ID : c2f792db-c936-4034-97db-7116e7f47d8b 2026-09-15 08:13:49,811 - INFO - ================================================================================ 2026-09-15 08:13:49,811 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-15 08:13:50,087 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-09-15 08:13:50,087 - INFO - Initial checks done. Running the testcase now 2026-09-15 08:13:50,087 - INFO - 2026-09-15 08:13:50,087 - INFO - ================================================================================ 2026-09-15 08:13:50,087 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-15 08:13:50,087 - 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-15 08:13:50,387 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-09-15 08:13:50,387 - INFO - Initial checks done. Running the testcase now 2026-09-15 08:13:50,387 - INFO - 2026-09-15 08:13:50,820 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53970066:ctest-vn4-71910092, 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-53970066:ctest-vn4-71910092, 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-53970066:ctest-vn4-71910092, 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-53970066:ctest-vn4-71910092, 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-15 08:13:51,352 - DEBUG - Response for create_network : {'network': {'id': 'cbc10f97-c222-4fcf-be92-40e1b4ef163b', 'name': 'ctest-vn4-71910092', 'tenant_id': 'c2f792dbc936403497db7116e7f47d8b', 'project_id': 'c2f792dbc936403497db7116e7f47d8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53970066', 'ctest-vn4-71910092'], 'port_security_enabled': True, 'description': ''}} 2026-09-15 08:13:51,591 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4f1c914-5220-454f-905b-afdb16fe6c00', 'name': '', 'tenant_id': 'c2f792dbc936403497db7116e7f47d8b', 'network_id': 'cbc10f97-c222-4fcf-be92-40e1b4ef163b', 'ip_version': 4, 'cidr': '80.54.116.192/26', 'allocation_pools': [{'start': '80.54.116.194', 'end': '80.54.116.254'}], 'gateway_ip': '80.54.116.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.54.116.194', 'tags': [], 'project_id': 'c2f792dbc936403497db7116e7f47d8b'}} 2026-09-15 08:13:51,777 - DEBUG - Response for create_subnet : {'subnet': {'id': '667c6d23-a692-4da9-981f-9503ec920c70', 'name': '', 'tenant_id': 'c2f792dbc936403497db7116e7f47d8b', 'network_id': 'cbc10f97-c222-4fcf-be92-40e1b4ef163b', 'ip_version': 6, 'cidr': '32bf:aed0:b5d6:b72:6046:652::/96', 'allocation_pools': [{'start': '32bf:aed0:b5d6:b72:6046:652:0:2', 'end': '32bf:aed0:b5d6:b72:6046:652:ffff:fffe'}], 'gateway_ip': '32bf:aed0:b5d6:b72:6046:652:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32bf:aed0:b5d6:b72:6046:652:0:2', 'tags': [], 'project_id': 'c2f792dbc936403497db7116e7f47d8b'}} 2026-09-15 08:13:51,794 - INFO - Created VN ctest-vn4-71910092 2026-09-15 08:13:51,846 - DEBUG - VN ctest-vn4-71910092 UUID is cbc10f97-c222-4fcf-be92-40e1b4ef163b 2026-09-15 08:13:52,062 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cbc10f97-c222-4fcf-be92-40e1b4ef163b', 'name': 'ctest-vn4-71910092', 'tenant_id': 'c2f792dbc936403497db7116e7f47d8b', 'project_id': 'c2f792dbc936403497db7116e7f47d8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b4f1c914-5220-454f-905b-afdb16fe6c00', '667c6d23-a692-4da9-981f-9503ec920c70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53970066', 'ctest-vn4-71910092'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53970066', 'ctest-policy1-73247468']], 'subnet_ipam': [{'subnet_cidr': '80.54.116.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32bf:aed0:b5d6:b72:6046:652::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-15 08:13:52,226 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-15 08:13:52,591 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-15 08:13:52,618 - DEBUG - Requesting: http://10.0.0.177:8082/domain/980269f7-b7b5-44ea-a35a-a9991a1f7245 2026-09-15 08:13:52,630 - DEBUG - Requesting: http://10.0.0.177:8082/project/c2f792db-c936-4034-97db-7116e7f47d8b 2026-09-15 08:13:52,707 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/cbc10f97-c222-4fcf-be92-40e1b4ef163b 2026-09-15 08:13:52,719 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/cbc10f97-c222-4fcf-be92-40e1b4ef163b 2026-09-15 08:13:52,729 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e780c19-6617-42d6-8fe6-9cca7d676a5e 2026-09-15 08:13:52,736 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e780c19-6617-42d6-8fe6-9cca7d676a5e 2026-09-15 08:13:52,742 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/e239076f-fedb-4d88-be3b-18448a03a2f3 2026-09-15 08:13:52,748 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-15 08:13:52,748 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/cbc10f97-c222-4fcf-be92-40e1b4ef163b 2026-09-15 08:13:52,757 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e780c19-6617-42d6-8fe6-9cca7d676a5e 2026-09-15 08:13:52,770 - INFO - Verified VN network id 12 for VN cbc10f97-c222-4fcf-be92-40e1b4ef163b 2026-09-15 08:13:52,770 - INFO - Verifications in API Server for VN ctest-vn4-71910092 passed 2026-09-15 08:13:52,771 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/cbc10f97-c222-4fcf-be92-40e1b4ef163b 2026-09-15 08:13:52,779 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e780c19-6617-42d6-8fe6-9cca7d676a5e 2026-09-15 08:13:52,785 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e780c19-6617-42d6-8fe6-9cca7d676a5e 2026-09-15 08:13:52,791 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/e239076f-fedb-4d88-be3b-18448a03a2f3 2026-09-15 08:13:52,802 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53970066:ctest-vn4-71910092', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53970066', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14682033404676034511', 'uuid-lslong': '13732109551953450555'}, 'enable': 'true', 'created': '2026-09-15T08:13:51', 'last-modified': '2026-09-15T08:13:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.775460'} 2026-09-15 08:13:52,809 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-15 08:13:52,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71910092 passed 2026-09-15 08:13:52,809 - DEBUG - ====Verifying policy data for ctest-vn4-71910092 in API_Server ====== 2026-09-15 08:13:52,810 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-15 08:13:52,815 - DEBUG - Requesting: http://10.0.0.177:8082/domain/980269f7-b7b5-44ea-a35a-a9991a1f7245 2026-09-15 08:13:52,825 - DEBUG - Requesting: http://10.0.0.177:8082/project/c2f792db-c936-4034-97db-7116e7f47d8b 2026-09-15 08:13:52,901 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/cbc10f97-c222-4fcf-be92-40e1b4ef163b 2026-09-15 08:13:52,911 - DEBUG - ==>Verifying data for policy with id: 438e2b09-62e0-46f6-bbb6-853afb13e891, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53970066', 'ctest-policy1-73247468'] 2026-09-15 08:13:52,911 - INFO - VN ctest-vn4-71910092 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-15 08:13:52,912 - DEBUG - Verifying the vn in opserver 2026-09-15 08:13:52,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53970066:ctest-vn4-71910092 virtual network link through opserver 10.0.0.177 2026-09-15 08:13:52,912 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-15 08:13:53,281 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-15 08:13:53,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53970066:ctest-vn4-71910092', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53970066:ctest-vn4-71910092?flat'} 2026-09-15 08:13:53,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53970066:ctest-vn4-71910092 is found in opserver 2026-09-15 08:13:53,347 - DEBUG - Do not have enough data to verify VN in agent 2026-09-15 08:13:53,352 - DEBUG - VRF ids for VN ctest-vn4-71910092: {} 2026-09-15 08:13:53,353 - DEBUG - ====Verifying data for ctest-policy1-73247468 in API_Server ====== 2026-09-15 08:13:53,353 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-15 08:13:53,359 - DEBUG - Requesting: http://10.0.0.177:8082/domain/980269f7-b7b5-44ea-a35a-a9991a1f7245 2026-09-15 08:13:53,372 - DEBUG - Requesting: http://10.0.0.177:8082/project/c2f792db-c936-4034-97db-7116e7f47d8b 2026-09-15 08:13:53,447 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/438e2b09-62e0-46f6-bbb6-853afb13e891 2026-09-15 08:13:53,457 - INFO - Verified policy ctest-policy1-73247468 in API Server, Result: True 2026-09-15 08:13:53,457 - INFO - Done with setup and verification, moving onto test .. 2026-09-15 08:13:53,465 - INFO - Deleting VN ctest-vn4-71910092 2026-09-15 08:13:53,580 - DEBUG - Response for deleting network () 2026-09-15 08:13:53,580 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7e780c19-6617-42d6-8fe6-9cca7d676a5e 2026-09-15 08:13:53,586 - DEBUG - Response Code: 404 2026-09-15 08:13:53,586 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-15 08:13:53,591 - DEBUG - Requesting: http://10.0.0.177:8082/domain/980269f7-b7b5-44ea-a35a-a9991a1f7245 2026-09-15 08:13:53,643 - DEBUG - Requesting: http://10.0.0.177:8082/project/c2f792db-c936-4034-97db-7116e7f47d8b 2026-09-15 08:13:53,715 - INFO - Validated that VN ctest-vn4-71910092 is not found in API Server 2026-09-15 08:13:53,726 - DEBUG - VN ctest-vn4-71910092 is not present in Agent 10.0.0.177 2026-09-15 08:13:53,726 - INFO - Validated that VN ctest-vn4-71910092 is not in any agent 2026-09-15 08:13:53,740 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71910092 info 2026-09-15 08:13:53,765 - INFO - Deleted policy ctest-policy1-73247468 2026-09-15 08:13:53,954 - DEBUG - policy ctest-policy1-73247468 is not found in API Server 2026-09-15 08:13:54,229 - DEBUG - No XMPP flaps were noticed during the test
2026-09-15 08:13:54,229 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-15 08:13:54,229 - INFO - -------------------------------------------------------------------------------- 2026-09-15 08:13:54,522 - DEBUG - No XMPP flaps were noticed during the test
2026-09-15 08:13:54,523 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-15 08:13:54,523 - INFO - -------------------------------------------------------------------------------- 2026-09-15 08:13:55,329 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-53970066, ID : c2f792db-c936-4034-97db-7116e7f47d8b