2026-02-22 10:57:24,563 - INFO - Domain Default found not creating 2026-02-22 10:57:24,734 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33442390 not found, creating it 2026-02-22 10:57:25,185 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33442390, ID : 6038923d-7070-4519-b28c-255cf1627f5d 2026-02-22 10:57:26,681 - INFO - ================================================================================ 2026-02-22 10:57:26,681 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-22 10:57:26,945 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-22 10:57:26,945 - INFO - Initial checks done. Running the testcase now 2026-02-22 10:57:26,946 - INFO - 2026-02-22 10:57:26,946 - INFO - ================================================================================ 2026-02-22 10:57:26,946 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-22 10:57:26,946 - 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-02-22 10:57:27,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-22 10:57:27,231 - INFO - Initial checks done. Running the testcase now 2026-02-22 10:57:27,232 - INFO - 2026-02-22 10:57:27,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33442390:ctest-vn4-32151241, 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-33442390:ctest-vn4-32151241, 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-33442390:ctest-vn4-32151241, 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-33442390:ctest-vn4-32151241, 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-02-22 10:57:28,104 - DEBUG - Response for create_network : {'network': {'id': 'abb69315-594d-47a4-b4da-1c8a390cbe67', 'name': 'ctest-vn4-32151241', 'tenant_id': '6038923d70704519b28c255cf1627f5d', 'project_id': '6038923d70704519b28c255cf1627f5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33442390', 'ctest-vn4-32151241'], 'port_security_enabled': True, 'description': ''}} 2026-02-22 10:57:28,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '21adbff9-9991-48b2-8cce-5ac477d0a210', 'name': '', 'tenant_id': '6038923d70704519b28c255cf1627f5d', 'network_id': 'abb69315-594d-47a4-b4da-1c8a390cbe67', 'ip_version': 4, 'cidr': '154.98.212.0/26', 'allocation_pools': [{'start': '154.98.212.2', 'end': '154.98.212.62'}], 'gateway_ip': '154.98.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.98.212.2', 'tags': [], 'project_id': '6038923d70704519b28c255cf1627f5d'}} 2026-02-22 10:57:28,486 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c16af3e-c843-4c27-89ef-7fbefd6b2fef', 'name': '', 'tenant_id': '6038923d70704519b28c255cf1627f5d', 'network_id': 'abb69315-594d-47a4-b4da-1c8a390cbe67', 'ip_version': 6, 'cidr': '3fe8:8eed:8ea1:5c58:b2bf:28b4::/96', 'allocation_pools': [{'start': '3fe8:8eed:8ea1:5c58:b2bf:28b4:0:2', 'end': '3fe8:8eed:8ea1:5c58:b2bf:28b4:ffff:fffe'}], 'gateway_ip': '3fe8:8eed:8ea1:5c58:b2bf:28b4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fe8:8eed:8ea1:5c58:b2bf:28b4:0:2', 'tags': [], 'project_id': '6038923d70704519b28c255cf1627f5d'}} 2026-02-22 10:57:28,509 - INFO - Created VN ctest-vn4-32151241 2026-02-22 10:57:28,563 - DEBUG - VN ctest-vn4-32151241 UUID is abb69315-594d-47a4-b4da-1c8a390cbe67 2026-02-22 10:57:28,764 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abb69315-594d-47a4-b4da-1c8a390cbe67', 'name': 'ctest-vn4-32151241', 'tenant_id': '6038923d70704519b28c255cf1627f5d', 'project_id': '6038923d70704519b28c255cf1627f5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['21adbff9-9991-48b2-8cce-5ac477d0a210', '0c16af3e-c843-4c27-89ef-7fbefd6b2fef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33442390', 'ctest-vn4-32151241'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33442390', 'ctest-policy1-66788745']], 'subnet_ipam': [{'subnet_cidr': '154.98.212.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fe8:8eed:8ea1:5c58:b2bf:28b4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-22 10:57:28,926 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-22 10:57:29,218 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-22 10:57:29,250 - DEBUG - Requesting: http://10.0.0.50:8082/domain/99b185b4-6d4c-497b-a6a8-a2b58ca2ce81 2026-02-22 10:57:29,263 - DEBUG - Requesting: http://10.0.0.50:8082/project/6038923d-7070-4519-b28c-255cf1627f5d 2026-02-22 10:57:29,338 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb69315-594d-47a4-b4da-1c8a390cbe67 2026-02-22 10:57:29,351 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb69315-594d-47a4-b4da-1c8a390cbe67 2026-02-22 10:57:29,361 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929c3de4-56b0-46bf-974f-5390b00b25b6 2026-02-22 10:57:29,369 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929c3de4-56b0-46bf-974f-5390b00b25b6 2026-02-22 10:57:29,376 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d9c1a8f9-6586-4261-962b-554a8abe01d8 2026-02-22 10:57:29,384 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-22 10:57:29,384 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb69315-594d-47a4-b4da-1c8a390cbe67 2026-02-22 10:57:29,396 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929c3de4-56b0-46bf-974f-5390b00b25b6 2026-02-22 10:57:29,413 - INFO - Verified VN network id 12 for VN abb69315-594d-47a4-b4da-1c8a390cbe67 2026-02-22 10:57:29,413 - INFO - Verifications in API Server for VN ctest-vn4-32151241 passed 2026-02-22 10:57:29,413 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb69315-594d-47a4-b4da-1c8a390cbe67 2026-02-22 10:57:29,425 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929c3de4-56b0-46bf-974f-5390b00b25b6 2026-02-22 10:57:29,434 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929c3de4-56b0-46bf-974f-5390b00b25b6 2026-02-22 10:57:29,443 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d9c1a8f9-6586-4261-962b-554a8abe01d8 2026-02-22 10:57:29,457 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33442390:ctest-vn4-32151241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33442390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12373238746148849572', 'uuid-lslong': '13031759851738152551'}, 'enable': 'true', 'created': '2026-02-22T10:57:28', 'last-modified': '2026-02-22T10:57:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718329'} 2026-02-22 10:57:29,464 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-22 10:57:29,464 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32151241 passed 2026-02-22 10:57:29,464 - DEBUG - ====Verifying policy data for ctest-vn4-32151241 in API_Server ====== 2026-02-22 10:57:29,464 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-22 10:57:29,471 - DEBUG - Requesting: http://10.0.0.50:8082/domain/99b185b4-6d4c-497b-a6a8-a2b58ca2ce81 2026-02-22 10:57:29,484 - DEBUG - Requesting: http://10.0.0.50:8082/project/6038923d-7070-4519-b28c-255cf1627f5d 2026-02-22 10:57:29,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abb69315-594d-47a4-b4da-1c8a390cbe67 2026-02-22 10:57:29,568 - DEBUG - ==>Verifying data for policy with id: 9e4fc555-a453-4d80-a03f-67c8a44c20a9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33442390', 'ctest-policy1-66788745'] 2026-02-22 10:57:29,568 - INFO - VN ctest-vn4-32151241 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-22 10:57:29,568 - DEBUG - Verifying the vn in opserver 2026-02-22 10:57:29,568 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33442390:ctest-vn4-32151241 virtual network link through opserver 10.0.0.50 2026-02-22 10:57:29,568 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-22 10:57:29,866 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-22 10:57:29,932 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33442390:ctest-vn4-32151241', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33442390:ctest-vn4-32151241?flat'} 2026-02-22 10:57:29,932 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33442390:ctest-vn4-32151241 is found in opserver 2026-02-22 10:57:29,943 - DEBUG - Do not have enough data to verify VN in agent 2026-02-22 10:57:29,948 - DEBUG - VRF ids for VN ctest-vn4-32151241: {} 2026-02-22 10:57:29,948 - DEBUG - ====Verifying data for ctest-policy1-66788745 in API_Server ====== 2026-02-22 10:57:29,948 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-22 10:57:29,953 - DEBUG - Requesting: http://10.0.0.50:8082/domain/99b185b4-6d4c-497b-a6a8-a2b58ca2ce81 2026-02-22 10:57:29,964 - DEBUG - Requesting: http://10.0.0.50:8082/project/6038923d-7070-4519-b28c-255cf1627f5d 2026-02-22 10:57:30,040 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/9e4fc555-a453-4d80-a03f-67c8a44c20a9 2026-02-22 10:57:30,051 - INFO - Verified policy ctest-policy1-66788745 in API Server, Result: True 2026-02-22 10:57:30,051 - INFO - Done with setup and verification, moving onto test .. 2026-02-22 10:57:30,060 - INFO - Deleting VN ctest-vn4-32151241 2026-02-22 10:57:30,166 - DEBUG - Response for deleting network () 2026-02-22 10:57:30,166 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929c3de4-56b0-46bf-974f-5390b00b25b6 2026-02-22 10:57:30,171 - DEBUG - Response Code: 404 2026-02-22 10:57:30,171 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-22 10:57:30,176 - DEBUG - Requesting: http://10.0.0.50:8082/domain/99b185b4-6d4c-497b-a6a8-a2b58ca2ce81 2026-02-22 10:57:30,227 - DEBUG - Requesting: http://10.0.0.50:8082/project/6038923d-7070-4519-b28c-255cf1627f5d 2026-02-22 10:57:30,296 - INFO - Validated that VN ctest-vn4-32151241 is not found in API Server 2026-02-22 10:57:30,305 - DEBUG - VN ctest-vn4-32151241 is not present in Agent 10.0.0.50 2026-02-22 10:57:30,305 - INFO - Validated that VN ctest-vn4-32151241 is not in any agent 2026-02-22 10:57:30,319 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32151241 info 2026-02-22 10:57:30,342 - INFO - Deleted policy ctest-policy1-66788745 2026-02-22 10:57:30,506 - DEBUG - policy ctest-policy1-66788745 is not found in API Server 2026-02-22 10:57:30,760 - DEBUG - No XMPP flaps were noticed during the test 2026-02-22 10:57:30,760 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-22 10:57:30,760 - INFO - -------------------------------------------------------------------------------- 2026-02-22 10:57:31,055 - DEBUG - No XMPP flaps were noticed during the test 2026-02-22 10:57:31,055 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-22 10:57:31,055 - INFO - -------------------------------------------------------------------------------- 2026-02-22 10:57:31,749 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33442390, ID : 6038923d-7070-4519-b28c-255cf1627f5d