2026-08-24 10:52:38,844 - INFO - Domain Default found not creating 2026-08-24 10:52:39,027 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95142233 not found, creating it 2026-08-24 10:52:39,567 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95142233, ID : fde604b8-c86d-446a-bac4-9bdaf40f64d2 2026-08-24 10:52:41,144 - INFO - ================================================================================ 2026-08-24 10:52:41,144 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 10:52:41,410 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-08-24 10:52:41,410 - INFO - Initial checks done. Running the testcase now 2026-08-24 10:52:41,410 - INFO - 2026-08-24 10:52:41,410 - INFO - ================================================================================ 2026-08-24 10:52:41,410 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 10:52:41,410 - 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-08-24 10:52:41,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-08-24 10:52:41,703 - INFO - Initial checks done. Running the testcase now 2026-08-24 10:52:41,703 - INFO - 2026-08-24 10:52:42,084 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95142233:ctest-vn4-65215020, 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-95142233:ctest-vn4-65215020, 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-95142233:ctest-vn4-65215020, 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-95142233:ctest-vn4-65215020, 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-08-24 10:52:42,618 - DEBUG - Response for create_network : {'network': {'id': '8b70e125-2a22-4715-9464-01d8891b5c16', 'name': 'ctest-vn4-65215020', 'tenant_id': 'fde604b8c86d446abac49bdaf40f64d2', 'project_id': 'fde604b8c86d446abac49bdaf40f64d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95142233', 'ctest-vn4-65215020'], 'port_security_enabled': True, 'description': ''}} 2026-08-24 10:52:42,822 - DEBUG - Response for create_subnet : {'subnet': {'id': '962fcfbf-f065-43da-9cc1-39b6aa7b3457', 'name': '', 'tenant_id': 'fde604b8c86d446abac49bdaf40f64d2', 'network_id': '8b70e125-2a22-4715-9464-01d8891b5c16', 'ip_version': 4, 'cidr': '91.148.187.128/26', 'allocation_pools': [{'start': '91.148.187.130', 'end': '91.148.187.190'}], 'gateway_ip': '91.148.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.148.187.130', 'tags': [], 'project_id': 'fde604b8c86d446abac49bdaf40f64d2'}} 2026-08-24 10:52:42,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f07f0b8d-8b1d-4c14-ae3f-6b79226606e7', 'name': '', 'tenant_id': 'fde604b8c86d446abac49bdaf40f64d2', 'network_id': '8b70e125-2a22-4715-9464-01d8891b5c16', 'ip_version': 6, 'cidr': '3a4c:90a:6ea:75:6b8c:19c8::/96', 'allocation_pools': [{'start': '3a4c:90a:6ea:75:6b8c:19c8:0:2', 'end': '3a4c:90a:6ea:75:6b8c:19c8:ffff:fffe'}], 'gateway_ip': '3a4c:90a:6ea:75:6b8c:19c8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a4c:90a:6ea:75:6b8c:19c8:0:2', 'tags': [], 'project_id': 'fde604b8c86d446abac49bdaf40f64d2'}} 2026-08-24 10:52:42,998 - INFO - Created VN ctest-vn4-65215020 2026-08-24 10:52:43,051 - DEBUG - VN ctest-vn4-65215020 UUID is 8b70e125-2a22-4715-9464-01d8891b5c16 2026-08-24 10:52:43,276 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b70e125-2a22-4715-9464-01d8891b5c16', 'name': 'ctest-vn4-65215020', 'tenant_id': 'fde604b8c86d446abac49bdaf40f64d2', 'project_id': 'fde604b8c86d446abac49bdaf40f64d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['962fcfbf-f065-43da-9cc1-39b6aa7b3457', 'f07f0b8d-8b1d-4c14-ae3f-6b79226606e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95142233', 'ctest-vn4-65215020'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95142233', 'ctest-policy1-59646492']], 'subnet_ipam': [{'subnet_cidr': '91.148.187.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a4c:90a:6ea:75:6b8c:19c8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-24 10:52:43,439 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-24 10:52:43,766 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-24 10:52:43,798 - DEBUG - Requesting: http://10.0.0.185:8082/domain/afc535ab-9491-4541-892e-998f7507e3d9 2026-08-24 10:52:43,814 - DEBUG - Requesting: http://10.0.0.185:8082/project/fde604b8-c86d-446a-bac4-9bdaf40f64d2 2026-08-24 10:52:43,899 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8b70e125-2a22-4715-9464-01d8891b5c16 2026-08-24 10:52:43,913 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8b70e125-2a22-4715-9464-01d8891b5c16 2026-08-24 10:52:43,925 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ca5c6e9-5ccf-4667-9afa-5a7f8d847bf2 2026-08-24 10:52:43,935 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ca5c6e9-5ccf-4667-9afa-5a7f8d847bf2 2026-08-24 10:52:43,943 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/5ee4e562-e386-47c5-ad9e-6294390cd5ca 2026-08-24 10:52:43,950 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 10:52:43,950 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8b70e125-2a22-4715-9464-01d8891b5c16 2026-08-24 10:52:43,960 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ca5c6e9-5ccf-4667-9afa-5a7f8d847bf2 2026-08-24 10:52:43,977 - INFO - Verified VN network id 11 for VN 8b70e125-2a22-4715-9464-01d8891b5c16 2026-08-24 10:52:43,977 - INFO - Verifications in API Server for VN ctest-vn4-65215020 passed 2026-08-24 10:52:43,977 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8b70e125-2a22-4715-9464-01d8891b5c16 2026-08-24 10:52:43,987 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ca5c6e9-5ccf-4667-9afa-5a7f8d847bf2 2026-08-24 10:52:43,996 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ca5c6e9-5ccf-4667-9afa-5a7f8d847bf2 2026-08-24 10:52:44,005 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/5ee4e562-e386-47c5-ad9e-6294390cd5ca 2026-08-24 10:52:44,021 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95142233:ctest-vn4-65215020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95142233', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10047778318400505621', 'uuid-lslong': '10692673444809235478'}, 'enable': 'true', 'created': '2026-08-24T10:52:42', 'last-modified': '2026-08-24T10:52:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.787961'} 2026-08-24 10:52:44,028 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 10:52:44,028 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65215020 passed 2026-08-24 10:52:44,028 - DEBUG - ====Verifying policy data for ctest-vn4-65215020 in API_Server ====== 2026-08-24 10:52:44,028 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-24 10:52:44,035 - DEBUG - Requesting: http://10.0.0.185:8082/domain/afc535ab-9491-4541-892e-998f7507e3d9 2026-08-24 10:52:44,045 - DEBUG - Requesting: http://10.0.0.185:8082/project/fde604b8-c86d-446a-bac4-9bdaf40f64d2 2026-08-24 10:52:44,120 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8b70e125-2a22-4715-9464-01d8891b5c16 2026-08-24 10:52:44,131 - DEBUG - ==>Verifying data for policy with id: b0b93a96-169a-480c-b3b3-137ec938867f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95142233', 'ctest-policy1-59646492'] 2026-08-24 10:52:44,131 - INFO - VN ctest-vn4-65215020 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-24 10:52:44,131 - DEBUG - Verifying the vn in opserver 2026-08-24 10:52:44,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95142233:ctest-vn4-65215020 virtual network link through opserver 10.0.0.185 2026-08-24 10:52:44,131 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-08-24 10:52:44,461 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-08-24 10:52:44,521 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95142233:ctest-vn4-65215020', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95142233:ctest-vn4-65215020?flat'} 2026-08-24 10:52:44,521 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95142233:ctest-vn4-65215020 is found in opserver 2026-08-24 10:52:44,531 - DEBUG - Do not have enough data to verify VN in agent 2026-08-24 10:52:44,536 - DEBUG - VRF ids for VN ctest-vn4-65215020: {} 2026-08-24 10:52:44,536 - DEBUG - ====Verifying data for ctest-policy1-59646492 in API_Server ====== 2026-08-24 10:52:44,536 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-24 10:52:44,544 - DEBUG - Requesting: http://10.0.0.185:8082/domain/afc535ab-9491-4541-892e-998f7507e3d9 2026-08-24 10:52:44,555 - DEBUG - Requesting: http://10.0.0.185:8082/project/fde604b8-c86d-446a-bac4-9bdaf40f64d2 2026-08-24 10:52:44,625 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/b0b93a96-169a-480c-b3b3-137ec938867f 2026-08-24 10:52:44,637 - INFO - Verified policy ctest-policy1-59646492 in API Server, Result: True 2026-08-24 10:52:44,637 - INFO - Done with setup and verification, moving onto test .. 2026-08-24 10:52:44,646 - INFO - Deleting VN ctest-vn4-65215020 2026-08-24 10:52:44,768 - DEBUG - Response for deleting network () 2026-08-24 10:52:44,768 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6ca5c6e9-5ccf-4667-9afa-5a7f8d847bf2 2026-08-24 10:52:44,774 - DEBUG - Response Code: 404 2026-08-24 10:52:44,774 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-24 10:52:44,780 - DEBUG - Requesting: http://10.0.0.185:8082/domain/afc535ab-9491-4541-892e-998f7507e3d9 2026-08-24 10:52:44,832 - DEBUG - Requesting: http://10.0.0.185:8082/project/fde604b8-c86d-446a-bac4-9bdaf40f64d2 2026-08-24 10:52:44,912 - INFO - Validated that VN ctest-vn4-65215020 is not found in API Server 2026-08-24 10:52:44,922 - DEBUG - VN ctest-vn4-65215020 is not present in Agent 10.0.0.185 2026-08-24 10:52:44,922 - INFO - Validated that VN ctest-vn4-65215020 is not in any agent 2026-08-24 10:52:44,938 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65215020 info 2026-08-24 10:52:44,963 - INFO - Deleted policy ctest-policy1-59646492 2026-08-24 10:52:45,138 - DEBUG - policy ctest-policy1-59646492 is not found in API Server 2026-08-24 10:52:45,407 - DEBUG - No XMPP flaps were noticed during the test 2026-08-24 10:52:45,407 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-24 10:52:45,407 - INFO - -------------------------------------------------------------------------------- 2026-08-24 10:52:45,711 - DEBUG - No XMPP flaps were noticed during the test 2026-08-24 10:52:45,711 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-24 10:52:45,711 - INFO - -------------------------------------------------------------------------------- 2026-08-24 10:52:46,464 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95142233, ID : fde604b8-c86d-446a-bac4-9bdaf40f64d2