2026-07-30 08:22:20,496 - INFO - Domain Default found not creating 2026-07-30 08:22:20,669 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07830967 not found, creating it 2026-07-30 08:22:21,162 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07830967, ID : 69837431-c7f8-4370-ac43-4bf4d546386e 2026-07-30 08:22:22,786 - INFO - ================================================================================ 2026-07-30 08:22:22,786 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-30 08:22:23,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-07-30 08:22:23,045 - INFO - Initial checks done. Running the testcase now 2026-07-30 08:22:23,045 - INFO - 2026-07-30 08:22:23,045 - INFO - ================================================================================ 2026-07-30 08:22:23,045 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-30 08:22:23,045 - 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-07-30 08:22:23,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-07-30 08:22:23,344 - INFO - Initial checks done. Running the testcase now 2026-07-30 08:22:23,344 - INFO - 2026-07-30 08:22:23,748 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07830967:ctest-vn4-14818433, 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-07830967:ctest-vn4-14818433, 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-07830967:ctest-vn4-14818433, 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-07830967:ctest-vn4-14818433, 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-07-30 08:22:24,275 - DEBUG - Response for create_network : {'network': {'id': '29da083d-537a-410f-baaf-342659cc611b', 'name': 'ctest-vn4-14818433', 'tenant_id': '69837431c7f84370ac434bf4d546386e', 'project_id': '69837431c7f84370ac434bf4d546386e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07830967', 'ctest-vn4-14818433'], 'port_security_enabled': True, 'description': ''}} 2026-07-30 08:22:24,468 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd774058c-fe6e-4c21-a1fb-be6d9f0a4bbb', 'name': '', 'tenant_id': '69837431c7f84370ac434bf4d546386e', 'network_id': '29da083d-537a-410f-baaf-342659cc611b', 'ip_version': 4, 'cidr': '89.198.104.192/26', 'allocation_pools': [{'start': '89.198.104.194', 'end': '89.198.104.254'}], 'gateway_ip': '89.198.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.198.104.194', 'tags': [], 'project_id': '69837431c7f84370ac434bf4d546386e'}} 2026-07-30 08:22:24,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fb299f3-858b-47aa-add6-411ba31e52e7', 'name': '', 'tenant_id': '69837431c7f84370ac434bf4d546386e', 'network_id': '29da083d-537a-410f-baaf-342659cc611b', 'ip_version': 6, 'cidr': '3027:af9:2156:573f:eeb6:56c1::/96', 'allocation_pools': [{'start': '3027:af9:2156:573f:eeb6:56c1:0:2', 'end': '3027:af9:2156:573f:eeb6:56c1:ffff:fffe'}], 'gateway_ip': '3027:af9:2156:573f:eeb6:56c1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3027:af9:2156:573f:eeb6:56c1:0:2', 'tags': [], 'project_id': '69837431c7f84370ac434bf4d546386e'}} 2026-07-30 08:22:24,646 - INFO - Created VN ctest-vn4-14818433 2026-07-30 08:22:24,702 - DEBUG - VN ctest-vn4-14818433 UUID is 29da083d-537a-410f-baaf-342659cc611b 2026-07-30 08:22:24,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29da083d-537a-410f-baaf-342659cc611b', 'name': 'ctest-vn4-14818433', 'tenant_id': '69837431c7f84370ac434bf4d546386e', 'project_id': '69837431c7f84370ac434bf4d546386e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d774058c-fe6e-4c21-a1fb-be6d9f0a4bbb', '0fb299f3-858b-47aa-add6-411ba31e52e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07830967', 'ctest-vn4-14818433'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07830967', 'ctest-policy1-65679771']], 'subnet_ipam': [{'subnet_cidr': '89.198.104.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3027:af9:2156:573f:eeb6:56c1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-30 08:22:25,082 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-07-30 08:22:25,411 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-07-30 08:22:25,439 - DEBUG - Requesting: http://10.0.0.189:8082/domain/803084ae-02e9-4945-8386-8ad6161ba353 2026-07-30 08:22:25,451 - DEBUG - Requesting: http://10.0.0.189:8082/project/69837431-c7f8-4370-ac43-4bf4d546386e 2026-07-30 08:22:25,531 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/29da083d-537a-410f-baaf-342659cc611b 2026-07-30 08:22:25,544 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/29da083d-537a-410f-baaf-342659cc611b 2026-07-30 08:22:25,554 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/55523c04-7738-4553-bc36-3c05727d0df0 2026-07-30 08:22:25,565 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/55523c04-7738-4553-bc36-3c05727d0df0 2026-07-30 08:22:25,573 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/f634847c-646e-4bd3-9967-82f50c37ce5a 2026-07-30 08:22:25,580 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-30 08:22:25,580 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/29da083d-537a-410f-baaf-342659cc611b 2026-07-30 08:22:25,591 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/55523c04-7738-4553-bc36-3c05727d0df0 2026-07-30 08:22:25,612 - INFO - Verified VN network id 11 for VN 29da083d-537a-410f-baaf-342659cc611b 2026-07-30 08:22:25,612 - INFO - Verifications in API Server for VN ctest-vn4-14818433 passed 2026-07-30 08:22:25,612 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/29da083d-537a-410f-baaf-342659cc611b 2026-07-30 08:22:25,623 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/55523c04-7738-4553-bc36-3c05727d0df0 2026-07-30 08:22:25,630 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/55523c04-7738-4553-bc36-3c05727d0df0 2026-07-30 08:22:25,639 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/f634847c-646e-4bd3-9967-82f50c37ce5a 2026-07-30 08:22:25,657 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07830967:ctest-vn4-14818433', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07830967', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3015731959964516623', 'uuid-lslong': '13452027951298928923'}, 'enable': 'true', 'created': '2026-07-30T08:22:24', 'last-modified': '2026-07-30T08:22:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766261'} 2026-07-30 08:22:25,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-30 08:22:25,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14818433 passed 2026-07-30 08:22:25,668 - DEBUG - ====Verifying policy data for ctest-vn4-14818433 in API_Server ====== 2026-07-30 08:22:25,668 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-07-30 08:22:25,675 - DEBUG - Requesting: http://10.0.0.189:8082/domain/803084ae-02e9-4945-8386-8ad6161ba353 2026-07-30 08:22:25,688 - DEBUG - Requesting: http://10.0.0.189:8082/project/69837431-c7f8-4370-ac43-4bf4d546386e 2026-07-30 08:22:25,776 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/29da083d-537a-410f-baaf-342659cc611b 2026-07-30 08:22:25,787 - DEBUG - ==>Verifying data for policy with id: c7d6b059-ebc7-4076-a0e0-86bcb8a2a346, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07830967', 'ctest-policy1-65679771'] 2026-07-30 08:22:25,787 - INFO - VN ctest-vn4-14818433 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-30 08:22:25,787 - DEBUG - Verifying the vn in opserver 2026-07-30 08:22:25,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07830967:ctest-vn4-14818433 virtual network link through opserver 10.0.0.189 2026-07-30 08:22:25,787 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-07-30 08:22:26,109 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-07-30 08:22:26,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07830967:ctest-vn4-14818433', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07830967:ctest-vn4-14818433?flat'} 2026-07-30 08:22:26,164 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07830967:ctest-vn4-14818433 is found in opserver 2026-07-30 08:22:26,175 - DEBUG - Do not have enough data to verify VN in agent 2026-07-30 08:22:26,181 - DEBUG - VRF ids for VN ctest-vn4-14818433: {} 2026-07-30 08:22:26,182 - DEBUG - ====Verifying data for ctest-policy1-65679771 in API_Server ====== 2026-07-30 08:22:26,182 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-07-30 08:22:26,188 - DEBUG - Requesting: http://10.0.0.189:8082/domain/803084ae-02e9-4945-8386-8ad6161ba353 2026-07-30 08:22:26,199 - DEBUG - Requesting: http://10.0.0.189:8082/project/69837431-c7f8-4370-ac43-4bf4d546386e 2026-07-30 08:22:26,280 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/c7d6b059-ebc7-4076-a0e0-86bcb8a2a346 2026-07-30 08:22:26,291 - INFO - Verified policy ctest-policy1-65679771 in API Server, Result: True 2026-07-30 08:22:26,291 - INFO - Done with setup and verification, moving onto test .. 2026-07-30 08:22:26,302 - INFO - Deleting VN ctest-vn4-14818433 2026-07-30 08:22:26,436 - DEBUG - Response for deleting network () 2026-07-30 08:22:26,436 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/55523c04-7738-4553-bc36-3c05727d0df0 2026-07-30 08:22:26,443 - DEBUG - Response Code: 404 2026-07-30 08:22:26,443 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-07-30 08:22:26,449 - DEBUG - Requesting: http://10.0.0.189:8082/domain/803084ae-02e9-4945-8386-8ad6161ba353 2026-07-30 08:22:26,508 - DEBUG - Requesting: http://10.0.0.189:8082/project/69837431-c7f8-4370-ac43-4bf4d546386e 2026-07-30 08:22:26,581 - INFO - Validated that VN ctest-vn4-14818433 is not found in API Server 2026-07-30 08:22:26,592 - DEBUG - VN ctest-vn4-14818433 is not present in Agent 10.0.0.189 2026-07-30 08:22:26,592 - INFO - Validated that VN ctest-vn4-14818433 is not in any agent 2026-07-30 08:22:26,608 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14818433 info 2026-07-30 08:22:26,638 - INFO - Deleted policy ctest-policy1-65679771 2026-07-30 08:22:26,814 - DEBUG - policy ctest-policy1-65679771 is not found in API Server 2026-07-30 08:22:27,076 - DEBUG - No XMPP flaps were noticed during the test 2026-07-30 08:22:27,076 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-30 08:22:27,076 - INFO - -------------------------------------------------------------------------------- 2026-07-30 08:22:27,389 - DEBUG - No XMPP flaps were noticed during the test 2026-07-30 08:22:27,389 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-07-30 08:22:27,390 - INFO - -------------------------------------------------------------------------------- 2026-07-30 08:22:28,148 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07830967, ID : 69837431-c7f8-4370-ac43-4bf4d546386e