2026-09-29 18:09:40,082 - INFO - Domain Default found not creating 2026-09-29 18:09:40,312 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34556989 not found, creating it 2026-09-29 18:09:40,884 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34556989, ID : 4ef3fb04-bc8c-4cfe-a188-d0f32b6006be 2026-09-29 18:09:42,831 - INFO - ================================================================================ 2026-09-29 18:09:42,831 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 18:09:43,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-09-29 18:09:43,111 - INFO - Initial checks done. Running the testcase now 2026-09-29 18:09:43,111 - INFO - 2026-09-29 18:09:43,111 - INFO - ================================================================================ 2026-09-29 18:09:43,111 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 18:09:43,112 - 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-09-29 18:09:43,408 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-09-29 18:09:43,408 - INFO - Initial checks done. Running the testcase now 2026-09-29 18:09:43,409 - INFO - 2026-09-29 18:09:43,884 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34556989:ctest-vn4-79800530, 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-34556989:ctest-vn4-79800530, 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-34556989:ctest-vn4-79800530, 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-34556989:ctest-vn4-79800530, 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-09-29 18:09:44,517 - DEBUG - Response for create_network : {'network': {'id': '01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d', 'name': 'ctest-vn4-79800530', 'tenant_id': '4ef3fb04bc8c4cfea188d0f32b6006be', 'project_id': '4ef3fb04bc8c4cfea188d0f32b6006be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34556989', 'ctest-vn4-79800530'], 'port_security_enabled': True, 'description': ''}} 2026-09-29 18:09:44,754 - DEBUG - Response for create_subnet : {'subnet': {'id': '8715eca0-1772-43f0-8fe2-688edc3ff2a0', 'name': '', 'tenant_id': '4ef3fb04bc8c4cfea188d0f32b6006be', 'network_id': '01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d', 'ip_version': 4, 'cidr': '216.125.230.0/26', 'allocation_pools': [{'start': '216.125.230.2', 'end': '216.125.230.62'}], 'gateway_ip': '216.125.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.125.230.2', 'tags': [], 'project_id': '4ef3fb04bc8c4cfea188d0f32b6006be'}} 2026-09-29 18:09:45,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b9ddd85-6a32-4c84-9504-43a596aabd1a', 'name': '', 'tenant_id': '4ef3fb04bc8c4cfea188d0f32b6006be', 'network_id': '01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d', 'ip_version': 6, 'cidr': '2848:ddf6:a6f4:cec5:8948:4ed7::/96', 'allocation_pools': [{'start': '2848:ddf6:a6f4:cec5:8948:4ed7:0:2', 'end': '2848:ddf6:a6f4:cec5:8948:4ed7:ffff:fffe'}], 'gateway_ip': '2848:ddf6:a6f4:cec5:8948:4ed7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2848:ddf6:a6f4:cec5:8948:4ed7:0:2', 'tags': [], 'project_id': '4ef3fb04bc8c4cfea188d0f32b6006be'}} 2026-09-29 18:09:45,043 - INFO - Created VN ctest-vn4-79800530 2026-09-29 18:09:45,102 - DEBUG - VN ctest-vn4-79800530 UUID is 01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d 2026-09-29 18:09:45,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d', 'name': 'ctest-vn4-79800530', 'tenant_id': '4ef3fb04bc8c4cfea188d0f32b6006be', 'project_id': '4ef3fb04bc8c4cfea188d0f32b6006be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8715eca0-1772-43f0-8fe2-688edc3ff2a0', '3b9ddd85-6a32-4c84-9504-43a596aabd1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34556989', 'ctest-vn4-79800530'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34556989', 'ctest-policy1-86692258']], 'subnet_ipam': [{'subnet_cidr': '216.125.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2848:ddf6:a6f4:cec5:8948:4ed7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-29 18:09:45,562 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 18:09:45,936 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 18:09:45,972 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1 2026-09-29 18:09:45,989 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ef3fb04-bc8c-4cfe-a188-d0f32b6006be 2026-09-29 18:09:46,082 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d 2026-09-29 18:09:46,103 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d 2026-09-29 18:09:46,117 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86c6c91b-0a36-4563-abaf-86f057d7d45e 2026-09-29 18:09:46,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86c6c91b-0a36-4563-abaf-86f057d7d45e 2026-09-29 18:09:46,137 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2189ede0-4098-4f89-807f-4f790a805011 2026-09-29 18:09:46,147 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 18:09:46,147 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d 2026-09-29 18:09:46,162 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86c6c91b-0a36-4563-abaf-86f057d7d45e 2026-09-29 18:09:46,190 - INFO - Verified VN network id 10 for VN 01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d 2026-09-29 18:09:46,190 - INFO - Verifications in API Server for VN ctest-vn4-79800530 passed 2026-09-29 18:09:46,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d 2026-09-29 18:09:46,205 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86c6c91b-0a36-4563-abaf-86f057d7d45e 2026-09-29 18:09:46,216 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86c6c91b-0a36-4563-abaf-86f057d7d45e 2026-09-29 18:09:46,227 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2189ede0-4098-4f89-807f-4f790a805011 2026-09-29 18:09:46,247 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34556989:ctest-vn4-79800530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34556989', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '125747005076556991', 'uuid-lslong': '10715790518282214477'}, 'enable': 'true', 'created': '2026-09-29T18:09:44', 'last-modified': '2026-09-29T18:09:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913309'} 2026-09-29 18:09:46,258 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 18:09:46,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79800530 passed 2026-09-29 18:09:46,259 - DEBUG - ====Verifying policy data for ctest-vn4-79800530 in API_Server ====== 2026-09-29 18:09:46,259 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 18:09:46,266 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1 2026-09-29 18:09:46,281 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ef3fb04-bc8c-4cfe-a188-d0f32b6006be 2026-09-29 18:09:46,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01bebe3c-2128-4cbf-94b6-22b3a1b5dc4d 2026-09-29 18:09:46,383 - DEBUG - ==>Verifying data for policy with id: 4f66ad3e-6332-4b74-ad16-46d1a59dfefb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34556989', 'ctest-policy1-86692258'] 2026-09-29 18:09:46,383 - INFO - VN ctest-vn4-79800530 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-29 18:09:46,383 - DEBUG - Verifying the vn in opserver 2026-09-29 18:09:46,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34556989:ctest-vn4-79800530 virtual network link through opserver 10.0.0.38 2026-09-29 18:09:46,383 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-29 18:09:46,768 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-29 18:09:46,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34556989:ctest-vn4-79800530', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34556989:ctest-vn4-79800530?flat'} 2026-09-29 18:09:46,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34556989:ctest-vn4-79800530 is found in opserver 2026-09-29 18:09:46,865 - DEBUG - Do not have enough data to verify VN in agent 2026-09-29 18:09:46,872 - DEBUG - VRF ids for VN ctest-vn4-79800530: {} 2026-09-29 18:09:46,873 - DEBUG - ====Verifying data for ctest-policy1-86692258 in API_Server ====== 2026-09-29 18:09:46,873 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 18:09:46,880 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1 2026-09-29 18:09:46,895 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ef3fb04-bc8c-4cfe-a188-d0f32b6006be 2026-09-29 18:09:46,984 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4f66ad3e-6332-4b74-ad16-46d1a59dfefb 2026-09-29 18:09:47,002 - INFO - Verified policy ctest-policy1-86692258 in API Server, Result: True 2026-09-29 18:09:47,002 - INFO - Done with setup and verification, moving onto test .. 2026-09-29 18:09:47,022 - INFO - Deleting VN ctest-vn4-79800530 2026-09-29 18:09:47,217 - DEBUG - Response for deleting network () 2026-09-29 18:09:47,217 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86c6c91b-0a36-4563-abaf-86f057d7d45e 2026-09-29 18:09:47,224 - DEBUG - Response Code: 404 2026-09-29 18:09:47,225 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 18:09:47,233 - DEBUG - Requesting: http://10.0.0.38:8082/domain/54b4b3e0-0773-4a4e-aeaa-13957d50c5a1 2026-09-29 18:09:47,298 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ef3fb04-bc8c-4cfe-a188-d0f32b6006be 2026-09-29 18:09:47,390 - INFO - Validated that VN ctest-vn4-79800530 is not found in API Server 2026-09-29 18:09:47,413 - DEBUG - VN ctest-vn4-79800530 is not present in Agent 10.0.0.38 2026-09-29 18:09:47,414 - INFO - Validated that VN ctest-vn4-79800530 is not in any agent 2026-09-29 18:09:47,438 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79800530 info 2026-09-29 18:09:47,482 - INFO - Deleted policy ctest-policy1-86692258 2026-09-29 18:09:47,669 - DEBUG - policy ctest-policy1-86692258 is not found in API Server 2026-09-29 18:09:47,951 - DEBUG - No XMPP flaps were noticed during the test 2026-09-29 18:09:47,951 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-29 18:09:47,951 - INFO - -------------------------------------------------------------------------------- 2026-09-29 18:09:48,264 - DEBUG - No XMPP flaps were noticed during the test 2026-09-29 18:09:48,265 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-09-29 18:09:48,265 - INFO - -------------------------------------------------------------------------------- 2026-09-29 18:09:49,172 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-34556989, ID : 4ef3fb04-bc8c-4cfe-a188-d0f32b6006be