2026-06-17 19:32:46,287 - INFO - Domain Default found not creating 2026-06-17 19:32:46,408 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79299284 not found, creating it 2026-06-17 19:32:46,912 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79299284, ID : 4e8187fc-c2b2-42a6-acee-71ff943f49c2 2026-06-17 19:32:48,305 - INFO - ================================================================================ 2026-06-17 19:32:48,305 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 19:32:48,556 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-17 19:32:48,556 - INFO - Initial checks done. Running the testcase now 2026-06-17 19:32:48,556 - INFO - 2026-06-17 19:32:48,556 - INFO - ================================================================================ 2026-06-17 19:32:48,556 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 19:32:48,556 - 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-06-17 19:32:48,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-17 19:32:48,847 - INFO - Initial checks done. Running the testcase now 2026-06-17 19:32:48,848 - INFO - 2026-06-17 19:32:49,210 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79299284:ctest-vn4-21576771, 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-79299284:ctest-vn4-21576771, 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-79299284:ctest-vn4-21576771, 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-79299284:ctest-vn4-21576771, 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-06-17 19:32:49,685 - DEBUG - Response for create_network : {'network': {'id': '9f34fc9d-07d5-48ce-b7ec-8f424b3ded79', 'name': 'ctest-vn4-21576771', 'tenant_id': '4e8187fcc2b242a6acee71ff943f49c2', 'project_id': '4e8187fcc2b242a6acee71ff943f49c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79299284', 'ctest-vn4-21576771'], 'port_security_enabled': True, 'description': ''}} 2026-06-17 19:32:49,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '148d9018-c295-4ed8-a3d2-915569693eeb', 'name': '', 'tenant_id': '4e8187fcc2b242a6acee71ff943f49c2', 'network_id': '9f34fc9d-07d5-48ce-b7ec-8f424b3ded79', 'ip_version': 4, 'cidr': '124.254.107.64/26', 'allocation_pools': [{'start': '124.254.107.66', 'end': '124.254.107.126'}], 'gateway_ip': '124.254.107.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.254.107.66', 'tags': [], 'project_id': '4e8187fcc2b242a6acee71ff943f49c2'}} 2026-06-17 19:32:50,040 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec076234-5021-48bb-b96a-2b602705fb7a', 'name': '', 'tenant_id': '4e8187fcc2b242a6acee71ff943f49c2', 'network_id': '9f34fc9d-07d5-48ce-b7ec-8f424b3ded79', 'ip_version': 6, 'cidr': '254e:42d5:1b0e:c5e:8ea:b62::/96', 'allocation_pools': [{'start': '254e:42d5:1b0e:c5e:8ea:b62:0:2', 'end': '254e:42d5:1b0e:c5e:8ea:b62:ffff:fffe'}], 'gateway_ip': '254e:42d5:1b0e:c5e:8ea:b62:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '254e:42d5:1b0e:c5e:8ea:b62:0:2', 'tags': [], 'project_id': '4e8187fcc2b242a6acee71ff943f49c2'}} 2026-06-17 19:32:50,062 - INFO - Created VN ctest-vn4-21576771 2026-06-17 19:32:50,112 - DEBUG - VN ctest-vn4-21576771 UUID is 9f34fc9d-07d5-48ce-b7ec-8f424b3ded79 2026-06-17 19:32:50,278 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f34fc9d-07d5-48ce-b7ec-8f424b3ded79', 'name': 'ctest-vn4-21576771', 'tenant_id': '4e8187fcc2b242a6acee71ff943f49c2', 'project_id': '4e8187fcc2b242a6acee71ff943f49c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['148d9018-c295-4ed8-a3d2-915569693eeb', 'ec076234-5021-48bb-b96a-2b602705fb7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79299284', 'ctest-vn4-21576771'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79299284', 'ctest-policy1-22507676']], 'subnet_ipam': [{'subnet_cidr': '124.254.107.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '254e:42d5:1b0e:c5e:8ea:b62::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-17 19:32:50,436 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 19:32:50,750 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 19:32:50,772 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96563372-5230-4e59-9cd5-e7ffc600c98a 2026-06-17 19:32:50,781 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e8187fc-c2b2-42a6-acee-71ff943f49c2 2026-06-17 19:32:50,852 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9f34fc9d-07d5-48ce-b7ec-8f424b3ded79 2026-06-17 19:32:50,863 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9f34fc9d-07d5-48ce-b7ec-8f424b3ded79 2026-06-17 19:32:50,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b62ea397-aac0-48be-bed4-ca07a4d154e0 2026-06-17 19:32:50,877 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b62ea397-aac0-48be-bed4-ca07a4d154e0 2026-06-17 19:32:50,883 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/56ffe352-46a0-4dc6-bce8-4c89a6669fb8 2026-06-17 19:32:50,888 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 19:32:50,888 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9f34fc9d-07d5-48ce-b7ec-8f424b3ded79 2026-06-17 19:32:50,896 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b62ea397-aac0-48be-bed4-ca07a4d154e0 2026-06-17 19:32:50,909 - INFO - Verified VN network id 11 for VN 9f34fc9d-07d5-48ce-b7ec-8f424b3ded79 2026-06-17 19:32:50,909 - INFO - Verifications in API Server for VN ctest-vn4-21576771 passed 2026-06-17 19:32:50,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9f34fc9d-07d5-48ce-b7ec-8f424b3ded79 2026-06-17 19:32:50,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b62ea397-aac0-48be-bed4-ca07a4d154e0 2026-06-17 19:32:50,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b62ea397-aac0-48be-bed4-ca07a4d154e0 2026-06-17 19:32:50,926 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/56ffe352-46a0-4dc6-bce8-4c89a6669fb8 2026-06-17 19:32:50,936 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79299284:ctest-vn4-21576771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79299284', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11472071902190979278', 'uuid-lslong': '13253125318337490297'}, 'enable': 'true', 'created': '2026-06-17T19:32:49', 'last-modified': '2026-06-17T19:32:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678861'} 2026-06-17 19:32:50,940 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 19:32:50,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21576771 passed 2026-06-17 19:32:50,941 - DEBUG - ====Verifying policy data for ctest-vn4-21576771 in API_Server ====== 2026-06-17 19:32:50,941 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 19:32:50,945 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96563372-5230-4e59-9cd5-e7ffc600c98a 2026-06-17 19:32:50,958 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e8187fc-c2b2-42a6-acee-71ff943f49c2 2026-06-17 19:32:51,033 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9f34fc9d-07d5-48ce-b7ec-8f424b3ded79 2026-06-17 19:32:51,042 - DEBUG - ==>Verifying data for policy with id: 111c09ee-cc62-4844-9a3b-40c4787e60ff, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79299284', 'ctest-policy1-22507676'] 2026-06-17 19:32:51,042 - INFO - VN ctest-vn4-21576771 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-17 19:32:51,042 - DEBUG - Verifying the vn in opserver 2026-06-17 19:32:51,042 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79299284:ctest-vn4-21576771 virtual network link through opserver 10.0.0.38 2026-06-17 19:32:51,042 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-17 19:32:51,356 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-17 19:32:51,398 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79299284:ctest-vn4-21576771', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79299284:ctest-vn4-21576771?flat'} 2026-06-17 19:32:51,398 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79299284:ctest-vn4-21576771 is found in opserver 2026-06-17 19:32:51,407 - DEBUG - Do not have enough data to verify VN in agent 2026-06-17 19:32:51,411 - DEBUG - VRF ids for VN ctest-vn4-21576771: {} 2026-06-17 19:32:51,411 - DEBUG - ====Verifying data for ctest-policy1-22507676 in API_Server ====== 2026-06-17 19:32:51,411 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 19:32:51,415 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96563372-5230-4e59-9cd5-e7ffc600c98a 2026-06-17 19:32:51,424 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e8187fc-c2b2-42a6-acee-71ff943f49c2 2026-06-17 19:32:51,490 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/111c09ee-cc62-4844-9a3b-40c4787e60ff 2026-06-17 19:32:51,499 - INFO - Verified policy ctest-policy1-22507676 in API Server, Result: True 2026-06-17 19:32:51,499 - INFO - Done with setup and verification, moving onto test .. 2026-06-17 19:32:51,506 - INFO - Deleting VN ctest-vn4-21576771 2026-06-17 19:32:51,603 - DEBUG - Response for deleting network () 2026-06-17 19:32:51,603 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b62ea397-aac0-48be-bed4-ca07a4d154e0 2026-06-17 19:32:51,606 - DEBUG - Response Code: 404 2026-06-17 19:32:51,607 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 19:32:51,611 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96563372-5230-4e59-9cd5-e7ffc600c98a 2026-06-17 19:32:51,663 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e8187fc-c2b2-42a6-acee-71ff943f49c2 2026-06-17 19:32:51,731 - INFO - Validated that VN ctest-vn4-21576771 is not found in API Server 2026-06-17 19:32:51,739 - DEBUG - VN ctest-vn4-21576771 is not present in Agent 10.0.0.38 2026-06-17 19:32:51,739 - INFO - Validated that VN ctest-vn4-21576771 is not in any agent 2026-06-17 19:32:51,750 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21576771 info 2026-06-17 19:32:51,774 - INFO - Deleted policy ctest-policy1-22507676 2026-06-17 19:32:51,935 - DEBUG - policy ctest-policy1-22507676 is not found in API Server 2026-06-17 19:32:52,191 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 19:32:52,191 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-17 19:32:52,191 - INFO - -------------------------------------------------------------------------------- 2026-06-17 19:32:52,491 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 19:32:52,492 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-17 19:32:52,492 - INFO - -------------------------------------------------------------------------------- 2026-06-17 19:32:53,161 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79299284, ID : 4e8187fc-c2b2-42a6-acee-71ff943f49c2