2026-01-29 14:50:05,651 - INFO - Domain Default found not creating 2026-01-29 14:50:05,806 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64252850 not found, creating it 2026-01-29 14:50:06,252 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64252850, ID : 650c0f77-52fd-4602-ae8d-f4e309f0eb2b 2026-01-29 14:50:07,727 - INFO - ================================================================================ 2026-01-29 14:50:07,727 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 14:50:07,984 - DEBUG - Nothing to compare xmpp stats {'10.0.0.246': {'10.20.0.17': '0'}} with 2026-01-29 14:50:07,985 - INFO - Initial checks done. Running the testcase now 2026-01-29 14:50:07,985 - INFO - 2026-01-29 14:50:07,985 - INFO - ================================================================================ 2026-01-29 14:50:07,985 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 14:50:07,985 - 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-01-29 14:50:08,272 - DEBUG - Nothing to compare xmpp stats {'10.0.0.246': {'10.20.0.17': '0'}} with 2026-01-29 14:50:08,272 - INFO - Initial checks done. Running the testcase now 2026-01-29 14:50:08,272 - INFO - 2026-01-29 14:50:08,618 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64252850:ctest-vn4-47077214, 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-64252850:ctest-vn4-47077214, 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-64252850:ctest-vn4-47077214, 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-64252850:ctest-vn4-47077214, 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-01-29 14:50:09,118 - DEBUG - Response for create_network : {'network': {'id': 'd6aade32-db04-4a5f-8acc-0aaf2b057288', 'name': 'ctest-vn4-47077214', 'tenant_id': '650c0f7752fd4602ae8df4e309f0eb2b', 'project_id': '650c0f7752fd4602ae8df4e309f0eb2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64252850', 'ctest-vn4-47077214'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 14:50:09,274 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7ed7dc6-59f7-44e3-a941-c7c35448144a', 'name': '', 'tenant_id': '650c0f7752fd4602ae8df4e309f0eb2b', 'network_id': 'd6aade32-db04-4a5f-8acc-0aaf2b057288', 'ip_version': 4, 'cidr': '28.68.78.0/26', 'allocation_pools': [{'start': '28.68.78.2', 'end': '28.68.78.62'}], 'gateway_ip': '28.68.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.68.78.2', 'tags': [], 'project_id': '650c0f7752fd4602ae8df4e309f0eb2b'}} 2026-01-29 14:50:09,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '633732a3-aab1-42d8-8749-a7d1b058dbd2', 'name': '', 'tenant_id': '650c0f7752fd4602ae8df4e309f0eb2b', 'network_id': 'd6aade32-db04-4a5f-8acc-0aaf2b057288', 'ip_version': 6, 'cidr': '3ae6:3ea5:ad68:2bd:df37:9c3c::/96', 'allocation_pools': [{'start': '3ae6:3ea5:ad68:2bd:df37:9c3c:0:2', 'end': '3ae6:3ea5:ad68:2bd:df37:9c3c:ffff:fffe'}], 'gateway_ip': '3ae6:3ea5:ad68:2bd:df37:9c3c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ae6:3ea5:ad68:2bd:df37:9c3c:0:2', 'tags': [], 'project_id': '650c0f7752fd4602ae8df4e309f0eb2b'}} 2026-01-29 14:50:09,449 - INFO - Created VN ctest-vn4-47077214 2026-01-29 14:50:09,499 - DEBUG - VN ctest-vn4-47077214 UUID is d6aade32-db04-4a5f-8acc-0aaf2b057288 2026-01-29 14:50:09,690 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6aade32-db04-4a5f-8acc-0aaf2b057288', 'name': 'ctest-vn4-47077214', 'tenant_id': '650c0f7752fd4602ae8df4e309f0eb2b', 'project_id': '650c0f7752fd4602ae8df4e309f0eb2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7ed7dc6-59f7-44e3-a941-c7c35448144a', '633732a3-aab1-42d8-8749-a7d1b058dbd2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64252850', 'ctest-vn4-47077214'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64252850', 'ctest-policy1-26796550']], 'subnet_ipam': [{'subnet_cidr': '28.68.78.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ae6:3ea5:ad68:2bd:df37:9c3c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 14:50:09,848 - DEBUG - Requesting: http://10.0.0.246:8082/domains 2026-01-29 14:50:10,142 - DEBUG - Requesting: http://10.0.0.246:8082/domains 2026-01-29 14:50:10,174 - DEBUG - Requesting: http://10.0.0.246:8082/domain/ab960573-c036-473c-9e4c-333386525eb1 2026-01-29 14:50:10,189 - DEBUG - Requesting: http://10.0.0.246:8082/project/650c0f77-52fd-4602-ae8d-f4e309f0eb2b 2026-01-29 14:50:10,262 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/d6aade32-db04-4a5f-8acc-0aaf2b057288 2026-01-29 14:50:10,274 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/d6aade32-db04-4a5f-8acc-0aaf2b057288 2026-01-29 14:50:10,282 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/e5ff746b-5316-48a8-8fb8-c3d89c2adf2e 2026-01-29 14:50:10,288 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/e5ff746b-5316-48a8-8fb8-c3d89c2adf2e 2026-01-29 14:50:10,294 - DEBUG - Requesting: http://10.0.0.246:8082/route-target/0a793092-2621-4dac-ae1a-5f45f6e47f89 2026-01-29 14:50:10,299 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 14:50:10,300 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/d6aade32-db04-4a5f-8acc-0aaf2b057288 2026-01-29 14:50:10,307 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/e5ff746b-5316-48a8-8fb8-c3d89c2adf2e 2026-01-29 14:50:10,321 - INFO - Verified VN network id 12 for VN d6aade32-db04-4a5f-8acc-0aaf2b057288 2026-01-29 14:50:10,321 - INFO - Verifications in API Server for VN ctest-vn4-47077214 passed 2026-01-29 14:50:10,322 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/d6aade32-db04-4a5f-8acc-0aaf2b057288 2026-01-29 14:50:10,331 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/e5ff746b-5316-48a8-8fb8-c3d89c2adf2e 2026-01-29 14:50:10,337 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/e5ff746b-5316-48a8-8fb8-c3d89c2adf2e 2026-01-29 14:50:10,344 - DEBUG - Requesting: http://10.0.0.246:8082/route-target/0a793092-2621-4dac-ae1a-5f45f6e47f89 2026-01-29 14:50:10,358 - DEBUG - Control-node 10.0.0.246 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64252850:ctest-vn4-47077214', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64252850', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15468420180161612383', 'uuid-lslong': '10001380619940360840'}, 'enable': 'true', 'created': '2026-01-29T14:50:09', 'last-modified': '2026-01-29T14:50:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694976'} 2026-01-29 14:50:10,364 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 14:50:10,364 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47077214 passed 2026-01-29 14:50:10,364 - DEBUG - ====Verifying policy data for ctest-vn4-47077214 in API_Server ====== 2026-01-29 14:50:10,364 - DEBUG - Requesting: http://10.0.0.246:8082/domains 2026-01-29 14:50:10,369 - DEBUG - Requesting: http://10.0.0.246:8082/domain/ab960573-c036-473c-9e4c-333386525eb1 2026-01-29 14:50:10,378 - DEBUG - Requesting: http://10.0.0.246:8082/project/650c0f77-52fd-4602-ae8d-f4e309f0eb2b 2026-01-29 14:50:10,448 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/d6aade32-db04-4a5f-8acc-0aaf2b057288 2026-01-29 14:50:10,459 - DEBUG - ==>Verifying data for policy with id: c70f9810-caa6-4eac-a5f1-eff228412416, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64252850', 'ctest-policy1-26796550'] 2026-01-29 14:50:10,459 - INFO - VN ctest-vn4-47077214 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 14:50:10,459 - DEBUG - Verifying the vn in opserver 2026-01-29 14:50:10,459 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64252850:ctest-vn4-47077214 virtual network link through opserver 10.0.0.246 2026-01-29 14:50:10,459 - DEBUG - Requesting: http://10.0.0.246:8081/analytics/uves/virtual-networks 2026-01-29 14:50:10,751 - DEBUG - Requesting: http://10.0.0.246:8081/analytics/uves/virtual-networks 2026-01-29 14:50:10,807 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64252850:ctest-vn4-47077214', 'href': 'http://10.0.0.246:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64252850:ctest-vn4-47077214?flat'} 2026-01-29 14:50:10,807 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64252850:ctest-vn4-47077214 is found in opserver 2026-01-29 14:50:10,816 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 14:50:10,820 - DEBUG - VRF ids for VN ctest-vn4-47077214: {} 2026-01-29 14:50:10,821 - DEBUG - ====Verifying data for ctest-policy1-26796550 in API_Server ====== 2026-01-29 14:50:10,821 - DEBUG - Requesting: http://10.0.0.246:8082/domains 2026-01-29 14:50:10,826 - DEBUG - Requesting: http://10.0.0.246:8082/domain/ab960573-c036-473c-9e4c-333386525eb1 2026-01-29 14:50:10,835 - DEBUG - Requesting: http://10.0.0.246:8082/project/650c0f77-52fd-4602-ae8d-f4e309f0eb2b 2026-01-29 14:50:10,904 - DEBUG - Requesting: http://10.0.0.246:8082/network-policy/c70f9810-caa6-4eac-a5f1-eff228412416 2026-01-29 14:50:10,912 - INFO - Verified policy ctest-policy1-26796550 in API Server, Result: True 2026-01-29 14:50:10,912 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 14:50:10,919 - INFO - Deleting VN ctest-vn4-47077214 2026-01-29 14:50:11,025 - DEBUG - Response for deleting network () 2026-01-29 14:50:11,025 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/e5ff746b-5316-48a8-8fb8-c3d89c2adf2e 2026-01-29 14:50:11,030 - DEBUG - Response Code: 404 2026-01-29 14:50:11,030 - DEBUG - Requesting: http://10.0.0.246:8082/domains 2026-01-29 14:50:11,036 - DEBUG - Requesting: http://10.0.0.246:8082/domain/ab960573-c036-473c-9e4c-333386525eb1 2026-01-29 14:50:11,093 - DEBUG - Requesting: http://10.0.0.246:8082/project/650c0f77-52fd-4602-ae8d-f4e309f0eb2b 2026-01-29 14:50:11,161 - INFO - Validated that VN ctest-vn4-47077214 is not found in API Server 2026-01-29 14:50:11,170 - DEBUG - VN ctest-vn4-47077214 is not present in Agent 10.0.0.246 2026-01-29 14:50:11,170 - INFO - Validated that VN ctest-vn4-47077214 is not in any agent 2026-01-29 14:50:11,181 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47077214 info 2026-01-29 14:50:11,206 - INFO - Deleted policy ctest-policy1-26796550 2026-01-29 14:50:11,367 - DEBUG - policy ctest-policy1-26796550 is not found in API Server 2026-01-29 14:50:11,620 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 14:50:11,620 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-29 14:50:11,620 - INFO - -------------------------------------------------------------------------------- 2026-01-29 14:50:11,909 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 14:50:11,909 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-29 14:50:11,909 - INFO - -------------------------------------------------------------------------------- 2026-01-29 14:50:12,585 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64252850, ID : 650c0f77-52fd-4602-ae8d-f4e309f0eb2b