2026-10-28 09:14:05,574 - INFO - Domain Default found not creating 2026-10-28 09:14:05,769 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49019877 not found, creating it 2026-10-28 09:14:06,301 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49019877, ID : 50289adf-f1a4-4d77-8c22-7454d6962676 2026-10-28 09:14:08,142 - INFO - ================================================================================ 2026-10-28 09:14:08,142 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 09:14:08,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-28 09:14:08,416 - INFO - Initial checks done. Running the testcase now 2026-10-28 09:14:08,416 - INFO - 2026-10-28 09:14:08,416 - INFO - ================================================================================ 2026-10-28 09:14:08,416 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 09:14:08,416 - 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-28 09:14:08,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-28 09:14:08,695 - INFO - Initial checks done. Running the testcase now 2026-10-28 09:14:08,695 - INFO - 2026-10-28 09:14:09,136 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49019877:ctest-vn4-32460842, 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-49019877:ctest-vn4-32460842, 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-49019877:ctest-vn4-32460842, 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-49019877:ctest-vn4-32460842, 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-28 09:14:09,672 - DEBUG - Response for create_network : {'network': {'id': 'e09bdd2a-1daa-433c-a3dc-6f928fe9c605', 'name': 'ctest-vn4-32460842', 'tenant_id': '50289adff1a44d778c227454d6962676', 'project_id': '50289adff1a44d778c227454d6962676', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49019877', 'ctest-vn4-32460842'], 'port_security_enabled': True, 'description': ''}} 2026-10-28 09:14:09,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c7c0407-8dbd-43e5-b1b0-29cc23e0f538', 'name': '', 'tenant_id': '50289adff1a44d778c227454d6962676', 'network_id': 'e09bdd2a-1daa-433c-a3dc-6f928fe9c605', 'ip_version': 4, 'cidr': '119.72.25.192/26', 'allocation_pools': [{'start': '119.72.25.194', 'end': '119.72.25.254'}], 'gateway_ip': '119.72.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.72.25.194', 'tags': [], 'project_id': '50289adff1a44d778c227454d6962676'}} 2026-10-28 09:14:10,066 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd400f5af-751a-41b7-be1a-b4644c76e335', 'name': '', 'tenant_id': '50289adff1a44d778c227454d6962676', 'network_id': 'e09bdd2a-1daa-433c-a3dc-6f928fe9c605', 'ip_version': 6, 'cidr': '326a:7480:b7c1:216e:6aa9:2d4b::/96', 'allocation_pools': [{'start': '326a:7480:b7c1:216e:6aa9:2d4b:0:2', 'end': '326a:7480:b7c1:216e:6aa9:2d4b:ffff:fffe'}], 'gateway_ip': '326a:7480:b7c1:216e:6aa9:2d4b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '326a:7480:b7c1:216e:6aa9:2d4b:0:2', 'tags': [], 'project_id': '50289adff1a44d778c227454d6962676'}} 2026-10-28 09:14:10,087 - INFO - Created VN ctest-vn4-32460842 2026-10-28 09:14:10,141 - DEBUG - VN ctest-vn4-32460842 UUID is e09bdd2a-1daa-433c-a3dc-6f928fe9c605 2026-10-28 09:14:10,354 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e09bdd2a-1daa-433c-a3dc-6f928fe9c605', 'name': 'ctest-vn4-32460842', 'tenant_id': '50289adff1a44d778c227454d6962676', 'project_id': '50289adff1a44d778c227454d6962676', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8c7c0407-8dbd-43e5-b1b0-29cc23e0f538', 'd400f5af-751a-41b7-be1a-b4644c76e335'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49019877', 'ctest-vn4-32460842'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49019877', 'ctest-policy1-21469261']], 'subnet_ipam': [{'subnet_cidr': '119.72.25.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '326a:7480:b7c1:216e:6aa9:2d4b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-28 09:14:10,521 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-28 09:14:10,891 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-28 09:14:10,922 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b7b4eb4e-14f2-4ff1-bbb4-46845da616a3 2026-10-28 09:14:10,935 - DEBUG - Requesting: http://10.0.0.161:8082/project/50289adf-f1a4-4d77-8c22-7454d6962676 2026-10-28 09:14:11,012 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e09bdd2a-1daa-433c-a3dc-6f928fe9c605 2026-10-28 09:14:11,026 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e09bdd2a-1daa-433c-a3dc-6f928fe9c605 2026-10-28 09:14:11,037 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7da0b0bf-fcaa-4faf-878e-c1298c1f04ac 2026-10-28 09:14:11,051 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7da0b0bf-fcaa-4faf-878e-c1298c1f04ac 2026-10-28 09:14:11,060 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/34d65ad1-6dc6-430c-8ee5-f2295be70bde 2026-10-28 09:14:11,066 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 09:14:11,066 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e09bdd2a-1daa-433c-a3dc-6f928fe9c605 2026-10-28 09:14:11,075 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7da0b0bf-fcaa-4faf-878e-c1298c1f04ac 2026-10-28 09:14:11,091 - INFO - Verified VN network id 12 for VN e09bdd2a-1daa-433c-a3dc-6f928fe9c605 2026-10-28 09:14:11,091 - INFO - Verifications in API Server for VN ctest-vn4-32460842 passed 2026-10-28 09:14:11,091 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e09bdd2a-1daa-433c-a3dc-6f928fe9c605 2026-10-28 09:14:11,102 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7da0b0bf-fcaa-4faf-878e-c1298c1f04ac 2026-10-28 09:14:11,109 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7da0b0bf-fcaa-4faf-878e-c1298c1f04ac 2026-10-28 09:14:11,116 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/34d65ad1-6dc6-430c-8ee5-f2295be70bde 2026-10-28 09:14:11,129 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49019877:ctest-vn4-32460842', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49019877', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16184772858842071868', 'uuid-lslong': '11807434998328968709'}, 'enable': 'true', 'created': '2026-10-28T09:14:09', 'last-modified': '2026-10-28T09:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.808707'} 2026-10-28 09:14:11,136 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 09:14:11,136 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32460842 passed 2026-10-28 09:14:11,136 - DEBUG - ====Verifying policy data for ctest-vn4-32460842 in API_Server ====== 2026-10-28 09:14:11,136 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-28 09:14:11,142 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b7b4eb4e-14f2-4ff1-bbb4-46845da616a3 2026-10-28 09:14:11,155 - DEBUG - Requesting: http://10.0.0.161:8082/project/50289adf-f1a4-4d77-8c22-7454d6962676 2026-10-28 09:14:11,234 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e09bdd2a-1daa-433c-a3dc-6f928fe9c605 2026-10-28 09:14:11,247 - DEBUG - ==>Verifying data for policy with id: 768dde57-56a9-4c92-ba9b-63d3879df51c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49019877', 'ctest-policy1-21469261'] 2026-10-28 09:14:11,247 - INFO - VN ctest-vn4-32460842 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-28 09:14:11,247 - DEBUG - Verifying the vn in opserver 2026-10-28 09:14:11,247 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49019877:ctest-vn4-32460842 virtual network link through opserver 10.0.0.161 2026-10-28 09:14:11,247 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-28 09:14:11,615 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-28 09:14:11,675 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49019877:ctest-vn4-32460842', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49019877:ctest-vn4-32460842?flat'} 2026-10-28 09:14:11,675 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49019877:ctest-vn4-32460842 is found in opserver 2026-10-28 09:14:11,688 - DEBUG - Do not have enough data to verify VN in agent 2026-10-28 09:14:11,694 - DEBUG - VRF ids for VN ctest-vn4-32460842: {} 2026-10-28 09:14:11,694 - DEBUG - ====Verifying data for ctest-policy1-21469261 in API_Server ====== 2026-10-28 09:14:11,694 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-28 09:14:11,702 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b7b4eb4e-14f2-4ff1-bbb4-46845da616a3 2026-10-28 09:14:11,714 - DEBUG - Requesting: http://10.0.0.161:8082/project/50289adf-f1a4-4d77-8c22-7454d6962676 2026-10-28 09:14:11,793 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/768dde57-56a9-4c92-ba9b-63d3879df51c 2026-10-28 09:14:11,803 - INFO - Verified policy ctest-policy1-21469261 in API Server, Result: True 2026-10-28 09:14:11,803 - INFO - Done with setup and verification, moving onto test .. 2026-10-28 09:14:11,812 - INFO - Deleting VN ctest-vn4-32460842 2026-10-28 09:14:11,949 - DEBUG - Response for deleting network () 2026-10-28 09:14:11,950 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7da0b0bf-fcaa-4faf-878e-c1298c1f04ac 2026-10-28 09:14:11,955 - DEBUG - Response Code: 404 2026-10-28 09:14:11,955 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-28 09:14:11,961 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b7b4eb4e-14f2-4ff1-bbb4-46845da616a3 2026-10-28 09:14:12,016 - DEBUG - Requesting: http://10.0.0.161:8082/project/50289adf-f1a4-4d77-8c22-7454d6962676 2026-10-28 09:14:12,100 - INFO - Validated that VN ctest-vn4-32460842 is not found in API Server 2026-10-28 09:14:12,115 - DEBUG - VN ctest-vn4-32460842 is not present in Agent 10.0.0.161 2026-10-28 09:14:12,115 - INFO - Validated that VN ctest-vn4-32460842 is not in any agent 2026-10-28 09:14:12,134 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32460842 info 2026-10-28 09:14:12,166 - INFO - Deleted policy ctest-policy1-21469261 2026-10-28 09:14:12,345 - DEBUG - policy ctest-policy1-21469261 is not found in API Server 2026-10-28 09:14:12,609 - DEBUG - No XMPP flaps were noticed during the test
2026-10-28 09:14:12,609 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-28 09:14:12,609 - INFO - -------------------------------------------------------------------------------- 2026-10-28 09:14:12,914 - DEBUG - No XMPP flaps were noticed during the test
2026-10-28 09:14:12,914 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-28 09:14:12,914 - INFO - -------------------------------------------------------------------------------- 2026-10-28 09:14:13,696 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49019877, ID : 50289adf-f1a4-4d77-8c22-7454d6962676