2026-02-23 02:17:33,067 - INFO - Domain Default found not creating 2026-02-23 02:17:33,221 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94186409 not found, creating it 2026-02-23 02:17:33,664 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94186409, ID : b5b87f66-5cff-4301-aab2-581333b8e740 2026-02-23 02:17:35,087 - INFO - ================================================================================ 2026-02-23 02:17:35,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 02:17:35,349 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.200': '0'}} with 2026-02-23 02:17:35,349 - INFO - Initial checks done. Running the testcase now 2026-02-23 02:17:35,349 - INFO - 2026-02-23 02:17:35,349 - INFO - ================================================================================ 2026-02-23 02:17:35,349 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 02:17:35,349 - 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-23 02:17:35,635 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.200': '0'}} with 2026-02-23 02:17:35,635 - INFO - Initial checks done. Running the testcase now 2026-02-23 02:17:35,635 - INFO - 2026-02-23 02:17:35,983 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94186409:ctest-vn4-83528286, 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-94186409:ctest-vn4-83528286, 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-94186409:ctest-vn4-83528286, 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-94186409:ctest-vn4-83528286, 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-23 02:17:36,483 - DEBUG - Response for create_network : {'network': {'id': '3ff4ce2d-4eea-411e-a5c8-8fab766028f4', 'name': 'ctest-vn4-83528286', 'tenant_id': 'b5b87f665cff4301aab2581333b8e740', 'project_id': 'b5b87f665cff4301aab2581333b8e740', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94186409', 'ctest-vn4-83528286'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:17:36,686 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a8667da-01fd-456f-a1d4-23cfd73353ad', 'name': '', 'tenant_id': 'b5b87f665cff4301aab2581333b8e740', 'network_id': '3ff4ce2d-4eea-411e-a5c8-8fab766028f4', 'ip_version': 4, 'cidr': '26.107.108.192/26', 'allocation_pools': [{'start': '26.107.108.194', 'end': '26.107.108.254'}], 'gateway_ip': '26.107.108.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.107.108.194', 'tags': [], 'project_id': 'b5b87f665cff4301aab2581333b8e740'}} 2026-02-23 02:17:36,826 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae43844d-7cfb-46d3-a54b-e97584cd6388', 'name': '', 'tenant_id': 'b5b87f665cff4301aab2581333b8e740', 'network_id': '3ff4ce2d-4eea-411e-a5c8-8fab766028f4', 'ip_version': 6, 'cidr': '338a:9b62:5592:9d01:609f:d02c::/96', 'allocation_pools': [{'start': '338a:9b62:5592:9d01:609f:d02c:0:2', 'end': '338a:9b62:5592:9d01:609f:d02c:ffff:fffe'}], 'gateway_ip': '338a:9b62:5592:9d01:609f:d02c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '338a:9b62:5592:9d01:609f:d02c:0:2', 'tags': [], 'project_id': 'b5b87f665cff4301aab2581333b8e740'}} 2026-02-23 02:17:36,844 - INFO - Created VN ctest-vn4-83528286 2026-02-23 02:17:36,894 - DEBUG - VN ctest-vn4-83528286 UUID is 3ff4ce2d-4eea-411e-a5c8-8fab766028f4 2026-02-23 02:17:37,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ff4ce2d-4eea-411e-a5c8-8fab766028f4', 'name': 'ctest-vn4-83528286', 'tenant_id': 'b5b87f665cff4301aab2581333b8e740', 'project_id': 'b5b87f665cff4301aab2581333b8e740', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a8667da-01fd-456f-a1d4-23cfd73353ad', 'ae43844d-7cfb-46d3-a54b-e97584cd6388'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94186409', 'ctest-vn4-83528286'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94186409', 'ctest-policy1-12091955']], 'subnet_ipam': [{'subnet_cidr': '26.107.108.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '338a:9b62:5592:9d01:609f:d02c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:17:37,238 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-23 02:17:37,533 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-23 02:17:37,564 - DEBUG - Requesting: http://10.0.0.130:8082/domain/908b7632-dc5d-40f0-9381-8b9bfa84b7c3 2026-02-23 02:17:37,575 - DEBUG - Requesting: http://10.0.0.130:8082/project/b5b87f66-5cff-4301-aab2-581333b8e740 2026-02-23 02:17:37,643 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3ff4ce2d-4eea-411e-a5c8-8fab766028f4 2026-02-23 02:17:37,655 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3ff4ce2d-4eea-411e-a5c8-8fab766028f4 2026-02-23 02:17:37,664 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/be2dd5d4-2945-43b7-80f3-977e14309002 2026-02-23 02:17:37,670 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/be2dd5d4-2945-43b7-80f3-977e14309002 2026-02-23 02:17:37,676 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/19480f62-6a2e-4fbe-bb95-b718a17df1ce 2026-02-23 02:17:37,682 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:17:37,682 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3ff4ce2d-4eea-411e-a5c8-8fab766028f4 2026-02-23 02:17:37,691 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/be2dd5d4-2945-43b7-80f3-977e14309002 2026-02-23 02:17:37,702 - INFO - Verified VN network id 11 for VN 3ff4ce2d-4eea-411e-a5c8-8fab766028f4 2026-02-23 02:17:37,702 - INFO - Verifications in API Server for VN ctest-vn4-83528286 passed 2026-02-23 02:17:37,702 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3ff4ce2d-4eea-411e-a5c8-8fab766028f4 2026-02-23 02:17:37,711 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/be2dd5d4-2945-43b7-80f3-977e14309002 2026-02-23 02:17:37,716 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/be2dd5d4-2945-43b7-80f3-977e14309002 2026-02-23 02:17:37,723 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/19480f62-6a2e-4fbe-bb95-b718a17df1ce 2026-02-23 02:17:37,732 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94186409:ctest-vn4-83528286', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94186409', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4608535012699685150', 'uuid-lslong': '11945955978188433652'}, 'enable': 'true', 'created': '2026-02-23T02:17:36', 'last-modified': '2026-02-23T02:17:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.670588'} 2026-02-23 02:17:37,738 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:17:37,738 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83528286 passed 2026-02-23 02:17:37,739 - DEBUG - ====Verifying policy data for ctest-vn4-83528286 in API_Server ====== 2026-02-23 02:17:37,739 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-23 02:17:37,744 - DEBUG - Requesting: http://10.0.0.130:8082/domain/908b7632-dc5d-40f0-9381-8b9bfa84b7c3 2026-02-23 02:17:37,753 - DEBUG - Requesting: http://10.0.0.130:8082/project/b5b87f66-5cff-4301-aab2-581333b8e740 2026-02-23 02:17:37,822 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3ff4ce2d-4eea-411e-a5c8-8fab766028f4 2026-02-23 02:17:37,830 - DEBUG - ==>Verifying data for policy with id: 00180fc3-b3a4-44b2-ae94-8ace15a1be8b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94186409', 'ctest-policy1-12091955'] 2026-02-23 02:17:37,830 - INFO - VN ctest-vn4-83528286 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 02:17:37,830 - DEBUG - Verifying the vn in opserver 2026-02-23 02:17:37,830 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94186409:ctest-vn4-83528286 virtual network link through opserver 10.0.0.130 2026-02-23 02:17:37,831 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-23 02:17:38,125 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-23 02:17:38,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94186409:ctest-vn4-83528286', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94186409:ctest-vn4-83528286?flat'} 2026-02-23 02:17:38,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94186409:ctest-vn4-83528286 is found in opserver 2026-02-23 02:17:38,192 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 02:17:38,196 - DEBUG - VRF ids for VN ctest-vn4-83528286: {} 2026-02-23 02:17:38,196 - DEBUG - ====Verifying data for ctest-policy1-12091955 in API_Server ====== 2026-02-23 02:17:38,197 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-23 02:17:38,201 - DEBUG - Requesting: http://10.0.0.130:8082/domain/908b7632-dc5d-40f0-9381-8b9bfa84b7c3 2026-02-23 02:17:38,218 - DEBUG - Requesting: http://10.0.0.130:8082/project/b5b87f66-5cff-4301-aab2-581333b8e740 2026-02-23 02:17:38,292 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/00180fc3-b3a4-44b2-ae94-8ace15a1be8b 2026-02-23 02:17:38,301 - INFO - Verified policy ctest-policy1-12091955 in API Server, Result: True 2026-02-23 02:17:38,302 - INFO - Done with setup and verification, moving onto test .. 2026-02-23 02:17:38,309 - INFO - Deleting VN ctest-vn4-83528286 2026-02-23 02:17:38,418 - DEBUG - Response for deleting network () 2026-02-23 02:17:38,418 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/be2dd5d4-2945-43b7-80f3-977e14309002 2026-02-23 02:17:38,422 - DEBUG - Response Code: 404 2026-02-23 02:17:38,422 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-23 02:17:38,426 - DEBUG - Requesting: http://10.0.0.130:8082/domain/908b7632-dc5d-40f0-9381-8b9bfa84b7c3 2026-02-23 02:17:38,481 - DEBUG - Requesting: http://10.0.0.130:8082/project/b5b87f66-5cff-4301-aab2-581333b8e740 2026-02-23 02:17:38,547 - INFO - Validated that VN ctest-vn4-83528286 is not found in API Server 2026-02-23 02:17:38,561 - DEBUG - VN ctest-vn4-83528286 is not present in Agent 10.0.0.130 2026-02-23 02:17:38,561 - INFO - Validated that VN ctest-vn4-83528286 is not in any agent 2026-02-23 02:17:38,572 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83528286 info 2026-02-23 02:17:38,594 - INFO - Deleted policy ctest-policy1-12091955 2026-02-23 02:17:38,754 - DEBUG - policy ctest-policy1-12091955 is not found in API Server 2026-02-23 02:17:39,009 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 02:17:39,009 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-23 02:17:39,009 - INFO - -------------------------------------------------------------------------------- 2026-02-23 02:17:39,306 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 02:17:39,306 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-23 02:17:39,306 - INFO - -------------------------------------------------------------------------------- 2026-02-23 02:17:39,989 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94186409, ID : b5b87f66-5cff-4301-aab2-581333b8e740