2026-02-09 01:48:28,986 - INFO - Reading existing Domain with UUID 1675f465-2475-43b6-ab5c-695718ce05c3 2026-02-09 01:48:28,996 - INFO - Using existing domain ['admin_domain'](1675f465-2475-43b6-ab5c-695718ce05c3) 2026-02-09 01:48:29,225 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08484552 not found, creating it 2026-02-09 01:48:29,756 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08484552, ID : 4ecac217-d1a8-497d-8726-cdc44de9c528 2026-02-09 01:48:31,587 - INFO - ================================================================================ 2026-02-09 01:48:31,587 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 01:48:31,978 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-02-09 01:48:31,978 - INFO - Initial checks done. Running the testcase now 2026-02-09 01:48:31,978 - INFO - 2026-02-09 01:48:31,978 - INFO - ================================================================================ 2026-02-09 01:48:31,978 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 01:48:31,978 - 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-09 01:48:32,366 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-02-09 01:48:32,366 - INFO - Initial checks done. Running the testcase now 2026-02-09 01:48:32,366 - INFO - 2026-02-09 01:48:32,740 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950, 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-09 01:48:33,453 - DEBUG - Response for create_network : {'network': {'id': '3d5b7905-c7e0-47c1-bad6-969283c24cfb', 'name': 'ctest-vn4-29582950', 'tenant_id': '4ecac217d1a8497d8726cdc44de9c528', 'project_id': '4ecac217d1a8497d8726cdc44de9c528', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08484552', 'ctest-vn4-29582950'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-02-09 01:48:33,698 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eca03b07-c8b3-4020-8e85-8d3f8225bd30', 'name': '', 'tenant_id': '4ecac217d1a8497d8726cdc44de9c528', 'network_id': '3d5b7905-c7e0-47c1-bad6-969283c24cfb', 'ip_version': 4, 'cidr': '44.3.131.0/26', 'allocation_pools': [{'start': '44.3.131.2', 'end': '44.3.131.62'}], 'gateway_ip': '44.3.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-09T01:48:33.601421', 'updated_at': '2026-02-09T01:48:33.601421', 'dns_server_address': '44.3.131.2', 'tags': [], 'project_id': '4ecac217d1a8497d8726cdc44de9c528'}} 2026-02-09 01:48:33,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '49e61dd4-69cf-47e1-87ee-7381d6d760ab', 'name': '', 'tenant_id': '4ecac217d1a8497d8726cdc44de9c528', 'network_id': '3d5b7905-c7e0-47c1-bad6-969283c24cfb', 'ip_version': 6, 'cidr': '2f4f:5d26:2b4:1bb:55e0:574b::/96', 'allocation_pools': [{'start': '2f4f:5d26:2b4:1bb:55e0:574b:0:2', 'end': '2f4f:5d26:2b4:1bb:55e0:574b:ffff:fffe'}], 'gateway_ip': '2f4f:5d26:2b4:1bb:55e0:574b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-09T01:48:33.849195', 'updated_at': '2026-02-09T01:48:33.849195', 'dns_server_address': '2f4f:5d26:2b4:1bb:55e0:574b:0:2', 'tags': [], 'project_id': '4ecac217d1a8497d8726cdc44de9c528'}} 2026-02-09 01:48:34,071 - INFO - Created VN ctest-vn4-29582950 2026-02-09 01:48:34,142 - DEBUG - VN ctest-vn4-29582950 UUID is 3d5b7905-c7e0-47c1-bad6-969283c24cfb 2026-02-09 01:48:35,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d5b7905-c7e0-47c1-bad6-969283c24cfb', 'name': 'ctest-vn4-29582950', 'tenant_id': '4ecac217d1a8497d8726cdc44de9c528', 'project_id': '4ecac217d1a8497d8726cdc44de9c528', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eca03b07-c8b3-4020-8e85-8d3f8225bd30', '49e61dd4-69cf-47e1-87ee-7381d6d760ab'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08484552', 'ctest-vn4-29582950'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08484552', 'ctest-policy1-32530316']], 'subnet_ipam': [{'subnet_cidr': '44.3.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f4f:5d26:2b4:1bb:55e0:574b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-09T01:48:33.374717', 'updated_at': '2026-02-09T01:48:33.870362'}} 2026-02-09 01:48:35,366 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-09 01:48:35,932 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-09 01:48:36,109 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1675f465-2475-43b6-ab5c-695718ce05c3 2026-02-09 01:48:36,222 - DEBUG - Requesting: https://10.0.0.241:8082/project/4ecac217-d1a8-497d-8726-cdc44de9c528 2026-02-09 01:48:36,377 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3d5b7905-c7e0-47c1-bad6-969283c24cfb 2026-02-09 01:48:36,481 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3d5b7905-c7e0-47c1-bad6-969283c24cfb 2026-02-09 01:48:36,574 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/0cdd023d-0556-4f99-b7ab-ceeca39d8202 2026-02-09 01:48:36,656 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/0cdd023d-0556-4f99-b7ab-ceeca39d8202 2026-02-09 01:48:36,732 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/2d6073d3-43db-468f-ab4f-135503be189e 2026-02-09 01:48:36,813 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 01:48:36,814 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3d5b7905-c7e0-47c1-bad6-969283c24cfb 2026-02-09 01:48:36,898 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/0cdd023d-0556-4f99-b7ab-ceeca39d8202 2026-02-09 01:48:36,976 - INFO - Verified VN network id 10 for VN 3d5b7905-c7e0-47c1-bad6-969283c24cfb 2026-02-09 01:48:36,976 - INFO - Verifications in API Server for VN ctest-vn4-29582950 passed 2026-02-09 01:48:36,977 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3d5b7905-c7e0-47c1-bad6-969283c24cfb 2026-02-09 01:48:37,047 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/0cdd023d-0556-4f99-b7ab-ceeca39d8202 2026-02-09 01:48:37,121 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/0cdd023d-0556-4f99-b7ab-ceeca39d8202 2026-02-09 01:48:37,178 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/2d6073d3-43db-468f-ab4f-135503be189e 2026-02-09 01:48:37,317 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08484552', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4421260524929435585', 'uuid-lslong': '13463113692090617083'}, 'enable': 'true', 'created': '2026-02-09T01:48:33', 'last-modified': '2026-02-09T01:48:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.337509'} 2026-02-09 01:48:37,435 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 01:48:37,435 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29582950 passed 2026-02-09 01:48:37,436 - DEBUG - ====Verifying policy data for ctest-vn4-29582950 in API_Server ====== 2026-02-09 01:48:37,436 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-09 01:48:37,526 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1675f465-2475-43b6-ab5c-695718ce05c3 2026-02-09 01:48:37,637 - DEBUG - Requesting: https://10.0.0.241:8082/project/4ecac217-d1a8-497d-8726-cdc44de9c528 2026-02-09 01:48:37,817 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3d5b7905-c7e0-47c1-bad6-969283c24cfb 2026-02-09 01:48:37,927 - DEBUG - ==>Verifying data for policy with id: 233f2095-740e-4b22-89d7-c534c103fd80, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08484552', 'ctest-policy1-32530316'] 2026-02-09 01:48:37,927 - INFO - VN ctest-vn4-29582950 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 01:48:37,927 - DEBUG - Verifying the vn in opserver 2026-02-09 01:48:37,928 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950 virtual network link through opserver 10.0.0.241 2026-02-09 01:48:37,928 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-09 01:48:38,406 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-09 01:48:38,605 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950?flat'} 2026-02-09 01:48:38,606 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-08484552:ctest-vn4-29582950 is found in opserver 2026-02-09 01:48:38,733 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 01:48:38,807 - DEBUG - VRF ids for VN ctest-vn4-29582950: {} 2026-02-09 01:48:38,809 - DEBUG - ====Verifying data for ctest-policy1-32530316 in API_Server ====== 2026-02-09 01:48:38,809 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-09 01:48:38,910 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1675f465-2475-43b6-ab5c-695718ce05c3 2026-02-09 01:48:39,030 - DEBUG - Requesting: https://10.0.0.241:8082/project/4ecac217-d1a8-497d-8726-cdc44de9c528 2026-02-09 01:48:39,289 - DEBUG - Requesting: https://10.0.0.241:8082/network-policy/233f2095-740e-4b22-89d7-c534c103fd80 2026-02-09 01:48:39,353 - INFO - Verified policy ctest-policy1-32530316 in API Server, Result: True 2026-02-09 01:48:39,353 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 01:48:39,374 - INFO - Deleting VN ctest-vn4-29582950 2026-02-09 01:48:39,883 - DEBUG - Response for deleting network () 2026-02-09 01:48:39,883 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/0cdd023d-0556-4f99-b7ab-ceeca39d8202 2026-02-09 01:48:40,053 - DEBUG - Response Code: 404 2026-02-09 01:48:40,053 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-09 01:48:40,133 - DEBUG - Requesting: https://10.0.0.241:8082/domain/1675f465-2475-43b6-ab5c-695718ce05c3 2026-02-09 01:48:40,241 - DEBUG - Requesting: https://10.0.0.241:8082/project/4ecac217-d1a8-497d-8726-cdc44de9c528 2026-02-09 01:48:40,389 - INFO - Validated that VN ctest-vn4-29582950 is not found in API Server 2026-02-09 01:48:40,505 - DEBUG - VN ctest-vn4-29582950 is not present in Agent 10.0.0.241 2026-02-09 01:48:40,505 - INFO - Validated that VN ctest-vn4-29582950 is not in any agent 2026-02-09 01:48:40,762 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29582950 info 2026-02-09 01:48:40,834 - INFO - Deleted policy ctest-policy1-32530316 2026-02-09 01:48:41,053 - DEBUG - policy ctest-policy1-32530316 is not found in API Server 2026-02-09 01:48:41,478 - DEBUG - No XMPP flaps were noticed during the test 2026-02-09 01:48:41,478 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-02-09 01:48:41,478 - INFO - -------------------------------------------------------------------------------- 2026-02-09 01:48:41,882 - DEBUG - No XMPP flaps were noticed during the test 2026-02-09 01:48:41,882 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-02-09 01:48:41,884 - INFO - -------------------------------------------------------------------------------- 2026-02-09 01:48:42,711 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08484552, ID : 4ecac217-d1a8-497d-8726-cdc44de9c528