2026-10-26 20:22:39,023 - INFO - Domain Default found not creating 2026-10-26 20:22:39,269 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42007008 not found, creating it 2026-10-26 20:22:39,859 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42007008, ID : 333dd285-3ec0-410a-bccb-b2fcb9ad0347 2026-10-26 20:22:41,950 - INFO - ================================================================================ 2026-10-26 20:22:41,950 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 20:22:42,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-10-26 20:22:42,225 - INFO - Initial checks done. Running the testcase now 2026-10-26 20:22:42,225 - INFO - 2026-10-26 20:22:42,225 - INFO - ================================================================================ 2026-10-26 20:22:42,225 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 20:22:42,225 - 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-10-26 20:22:42,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-10-26 20:22:42,526 - INFO - Initial checks done. Running the testcase now 2026-10-26 20:22:42,526 - INFO - 2026-10-26 20:22:43,016 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42007008:ctest-vn4-02771452, 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-42007008:ctest-vn4-02771452, 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-42007008:ctest-vn4-02771452, 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-42007008:ctest-vn4-02771452, 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-10-26 20:22:43,642 - DEBUG - Response for create_network : {'network': {'id': 'c34251a0-a1a4-48d2-a710-90b1ca8eaad4', 'name': 'ctest-vn4-02771452', 'tenant_id': '333dd2853ec0410abccbb2fcb9ad0347', 'project_id': '333dd2853ec0410abccbb2fcb9ad0347', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42007008', 'ctest-vn4-02771452'], 'port_security_enabled': True, 'description': ''}} 2026-10-26 20:22:43,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a54d078-0f99-42b4-b2bc-8ed6d12b1eee', 'name': '', 'tenant_id': '333dd2853ec0410abccbb2fcb9ad0347', 'network_id': 'c34251a0-a1a4-48d2-a710-90b1ca8eaad4', 'ip_version': 4, 'cidr': '189.136.150.128/26', 'allocation_pools': [{'start': '189.136.150.130', 'end': '189.136.150.190'}], 'gateway_ip': '189.136.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.136.150.130', 'tags': [], 'project_id': '333dd2853ec0410abccbb2fcb9ad0347'}} 2026-10-26 20:22:44,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed2c4c0d-e5f7-43f6-b32f-0f36de64006e', 'name': '', 'tenant_id': '333dd2853ec0410abccbb2fcb9ad0347', 'network_id': 'c34251a0-a1a4-48d2-a710-90b1ca8eaad4', 'ip_version': 6, 'cidr': '20a9:fe2d:c8fe:9c9:dec5:8d25::/96', 'allocation_pools': [{'start': '20a9:fe2d:c8fe:9c9:dec5:8d25:0:2', 'end': '20a9:fe2d:c8fe:9c9:dec5:8d25:ffff:fffe'}], 'gateway_ip': '20a9:fe2d:c8fe:9c9:dec5:8d25:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20a9:fe2d:c8fe:9c9:dec5:8d25:0:2', 'tags': [], 'project_id': '333dd2853ec0410abccbb2fcb9ad0347'}} 2026-10-26 20:22:44,169 - INFO - Created VN ctest-vn4-02771452 2026-10-26 20:22:44,226 - DEBUG - VN ctest-vn4-02771452 UUID is c34251a0-a1a4-48d2-a710-90b1ca8eaad4 2026-10-26 20:22:44,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c34251a0-a1a4-48d2-a710-90b1ca8eaad4', 'name': 'ctest-vn4-02771452', 'tenant_id': '333dd2853ec0410abccbb2fcb9ad0347', 'project_id': '333dd2853ec0410abccbb2fcb9ad0347', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0a54d078-0f99-42b4-b2bc-8ed6d12b1eee', 'ed2c4c0d-e5f7-43f6-b32f-0f36de64006e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42007008', 'ctest-vn4-02771452'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42007008', 'ctest-policy1-31695116']], 'subnet_ipam': [{'subnet_cidr': '189.136.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20a9:fe2d:c8fe:9c9:dec5:8d25::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-26 20:22:44,694 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-26 20:22:45,088 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-26 20:22:45,121 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1cedbaa2-1d61-4432-a176-487c53cd4c23 2026-10-26 20:22:45,136 - DEBUG - Requesting: http://10.0.0.185:8082/project/333dd285-3ec0-410a-bccb-b2fcb9ad0347 2026-10-26 20:22:45,233 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c34251a0-a1a4-48d2-a710-90b1ca8eaad4 2026-10-26 20:22:45,254 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c34251a0-a1a4-48d2-a710-90b1ca8eaad4 2026-10-26 20:22:45,270 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/b50a5b70-66d0-4e75-a3cf-a4013b5dd5b0 2026-10-26 20:22:45,281 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/b50a5b70-66d0-4e75-a3cf-a4013b5dd5b0 2026-10-26 20:22:45,292 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/0ebaa343-3fc9-427b-a38c-42a7058c01c6 2026-10-26 20:22:45,302 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 20:22:45,303 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c34251a0-a1a4-48d2-a710-90b1ca8eaad4 2026-10-26 20:22:45,317 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/b50a5b70-66d0-4e75-a3cf-a4013b5dd5b0 2026-10-26 20:22:45,341 - INFO - Verified VN network id 12 for VN c34251a0-a1a4-48d2-a710-90b1ca8eaad4 2026-10-26 20:22:45,341 - INFO - Verifications in API Server for VN ctest-vn4-02771452 passed 2026-10-26 20:22:45,341 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c34251a0-a1a4-48d2-a710-90b1ca8eaad4 2026-10-26 20:22:45,359 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/b50a5b70-66d0-4e75-a3cf-a4013b5dd5b0 2026-10-26 20:22:45,374 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/b50a5b70-66d0-4e75-a3cf-a4013b5dd5b0 2026-10-26 20:22:45,388 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/0ebaa343-3fc9-427b-a38c-42a7058c01c6 2026-10-26 20:22:45,407 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42007008:ctest-vn4-02771452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42007008', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14069897936207366354', 'uuid-lslong': '12038280897243294420'}, 'enable': 'true', 'created': '2026-10-26T20:22:43', 'last-modified': '2026-10-26T20:22:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948837'} 2026-10-26 20:22:45,417 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 20:22:45,417 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02771452 passed 2026-10-26 20:22:45,417 - DEBUG - ====Verifying policy data for ctest-vn4-02771452 in API_Server ====== 2026-10-26 20:22:45,417 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-26 20:22:45,425 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1cedbaa2-1d61-4432-a176-487c53cd4c23 2026-10-26 20:22:45,441 - DEBUG - Requesting: http://10.0.0.185:8082/project/333dd285-3ec0-410a-bccb-b2fcb9ad0347 2026-10-26 20:22:45,522 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/c34251a0-a1a4-48d2-a710-90b1ca8eaad4 2026-10-26 20:22:45,536 - DEBUG - ==>Verifying data for policy with id: 4c3ddcf3-f1fc-43ca-9f94-8d8027fdac30, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42007008', 'ctest-policy1-31695116'] 2026-10-26 20:22:45,537 - INFO - VN ctest-vn4-02771452 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-26 20:22:45,537 - DEBUG - Verifying the vn in opserver 2026-10-26 20:22:45,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42007008:ctest-vn4-02771452 virtual network link through opserver 10.0.0.185 2026-10-26 20:22:45,537 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-26 20:22:45,930 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-26 20:22:46,000 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42007008:ctest-vn4-02771452', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42007008:ctest-vn4-02771452?flat'} 2026-10-26 20:22:46,000 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42007008:ctest-vn4-02771452 is found in opserver 2026-10-26 20:22:46,014 - DEBUG - Do not have enough data to verify VN in agent 2026-10-26 20:22:46,023 - DEBUG - VRF ids for VN ctest-vn4-02771452: {} 2026-10-26 20:22:46,023 - DEBUG - ====Verifying data for ctest-policy1-31695116 in API_Server ====== 2026-10-26 20:22:46,023 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-26 20:22:46,033 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1cedbaa2-1d61-4432-a176-487c53cd4c23 2026-10-26 20:22:46,050 - DEBUG - Requesting: http://10.0.0.185:8082/project/333dd285-3ec0-410a-bccb-b2fcb9ad0347 2026-10-26 20:22:46,136 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/4c3ddcf3-f1fc-43ca-9f94-8d8027fdac30 2026-10-26 20:22:46,150 - INFO - Verified policy ctest-policy1-31695116 in API Server, Result: True 2026-10-26 20:22:46,150 - INFO - Done with setup and verification, moving onto test .. 2026-10-26 20:22:46,162 - INFO - Deleting VN ctest-vn4-02771452 2026-10-26 20:22:46,310 - DEBUG - Response for deleting network () 2026-10-26 20:22:46,310 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/b50a5b70-66d0-4e75-a3cf-a4013b5dd5b0 2026-10-26 20:22:46,316 - DEBUG - Response Code: 404 2026-10-26 20:22:46,317 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-26 20:22:46,324 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1cedbaa2-1d61-4432-a176-487c53cd4c23 2026-10-26 20:22:46,380 - DEBUG - Requesting: http://10.0.0.185:8082/project/333dd285-3ec0-410a-bccb-b2fcb9ad0347 2026-10-26 20:22:46,458 - INFO - Validated that VN ctest-vn4-02771452 is not found in API Server 2026-10-26 20:22:46,470 - DEBUG - VN ctest-vn4-02771452 is not present in Agent 10.0.0.185 2026-10-26 20:22:46,470 - INFO - Validated that VN ctest-vn4-02771452 is not in any agent 2026-10-26 20:22:46,489 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02771452 info 2026-10-26 20:22:46,527 - INFO - Deleted policy ctest-policy1-31695116 2026-10-26 20:22:46,713 - DEBUG - policy ctest-policy1-31695116 is not found in API Server 2026-10-26 20:22:46,988 - DEBUG - No XMPP flaps were noticed during the test