2026-06-04 02:13:46,483 - INFO - Reading existing Domain with UUID 4bbd272f-f102-4983-a587-c5578191c0aa 2026-06-04 02:13:46,494 - INFO - Using existing domain ['admin_domain'](4bbd272f-f102-4983-a587-c5578191c0aa) 2026-06-04 02:13:46,696 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47611665 not found, creating it 2026-06-04 02:13:47,208 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47611665, ID : 9c8c957b-29e8-4a28-9261-a4dddebb3286 2026-06-04 02:13:48,935 - INFO - ================================================================================ 2026-06-04 02:13:48,935 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 02:13:49,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-06-04 02:13:49,338 - INFO - Initial checks done. Running the testcase now 2026-06-04 02:13:49,338 - INFO - 2026-06-04 02:13:49,338 - INFO - ================================================================================ 2026-06-04 02:13:49,339 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 02:13:49,339 - 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-06-04 02:13:49,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-06-04 02:13:49,722 - INFO - Initial checks done. Running the testcase now 2026-06-04 02:13:49,722 - INFO - 2026-06-04 02:13:50,104 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-47611665:ctest-vn4-53333397, 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-47611665:ctest-vn4-53333397, 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-47611665:ctest-vn4-53333397, 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-47611665:ctest-vn4-53333397, 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-06-04 02:13:50,821 - DEBUG - Response for create_network : {'network': {'id': 'cfa652cc-78b3-4d97-8309-6f3e2b828dac', 'name': 'ctest-vn4-53333397', 'tenant_id': '9c8c957b29e84a289261a4dddebb3286', 'project_id': '9c8c957b29e84a289261a4dddebb3286', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47611665', 'ctest-vn4-53333397'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-06-04 02:13:51,106 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5cb7fc5-85ed-4109-a645-a920de52cf48', 'name': '', 'tenant_id': '9c8c957b29e84a289261a4dddebb3286', 'network_id': 'cfa652cc-78b3-4d97-8309-6f3e2b828dac', 'ip_version': 4, 'cidr': '70.50.24.192/26', 'allocation_pools': [{'start': '70.50.24.194', 'end': '70.50.24.254'}], 'gateway_ip': '70.50.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-06-04T02:13:51.012354', 'updated_at': '2026-06-04T02:13:51.012354', 'dns_server_address': '70.50.24.194', 'tags': [], 'project_id': '9c8c957b29e84a289261a4dddebb3286'}} 2026-06-04 02:13:51,318 - DEBUG - Response for create_subnet : {'subnet': {'id': '24bea34d-b756-4528-a1ef-cba73a90e8d7', 'name': '', 'tenant_id': '9c8c957b29e84a289261a4dddebb3286', 'network_id': 'cfa652cc-78b3-4d97-8309-6f3e2b828dac', 'ip_version': 6, 'cidr': '2adb:d19a:f7a0:f936:4a6d:fae3::/96', 'allocation_pools': [{'start': '2adb:d19a:f7a0:f936:4a6d:fae3:0:2', 'end': '2adb:d19a:f7a0:f936:4a6d:fae3:ffff:fffe'}], 'gateway_ip': '2adb:d19a:f7a0:f936:4a6d:fae3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-06-04T02:13:51.207061', 'updated_at': '2026-06-04T02:13:51.207061', 'dns_server_address': '2adb:d19a:f7a0:f936:4a6d:fae3:0:2', 'tags': [], 'project_id': '9c8c957b29e84a289261a4dddebb3286'}} 2026-06-04 02:13:51,391 - INFO - Created VN ctest-vn4-53333397 2026-06-04 02:13:51,445 - DEBUG - VN ctest-vn4-53333397 UUID is cfa652cc-78b3-4d97-8309-6f3e2b828dac 2026-06-04 02:13:51,904 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfa652cc-78b3-4d97-8309-6f3e2b828dac', 'name': 'ctest-vn4-53333397', 'tenant_id': '9c8c957b29e84a289261a4dddebb3286', 'project_id': '9c8c957b29e84a289261a4dddebb3286', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5cb7fc5-85ed-4109-a645-a920de52cf48', '24bea34d-b756-4528-a1ef-cba73a90e8d7'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47611665', 'ctest-vn4-53333397'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47611665', 'ctest-policy1-03998161']], 'subnet_ipam': [{'subnet_cidr': '70.50.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2adb:d19a:f7a0:f936:4a6d:fae3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-06-04T02:13:50.745238', 'updated_at': '2026-06-04T02:13:51.221834'}} 2026-06-04 02:13:52,081 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-04 02:13:52,427 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-04 02:13:52,509 - DEBUG - Requesting: https://10.0.0.129:8082/domain/4bbd272f-f102-4983-a587-c5578191c0aa 2026-06-04 02:13:52,574 - DEBUG - Requesting: https://10.0.0.129:8082/project/9c8c957b-29e8-4a28-9261-a4dddebb3286 2026-06-04 02:13:52,658 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/cfa652cc-78b3-4d97-8309-6f3e2b828dac 2026-06-04 02:13:52,720 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/cfa652cc-78b3-4d97-8309-6f3e2b828dac 2026-06-04 02:13:52,779 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/b2a88050-b9fe-4d84-90ca-5d124adae2d6 2026-06-04 02:13:52,837 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/b2a88050-b9fe-4d84-90ca-5d124adae2d6 2026-06-04 02:13:52,890 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/8fc6d446-5f9a-4348-93fd-a6fcb4747211 2026-06-04 02:13:52,941 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 02:13:52,941 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/cfa652cc-78b3-4d97-8309-6f3e2b828dac 2026-06-04 02:13:52,999 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/b2a88050-b9fe-4d84-90ca-5d124adae2d6 2026-06-04 02:13:53,061 - INFO - Verified VN network id 11 for VN cfa652cc-78b3-4d97-8309-6f3e2b828dac 2026-06-04 02:13:53,062 - INFO - Verifications in API Server for VN ctest-vn4-53333397 passed 2026-06-04 02:13:53,062 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/cfa652cc-78b3-4d97-8309-6f3e2b828dac 2026-06-04 02:13:53,115 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/b2a88050-b9fe-4d84-90ca-5d124adae2d6 2026-06-04 02:13:53,169 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/b2a88050-b9fe-4d84-90ca-5d124adae2d6 2026-06-04 02:13:53,221 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/8fc6d446-5f9a-4348-93fd-a6fcb4747211 2026-06-04 02:13:53,330 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-47611665:ctest-vn4-53333397', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47611665', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14962737850136874391', 'uuid-lslong': '9442200406567587244'}, 'enable': 'true', 'created': '2026-06-04T02:13:50', 'last-modified': '2026-06-04T02:13:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449525'} 2026-06-04 02:13:53,383 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 02:13:53,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53333397 passed 2026-06-04 02:13:53,384 - DEBUG - ====Verifying policy data for ctest-vn4-53333397 in API_Server ====== 2026-06-04 02:13:53,385 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-04 02:13:53,438 - DEBUG - Requesting: https://10.0.0.129:8082/domain/4bbd272f-f102-4983-a587-c5578191c0aa 2026-06-04 02:13:53,498 - DEBUG - Requesting: https://10.0.0.129:8082/project/9c8c957b-29e8-4a28-9261-a4dddebb3286 2026-06-04 02:13:53,574 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/cfa652cc-78b3-4d97-8309-6f3e2b828dac 2026-06-04 02:13:53,631 - DEBUG - ==>Verifying data for policy with id: eefb9a70-67ee-44d3-87bf-eb75f8947064, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47611665', 'ctest-policy1-03998161'] 2026-06-04 02:13:53,631 - INFO - VN ctest-vn4-53333397 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-04 02:13:53,631 - DEBUG - Verifying the vn in opserver 2026-06-04 02:13:53,631 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-47611665:ctest-vn4-53333397 virtual network link through opserver 10.0.0.129 2026-06-04 02:13:53,631 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-04 02:13:53,994 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-04 02:13:54,129 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-47611665:ctest-vn4-53333397', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-47611665:ctest-vn4-53333397?flat'} 2026-06-04 02:13:54,129 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-47611665:ctest-vn4-53333397 is found in opserver 2026-06-04 02:13:54,229 - DEBUG - Do not have enough data to verify VN in agent 2026-06-04 02:13:54,278 - DEBUG - VRF ids for VN ctest-vn4-53333397: {} 2026-06-04 02:13:54,278 - DEBUG - ====Verifying data for ctest-policy1-03998161 in API_Server ====== 2026-06-04 02:13:54,278 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-04 02:13:54,337 - DEBUG - Requesting: https://10.0.0.129:8082/domain/4bbd272f-f102-4983-a587-c5578191c0aa 2026-06-04 02:13:54,394 - DEBUG - Requesting: https://10.0.0.129:8082/project/9c8c957b-29e8-4a28-9261-a4dddebb3286 2026-06-04 02:13:54,475 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/eefb9a70-67ee-44d3-87bf-eb75f8947064 2026-06-04 02:13:54,531 - INFO - Verified policy ctest-policy1-03998161 in API Server, Result: True 2026-06-04 02:13:54,531 - INFO - Done with setup and verification, moving onto test .. 2026-06-04 02:13:54,544 - INFO - Deleting VN ctest-vn4-53333397 2026-06-04 02:13:54,732 - DEBUG - Response for deleting network () 2026-06-04 02:13:54,733 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/b2a88050-b9fe-4d84-90ca-5d124adae2d6 2026-06-04 02:13:54,785 - DEBUG - Response Code: 404 2026-06-04 02:13:54,785 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-04 02:13:54,837 - DEBUG - Requesting: https://10.0.0.129:8082/domain/4bbd272f-f102-4983-a587-c5578191c0aa 2026-06-04 02:13:54,901 - DEBUG - Requesting: https://10.0.0.129:8082/project/9c8c957b-29e8-4a28-9261-a4dddebb3286 2026-06-04 02:13:54,977 - INFO - Validated that VN ctest-vn4-53333397 is not found in API Server 2026-06-04 02:13:55,077 - DEBUG - VN ctest-vn4-53333397 is not present in Agent 10.0.0.129 2026-06-04 02:13:55,077 - INFO - Validated that VN ctest-vn4-53333397 is not in any agent 2026-06-04 02:13:55,225 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53333397 info 2026-06-04 02:13:55,251 - INFO - Deleted policy ctest-policy1-03998161 2026-06-04 02:13:55,416 - DEBUG - policy ctest-policy1-03998161 is not found in API Server 2026-06-04 02:13:55,806 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 02:13:55,806 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-06-04 02:13:55,806 - INFO - -------------------------------------------------------------------------------- 2026-06-04 02:13:56,194 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 02:13:56,194 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-06-04 02:13:56,194 - INFO - -------------------------------------------------------------------------------- 2026-06-04 02:13:56,945 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47611665, ID : 9c8c957b-29e8-4a28-9261-a4dddebb3286