2026-10-28 12:47:55,000 - INFO - Domain Default found not creating 2026-10-28 12:47:55,200 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18011797 not found, creating it 2026-10-28 12:47:55,730 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18011797, ID : d9084a34-a1f1-49eb-8ba1-23ede806008e 2026-10-28 12:47:57,513 - INFO - ================================================================================ 2026-10-28 12:47:57,513 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 12:47:57,785 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.31': '0'}} with 2026-10-28 12:47:57,785 - INFO - Initial checks done. Running the testcase now 2026-10-28 12:47:57,785 - INFO - 2026-10-28 12:47:57,785 - INFO - ================================================================================ 2026-10-28 12:47:57,785 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-28 12:47:57,785 - 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 12:47:58,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.31': '0'}} with 2026-10-28 12:47:58,069 - INFO - Initial checks done. Running the testcase now 2026-10-28 12:47:58,069 - INFO - 2026-10-28 12:47:58,519 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18011797:ctest-vn4-23341856, 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-18011797:ctest-vn4-23341856, 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-18011797:ctest-vn4-23341856, 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-18011797:ctest-vn4-23341856, 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 12:47:59,075 - DEBUG - Response for create_network : {'network': {'id': '9935a766-ea9d-45ab-91c5-f4545fe1c5b2', 'name': 'ctest-vn4-23341856', 'tenant_id': 'd9084a34a1f149eb8ba123ede806008e', 'project_id': 'd9084a34a1f149eb8ba123ede806008e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18011797', 'ctest-vn4-23341856'], 'port_security_enabled': True, 'description': ''}} 2026-10-28 12:47:59,266 - DEBUG - Response for create_subnet : {'subnet': {'id': '76ec18d8-590d-4274-b3d9-c5ecad26eb02', 'name': '', 'tenant_id': 'd9084a34a1f149eb8ba123ede806008e', 'network_id': '9935a766-ea9d-45ab-91c5-f4545fe1c5b2', 'ip_version': 4, 'cidr': '141.191.87.0/26', 'allocation_pools': [{'start': '141.191.87.2', 'end': '141.191.87.62'}], 'gateway_ip': '141.191.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.191.87.2', 'tags': [], 'project_id': 'd9084a34a1f149eb8ba123ede806008e'}} 2026-10-28 12:47:59,482 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7871919-ee75-423b-a9f2-f419e84168f7', 'name': '', 'tenant_id': 'd9084a34a1f149eb8ba123ede806008e', 'network_id': '9935a766-ea9d-45ab-91c5-f4545fe1c5b2', 'ip_version': 6, 'cidr': '3018:164a:b3bf:9341:a60c:2364::/96', 'allocation_pools': [{'start': '3018:164a:b3bf:9341:a60c:2364:0:2', 'end': '3018:164a:b3bf:9341:a60c:2364:ffff:fffe'}], 'gateway_ip': '3018:164a:b3bf:9341:a60c:2364:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3018:164a:b3bf:9341:a60c:2364:0:2', 'tags': [], 'project_id': 'd9084a34a1f149eb8ba123ede806008e'}} 2026-10-28 12:47:59,506 - INFO - Created VN ctest-vn4-23341856 2026-10-28 12:47:59,563 - DEBUG - VN ctest-vn4-23341856 UUID is 9935a766-ea9d-45ab-91c5-f4545fe1c5b2 2026-10-28 12:47:59,782 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9935a766-ea9d-45ab-91c5-f4545fe1c5b2', 'name': 'ctest-vn4-23341856', 'tenant_id': 'd9084a34a1f149eb8ba123ede806008e', 'project_id': 'd9084a34a1f149eb8ba123ede806008e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['76ec18d8-590d-4274-b3d9-c5ecad26eb02', 'f7871919-ee75-423b-a9f2-f419e84168f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18011797', 'ctest-vn4-23341856'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18011797', 'ctest-policy1-77933540']], 'subnet_ipam': [{'subnet_cidr': '141.191.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3018:164a:b3bf:9341:a60c:2364::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-28 12:47:59,951 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-10-28 12:48:00,318 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-10-28 12:48:00,354 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0 2026-10-28 12:48:00,370 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9084a34-a1f1-49eb-8ba1-23ede806008e 2026-10-28 12:48:00,454 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9935a766-ea9d-45ab-91c5-f4545fe1c5b2 2026-10-28 12:48:00,477 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9935a766-ea9d-45ab-91c5-f4545fe1c5b2 2026-10-28 12:48:00,489 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/761fb917-3b38-4c19-aa5f-bf847071e928 2026-10-28 12:48:00,500 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/761fb917-3b38-4c19-aa5f-bf847071e928 2026-10-28 12:48:00,510 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0dc43334-54b3-4678-9a6a-84d80059290a 2026-10-28 12:48:00,518 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 12:48:00,518 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9935a766-ea9d-45ab-91c5-f4545fe1c5b2 2026-10-28 12:48:00,529 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/761fb917-3b38-4c19-aa5f-bf847071e928 2026-10-28 12:48:00,547 - INFO - Verified VN network id 12 for VN 9935a766-ea9d-45ab-91c5-f4545fe1c5b2 2026-10-28 12:48:00,547 - INFO - Verifications in API Server for VN ctest-vn4-23341856 passed 2026-10-28 12:48:00,547 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9935a766-ea9d-45ab-91c5-f4545fe1c5b2 2026-10-28 12:48:00,560 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/761fb917-3b38-4c19-aa5f-bf847071e928 2026-10-28 12:48:00,569 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/761fb917-3b38-4c19-aa5f-bf847071e928 2026-10-28 12:48:00,579 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0dc43334-54b3-4678-9a6a-84d80059290a 2026-10-28 12:48:00,596 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18011797:ctest-vn4-23341856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18011797', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11039914122033317291', 'uuid-lslong': '10504070349134611890'}, 'enable': 'true', 'created': '2026-10-28T12:47:59', 'last-modified': '2026-10-28T12:47:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.845055'} 2026-10-28 12:48:00,608 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-28 12:48:00,608 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23341856 passed 2026-10-28 12:48:00,608 - DEBUG - ====Verifying policy data for ctest-vn4-23341856 in API_Server ====== 2026-10-28 12:48:00,608 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-10-28 12:48:00,616 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0 2026-10-28 12:48:00,631 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9084a34-a1f1-49eb-8ba1-23ede806008e 2026-10-28 12:48:00,715 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9935a766-ea9d-45ab-91c5-f4545fe1c5b2 2026-10-28 12:48:00,730 - DEBUG - ==>Verifying data for policy with id: 9ee2b269-b273-456d-b646-ae9952aca2ff, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18011797', 'ctest-policy1-77933540'] 2026-10-28 12:48:00,730 - INFO - VN ctest-vn4-23341856 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-28 12:48:00,730 - DEBUG - Verifying the vn in opserver 2026-10-28 12:48:00,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18011797:ctest-vn4-23341856 virtual network link through opserver 10.0.0.249 2026-10-28 12:48:00,731 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-10-28 12:48:01,100 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-10-28 12:48:01,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18011797:ctest-vn4-23341856', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18011797:ctest-vn4-23341856?flat'} 2026-10-28 12:48:01,171 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18011797:ctest-vn4-23341856 is found in opserver 2026-10-28 12:48:01,184 - DEBUG - Do not have enough data to verify VN in agent 2026-10-28 12:48:01,191 - DEBUG - VRF ids for VN ctest-vn4-23341856: {} 2026-10-28 12:48:01,191 - DEBUG - ====Verifying data for ctest-policy1-77933540 in API_Server ====== 2026-10-28 12:48:01,192 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-10-28 12:48:01,198 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0 2026-10-28 12:48:01,209 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9084a34-a1f1-49eb-8ba1-23ede806008e 2026-10-28 12:48:01,291 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/9ee2b269-b273-456d-b646-ae9952aca2ff 2026-10-28 12:48:01,304 - INFO - Verified policy ctest-policy1-77933540 in API Server, Result: True 2026-10-28 12:48:01,304 - INFO - Done with setup and verification, moving onto test .. 2026-10-28 12:48:01,319 - INFO - Deleting VN ctest-vn4-23341856 2026-10-28 12:48:01,443 - DEBUG - Response for deleting network () 2026-10-28 12:48:01,443 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/761fb917-3b38-4c19-aa5f-bf847071e928 2026-10-28 12:48:01,449 - DEBUG - Response Code: 404 2026-10-28 12:48:01,449 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-10-28 12:48:01,456 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0 2026-10-28 12:48:01,509 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9084a34-a1f1-49eb-8ba1-23ede806008e 2026-10-28 12:48:01,594 - INFO - Validated that VN ctest-vn4-23341856 is not found in API Server 2026-10-28 12:48:01,609 - DEBUG - VN ctest-vn4-23341856 is not present in Agent 10.0.0.249 2026-10-28 12:48:01,609 - INFO - Validated that VN ctest-vn4-23341856 is not in any agent 2026-10-28 12:48:01,633 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23341856 info 2026-10-28 12:48:01,662 - INFO - Deleted policy ctest-policy1-77933540 2026-10-28 12:48:01,839 - DEBUG - policy ctest-policy1-77933540 is not found in API Server 2026-10-28 12:48:02,113 - DEBUG - No XMPP flaps were noticed during the test
2026-10-28 12:48:02,113 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-28 12:48:02,113 - INFO - -------------------------------------------------------------------------------- 2026-10-28 12:48:02,411 - DEBUG - No XMPP flaps were noticed during the test
2026-10-28 12:48:02,411 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-28 12:48:02,411 - INFO - -------------------------------------------------------------------------------- 2026-10-28 12:48:03,212 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18011797, ID : d9084a34-a1f1-49eb-8ba1-23ede806008e