2026-07-18 19:13:57,617 - INFO - Domain Default found not creating 2026-07-18 19:13:57,795 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71249051 not found, creating it 2026-07-18 19:13:58,324 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71249051, ID : e417b343-4820-48d7-912a-a05b6f5684aa 2026-07-18 19:14:00,070 - INFO - ================================================================================ 2026-07-18 19:14:00,070 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 19:14:00,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-18 19:14:00,346 - INFO - Initial checks done. Running the testcase now 2026-07-18 19:14:00,347 - INFO - 2026-07-18 19:14:00,347 - INFO - ================================================================================ 2026-07-18 19:14:00,347 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 19:14:00,347 - 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-18 19:14:00,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-18 19:14:00,642 - INFO - Initial checks done. Running the testcase now 2026-07-18 19:14:00,642 - INFO - 2026-07-18 19:14:01,104 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71249051:ctest-vn4-11012690, 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-71249051:ctest-vn4-11012690, 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-71249051:ctest-vn4-11012690, 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-71249051:ctest-vn4-11012690, 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-18 19:14:01,664 - DEBUG - Response for create_network : {'network': {'id': 'd8b62371-c05f-4138-ac94-a1f0c76ff0ca', 'name': 'ctest-vn4-11012690', 'tenant_id': 'e417b343482048d7912aa05b6f5684aa', 'project_id': 'e417b343482048d7912aa05b6f5684aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71249051', 'ctest-vn4-11012690'], 'port_security_enabled': True, 'description': ''}} 2026-07-18 19:14:01,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d3db716-c48a-4f87-9674-8f705c8bf6c5', 'name': '', 'tenant_id': 'e417b343482048d7912aa05b6f5684aa', 'network_id': 'd8b62371-c05f-4138-ac94-a1f0c76ff0ca', 'ip_version': 4, 'cidr': '151.213.84.192/26', 'allocation_pools': [{'start': '151.213.84.194', 'end': '151.213.84.254'}], 'gateway_ip': '151.213.84.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.213.84.194', 'tags': [], 'project_id': 'e417b343482048d7912aa05b6f5684aa'}} 2026-07-18 19:14:02,044 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac3e8207-3dbb-4663-826f-851e20f8a946', 'name': '', 'tenant_id': 'e417b343482048d7912aa05b6f5684aa', 'network_id': 'd8b62371-c05f-4138-ac94-a1f0c76ff0ca', 'ip_version': 6, 'cidr': '3870:aa00:4ae4:9f32:e403:f791::/96', 'allocation_pools': [{'start': '3870:aa00:4ae4:9f32:e403:f791:0:2', 'end': '3870:aa00:4ae4:9f32:e403:f791:ffff:fffe'}], 'gateway_ip': '3870:aa00:4ae4:9f32:e403:f791:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3870:aa00:4ae4:9f32:e403:f791:0:2', 'tags': [], 'project_id': 'e417b343482048d7912aa05b6f5684aa'}} 2026-07-18 19:14:02,072 - INFO - Created VN ctest-vn4-11012690 2026-07-18 19:14:02,129 - DEBUG - VN ctest-vn4-11012690 UUID is d8b62371-c05f-4138-ac94-a1f0c76ff0ca 2026-07-18 19:14:02,372 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8b62371-c05f-4138-ac94-a1f0c76ff0ca', 'name': 'ctest-vn4-11012690', 'tenant_id': 'e417b343482048d7912aa05b6f5684aa', 'project_id': 'e417b343482048d7912aa05b6f5684aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d3db716-c48a-4f87-9674-8f705c8bf6c5', 'ac3e8207-3dbb-4663-826f-851e20f8a946'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71249051', 'ctest-vn4-11012690'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71249051', 'ctest-policy1-35238339']], 'subnet_ipam': [{'subnet_cidr': '151.213.84.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3870:aa00:4ae4:9f32:e403:f791::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-18 19:14:02,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 19:14:02,939 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 19:14:02,974 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f 2026-07-18 19:14:02,995 - DEBUG - Requesting: http://10.0.0.50:8082/project/e417b343-4820-48d7-912a-a05b6f5684aa 2026-07-18 19:14:03,093 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8b62371-c05f-4138-ac94-a1f0c76ff0ca 2026-07-18 19:14:03,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8b62371-c05f-4138-ac94-a1f0c76ff0ca 2026-07-18 19:14:03,126 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/534f5909-e5a3-44de-bfd4-9a565dec0312 2026-07-18 19:14:03,137 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/534f5909-e5a3-44de-bfd4-9a565dec0312 2026-07-18 19:14:03,147 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04ac5a24-fdfb-407c-bf0f-db6d5184ac51 2026-07-18 19:14:03,156 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 19:14:03,156 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8b62371-c05f-4138-ac94-a1f0c76ff0ca 2026-07-18 19:14:03,167 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/534f5909-e5a3-44de-bfd4-9a565dec0312 2026-07-18 19:14:03,187 - INFO - Verified VN network id 11 for VN d8b62371-c05f-4138-ac94-a1f0c76ff0ca 2026-07-18 19:14:03,188 - INFO - Verifications in API Server for VN ctest-vn4-11012690 passed 2026-07-18 19:14:03,188 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8b62371-c05f-4138-ac94-a1f0c76ff0ca 2026-07-18 19:14:03,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/534f5909-e5a3-44de-bfd4-9a565dec0312 2026-07-18 19:14:03,209 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/534f5909-e5a3-44de-bfd4-9a565dec0312 2026-07-18 19:14:03,218 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04ac5a24-fdfb-407c-bf0f-db6d5184ac51 2026-07-18 19:14:03,236 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71249051:ctest-vn4-11012690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71249051', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15615707729419518264', 'uuid-lslong': '12435742526587007178'}, 'enable': 'true', 'created': '2026-07-18T19:14:01', 'last-modified': '2026-07-18T19:14:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897087'} 2026-07-18 19:14:03,244 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 19:14:03,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11012690 passed 2026-07-18 19:14:03,244 - DEBUG - ====Verifying policy data for ctest-vn4-11012690 in API_Server ====== 2026-07-18 19:14:03,244 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 19:14:03,253 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f 2026-07-18 19:14:03,267 - DEBUG - Requesting: http://10.0.0.50:8082/project/e417b343-4820-48d7-912a-a05b6f5684aa 2026-07-18 19:14:03,356 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8b62371-c05f-4138-ac94-a1f0c76ff0ca 2026-07-18 19:14:03,370 - DEBUG - ==>Verifying data for policy with id: 63b668b6-438e-46ac-8c0a-a48425e46a6a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71249051', 'ctest-policy1-35238339'] 2026-07-18 19:14:03,370 - INFO - VN ctest-vn4-11012690 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-18 19:14:03,370 - DEBUG - Verifying the vn in opserver 2026-07-18 19:14:03,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71249051:ctest-vn4-11012690 virtual network link through opserver 10.0.0.50 2026-07-18 19:14:03,370 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-18 19:14:03,756 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-18 19:14:03,820 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71249051:ctest-vn4-11012690', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71249051:ctest-vn4-11012690?flat'} 2026-07-18 19:14:03,820 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71249051:ctest-vn4-11012690 is found in opserver 2026-07-18 19:14:03,834 - DEBUG - Do not have enough data to verify VN in agent 2026-07-18 19:14:03,840 - DEBUG - VRF ids for VN ctest-vn4-11012690: {} 2026-07-18 19:14:03,840 - DEBUG - ====Verifying data for ctest-policy1-35238339 in API_Server ====== 2026-07-18 19:14:03,840 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 19:14:03,848 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f 2026-07-18 19:14:03,860 - DEBUG - Requesting: http://10.0.0.50:8082/project/e417b343-4820-48d7-912a-a05b6f5684aa 2026-07-18 19:14:03,940 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/63b668b6-438e-46ac-8c0a-a48425e46a6a 2026-07-18 19:14:03,954 - INFO - Verified policy ctest-policy1-35238339 in API Server, Result: True 2026-07-18 19:14:03,955 - INFO - Done with setup and verification, moving onto test .. 2026-07-18 19:14:03,966 - INFO - Deleting VN ctest-vn4-11012690 2026-07-18 19:14:04,121 - DEBUG - Response for deleting network () 2026-07-18 19:14:04,121 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/534f5909-e5a3-44de-bfd4-9a565dec0312 2026-07-18 19:14:04,127 - DEBUG - Response Code: 404 2026-07-18 19:14:04,128 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 19:14:04,135 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f 2026-07-18 19:14:04,191 - DEBUG - Requesting: http://10.0.0.50:8082/project/e417b343-4820-48d7-912a-a05b6f5684aa 2026-07-18 19:14:04,273 - INFO - Validated that VN ctest-vn4-11012690 is not found in API Server 2026-07-18 19:14:04,285 - DEBUG - VN ctest-vn4-11012690 is not present in Agent 10.0.0.50 2026-07-18 19:14:04,285 - INFO - Validated that VN ctest-vn4-11012690 is not in any agent 2026-07-18 19:14:04,303 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11012690 info 2026-07-18 19:14:04,337 - INFO - Deleted policy ctest-policy1-35238339 2026-07-18 19:14:04,504 - DEBUG - policy ctest-policy1-35238339 is not found in API Server 2026-07-18 19:14:04,774 - DEBUG - No XMPP flaps were noticed during the test
2026-07-18 19:14:04,774 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-18 19:14:04,774 - INFO - -------------------------------------------------------------------------------- 2026-07-18 19:14:05,071 - DEBUG - No XMPP flaps were noticed during the test
2026-07-18 19:14:05,071 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-07-18 19:14:05,071 - INFO - -------------------------------------------------------------------------------- 2026-07-18 19:14:05,860 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71249051, ID : e417b343-4820-48d7-912a-a05b6f5684aa