2026-05-20 15:37:41,191 - INFO - Domain Default found not creating 2026-05-20 15:37:41,378 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26129168 not found, creating it 2026-05-20 15:37:41,860 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26129168, ID : ecbbc06c-7c81-4db4-abdb-4c8704cdac64 2026-05-20 15:37:43,405 - INFO - ================================================================================ 2026-05-20 15:37:43,405 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 15:37:43,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-20 15:37:43,662 - INFO - Initial checks done. Running the testcase now 2026-05-20 15:37:43,662 - INFO - 2026-05-20 15:37:43,662 - INFO - ================================================================================ 2026-05-20 15:37:43,662 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 15:37:43,662 - 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-05-20 15:37:43,950 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-20 15:37:43,950 - INFO - Initial checks done. Running the testcase now 2026-05-20 15:37:43,950 - INFO - 2026-05-20 15:37:44,325 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26129168:ctest-vn4-63995100, 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-26129168:ctest-vn4-63995100, 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-26129168:ctest-vn4-63995100, 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-26129168:ctest-vn4-63995100, 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-05-20 15:37:44,893 - DEBUG - Response for create_network : {'network': {'id': '8b752d36-8407-452f-ad22-0098f753e3d1', 'name': 'ctest-vn4-63995100', 'tenant_id': 'ecbbc06c7c814db4abdb4c8704cdac64', 'project_id': 'ecbbc06c7c814db4abdb4c8704cdac64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26129168', 'ctest-vn4-63995100'], 'port_security_enabled': True, 'description': ''}} 2026-05-20 15:37:45,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '102dd957-d544-4cc5-94f1-3d45aed0e89f', 'name': '', 'tenant_id': 'ecbbc06c7c814db4abdb4c8704cdac64', 'network_id': '8b752d36-8407-452f-ad22-0098f753e3d1', 'ip_version': 4, 'cidr': '147.245.83.192/26', 'allocation_pools': [{'start': '147.245.83.194', 'end': '147.245.83.254'}], 'gateway_ip': '147.245.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.245.83.194', 'tags': [], 'project_id': 'ecbbc06c7c814db4abdb4c8704cdac64'}} 2026-05-20 15:37:45,287 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c5a5047-26ca-4f6b-8e4a-1316e46dfa9d', 'name': '', 'tenant_id': 'ecbbc06c7c814db4abdb4c8704cdac64', 'network_id': '8b752d36-8407-452f-ad22-0098f753e3d1', 'ip_version': 6, 'cidr': '25d9:1334:4b45:e402:7186:c5da::/96', 'allocation_pools': [{'start': '25d9:1334:4b45:e402:7186:c5da:0:2', 'end': '25d9:1334:4b45:e402:7186:c5da:ffff:fffe'}], 'gateway_ip': '25d9:1334:4b45:e402:7186:c5da:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25d9:1334:4b45:e402:7186:c5da:0:2', 'tags': [], 'project_id': 'ecbbc06c7c814db4abdb4c8704cdac64'}} 2026-05-20 15:37:45,308 - INFO - Created VN ctest-vn4-63995100 2026-05-20 15:37:45,361 - DEBUG - VN ctest-vn4-63995100 UUID is 8b752d36-8407-452f-ad22-0098f753e3d1 2026-05-20 15:37:45,590 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b752d36-8407-452f-ad22-0098f753e3d1', 'name': 'ctest-vn4-63995100', 'tenant_id': 'ecbbc06c7c814db4abdb4c8704cdac64', 'project_id': 'ecbbc06c7c814db4abdb4c8704cdac64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['102dd957-d544-4cc5-94f1-3d45aed0e89f', '4c5a5047-26ca-4f6b-8e4a-1316e46dfa9d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26129168', 'ctest-vn4-63995100'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26129168', 'ctest-policy1-42378076']], 'subnet_ipam': [{'subnet_cidr': '147.245.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25d9:1334:4b45:e402:7186:c5da::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-20 15:37:45,753 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-20 15:37:46,053 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-20 15:37:46,085 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea 2026-05-20 15:37:46,097 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecbbc06c-7c81-4db4-abdb-4c8704cdac64 2026-05-20 15:37:46,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b752d36-8407-452f-ad22-0098f753e3d1 2026-05-20 15:37:46,185 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b752d36-8407-452f-ad22-0098f753e3d1 2026-05-20 15:37:46,196 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96157629-7b96-4c44-857a-c579556f5b22 2026-05-20 15:37:46,205 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96157629-7b96-4c44-857a-c579556f5b22 2026-05-20 15:37:46,214 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/67218e1c-54ca-4396-9eb0-f8bac96d4b44 2026-05-20 15:37:46,223 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 15:37:46,223 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b752d36-8407-452f-ad22-0098f753e3d1 2026-05-20 15:37:46,243 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96157629-7b96-4c44-857a-c579556f5b22 2026-05-20 15:37:46,268 - INFO - Verified VN network id 12 for VN 8b752d36-8407-452f-ad22-0098f753e3d1 2026-05-20 15:37:46,268 - INFO - Verifications in API Server for VN ctest-vn4-63995100 passed 2026-05-20 15:37:46,268 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b752d36-8407-452f-ad22-0098f753e3d1 2026-05-20 15:37:46,278 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96157629-7b96-4c44-857a-c579556f5b22 2026-05-20 15:37:46,289 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96157629-7b96-4c44-857a-c579556f5b22 2026-05-20 15:37:46,297 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/67218e1c-54ca-4396-9eb0-f8bac96d4b44 2026-05-20 15:37:46,310 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26129168:ctest-vn4-63995100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26129168', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10048987855713682735', 'uuid-lslong': '12475534574754194385'}, 'enable': 'true', 'created': '2026-05-20T15:37:44', 'last-modified': '2026-05-20T15:37:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751753'} 2026-05-20 15:37:46,316 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 15:37:46,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63995100 passed 2026-05-20 15:37:46,316 - DEBUG - ====Verifying policy data for ctest-vn4-63995100 in API_Server ====== 2026-05-20 15:37:46,317 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-20 15:37:46,323 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea 2026-05-20 15:37:46,335 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecbbc06c-7c81-4db4-abdb-4c8704cdac64 2026-05-20 15:37:46,420 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b752d36-8407-452f-ad22-0098f753e3d1 2026-05-20 15:37:46,432 - DEBUG - ==>Verifying data for policy with id: 339501fa-06d3-4199-8eba-fdc5b8c51f12, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26129168', 'ctest-policy1-42378076'] 2026-05-20 15:37:46,432 - INFO - VN ctest-vn4-63995100 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-20 15:37:46,432 - DEBUG - Verifying the vn in opserver 2026-05-20 15:37:46,432 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26129168:ctest-vn4-63995100 virtual network link through opserver 10.0.0.50 2026-05-20 15:37:46,432 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-20 15:37:46,728 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-20 15:37:46,795 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26129168:ctest-vn4-63995100', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26129168:ctest-vn4-63995100?flat'} 2026-05-20 15:37:46,795 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26129168:ctest-vn4-63995100 is found in opserver 2026-05-20 15:37:46,804 - DEBUG - Do not have enough data to verify VN in agent 2026-05-20 15:37:46,808 - DEBUG - VRF ids for VN ctest-vn4-63995100: {} 2026-05-20 15:37:46,808 - DEBUG - ====Verifying data for ctest-policy1-42378076 in API_Server ====== 2026-05-20 15:37:46,808 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-20 15:37:46,815 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea 2026-05-20 15:37:46,827 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecbbc06c-7c81-4db4-abdb-4c8704cdac64 2026-05-20 15:37:46,900 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/339501fa-06d3-4199-8eba-fdc5b8c51f12 2026-05-20 15:37:46,910 - INFO - Verified policy ctest-policy1-42378076 in API Server, Result: True 2026-05-20 15:37:46,910 - INFO - Done with setup and verification, moving onto test .. 2026-05-20 15:37:46,918 - INFO - Deleting VN ctest-vn4-63995100 2026-05-20 15:37:47,040 - DEBUG - Response for deleting network () 2026-05-20 15:37:47,041 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96157629-7b96-4c44-857a-c579556f5b22 2026-05-20 15:37:47,046 - DEBUG - Response Code: 404 2026-05-20 15:37:47,047 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-20 15:37:47,054 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea 2026-05-20 15:37:47,106 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecbbc06c-7c81-4db4-abdb-4c8704cdac64 2026-05-20 15:37:47,177 - INFO - Validated that VN ctest-vn4-63995100 is not found in API Server 2026-05-20 15:37:47,189 - DEBUG - VN ctest-vn4-63995100 is not present in Agent 10.0.0.50 2026-05-20 15:37:47,189 - INFO - Validated that VN ctest-vn4-63995100 is not in any agent 2026-05-20 15:37:47,206 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63995100 info 2026-05-20 15:37:47,231 - INFO - Deleted policy ctest-policy1-42378076 2026-05-20 15:37:47,401 - DEBUG - policy ctest-policy1-42378076 is not found in API Server 2026-05-20 15:37:47,670 - DEBUG - No XMPP flaps were noticed during the test 2026-05-20 15:37:47,670 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-20 15:37:47,670 - INFO - -------------------------------------------------------------------------------- 2026-05-20 15:37:47,950 - DEBUG - No XMPP flaps were noticed during the test 2026-05-20 15:37:47,950 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-20 15:37:47,950 - INFO - -------------------------------------------------------------------------------- 2026-05-20 15:37:48,634 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26129168, ID : ecbbc06c-7c81-4db4-abdb-4c8704cdac64