2026-07-29 10:46:20,516 - INFO - Domain Default found not creating 2026-07-29 10:46:20,715 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03060882 not found, creating it 2026-07-29 10:46:21,280 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03060882, ID : 9ee5e5d0-1699-4e3f-802c-36ac65146402 2026-07-29 10:46:23,197 - INFO - ================================================================================ 2026-07-29 10:46:23,197 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-29 10:46:23,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-07-29 10:46:23,475 - INFO - Initial checks done. Running the testcase now 2026-07-29 10:46:23,475 - INFO - 2026-07-29 10:46:23,475 - INFO - ================================================================================ 2026-07-29 10:46:23,475 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-29 10:46:23,475 - 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-07-29 10:46:23,777 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-07-29 10:46:23,777 - INFO - Initial checks done. Running the testcase now 2026-07-29 10:46:23,777 - INFO - 2026-07-29 10:46:24,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03060882:ctest-vn4-75975273, 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-03060882:ctest-vn4-75975273, 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-03060882:ctest-vn4-75975273, 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-03060882:ctest-vn4-75975273, 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-07-29 10:46:24,816 - DEBUG - Response for create_network : {'network': {'id': '3110419a-9f71-4608-b231-7a596feb1a37', 'name': 'ctest-vn4-75975273', 'tenant_id': '9ee5e5d016994e3f802c36ac65146402', 'project_id': '9ee5e5d016994e3f802c36ac65146402', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03060882', 'ctest-vn4-75975273'], 'port_security_enabled': True, 'description': ''}} 2026-07-29 10:46:25,077 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ccff47d-b28f-457e-a4e9-b3d15f72777b', 'name': '', 'tenant_id': '9ee5e5d016994e3f802c36ac65146402', 'network_id': '3110419a-9f71-4608-b231-7a596feb1a37', 'ip_version': 4, 'cidr': '188.61.49.128/26', 'allocation_pools': [{'start': '188.61.49.130', 'end': '188.61.49.190'}], 'gateway_ip': '188.61.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.61.49.130', 'tags': [], 'project_id': '9ee5e5d016994e3f802c36ac65146402'}} 2026-07-29 10:46:25,303 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4d157fa-8f16-4e9d-bfa5-6e488ec95dbb', 'name': '', 'tenant_id': '9ee5e5d016994e3f802c36ac65146402', 'network_id': '3110419a-9f71-4608-b231-7a596feb1a37', 'ip_version': 6, 'cidr': '2938:8c49:26c1:46d0:ec74:30b5::/96', 'allocation_pools': [{'start': '2938:8c49:26c1:46d0:ec74:30b5:0:2', 'end': '2938:8c49:26c1:46d0:ec74:30b5:ffff:fffe'}], 'gateway_ip': '2938:8c49:26c1:46d0:ec74:30b5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2938:8c49:26c1:46d0:ec74:30b5:0:2', 'tags': [], 'project_id': '9ee5e5d016994e3f802c36ac65146402'}} 2026-07-29 10:46:25,326 - INFO - Created VN ctest-vn4-75975273 2026-07-29 10:46:25,382 - DEBUG - VN ctest-vn4-75975273 UUID is 3110419a-9f71-4608-b231-7a596feb1a37 2026-07-29 10:46:25,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3110419a-9f71-4608-b231-7a596feb1a37', 'name': 'ctest-vn4-75975273', 'tenant_id': '9ee5e5d016994e3f802c36ac65146402', 'project_id': '9ee5e5d016994e3f802c36ac65146402', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ccff47d-b28f-457e-a4e9-b3d15f72777b', 'f4d157fa-8f16-4e9d-bfa5-6e488ec95dbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03060882', 'ctest-vn4-75975273'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03060882', 'ctest-policy1-23656473']], 'subnet_ipam': [{'subnet_cidr': '188.61.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2938:8c49:26c1:46d0:ec74:30b5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-29 10:46:25,806 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-07-29 10:46:26,210 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-07-29 10:46:26,246 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8e7cc33-f874-4504-92cd-6159ee390a1e 2026-07-29 10:46:26,262 - DEBUG - Requesting: http://10.0.0.185:8082/project/9ee5e5d0-1699-4e3f-802c-36ac65146402 2026-07-29 10:46:26,348 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3110419a-9f71-4608-b231-7a596feb1a37 2026-07-29 10:46:26,363 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3110419a-9f71-4608-b231-7a596feb1a37 2026-07-29 10:46:26,376 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/90b5e212-218e-41c4-a873-0fc0712a21a6 2026-07-29 10:46:26,386 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/90b5e212-218e-41c4-a873-0fc0712a21a6 2026-07-29 10:46:26,394 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3e53d83b-d0f6-4e96-a23d-10d3488f58a6 2026-07-29 10:46:26,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-29 10:46:26,403 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3110419a-9f71-4608-b231-7a596feb1a37 2026-07-29 10:46:26,419 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/90b5e212-218e-41c4-a873-0fc0712a21a6 2026-07-29 10:46:26,441 - INFO - Verified VN network id 11 for VN 3110419a-9f71-4608-b231-7a596feb1a37 2026-07-29 10:46:26,442 - INFO - Verifications in API Server for VN ctest-vn4-75975273 passed 2026-07-29 10:46:26,442 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3110419a-9f71-4608-b231-7a596feb1a37 2026-07-29 10:46:26,458 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/90b5e212-218e-41c4-a873-0fc0712a21a6 2026-07-29 10:46:26,468 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/90b5e212-218e-41c4-a873-0fc0712a21a6 2026-07-29 10:46:26,479 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3e53d83b-d0f6-4e96-a23d-10d3488f58a6 2026-07-29 10:46:26,497 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03060882:ctest-vn4-75975273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03060882', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3535397839841609224', 'uuid-lslong': '12840178537158351415'}, 'enable': 'true', 'created': '2026-07-29T10:46:24', 'last-modified': '2026-07-29T10:46:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897231'} 2026-07-29 10:46:26,507 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-29 10:46:26,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75975273 passed 2026-07-29 10:46:26,507 - DEBUG - ====Verifying policy data for ctest-vn4-75975273 in API_Server ====== 2026-07-29 10:46:26,507 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-07-29 10:46:26,515 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8e7cc33-f874-4504-92cd-6159ee390a1e 2026-07-29 10:46:26,532 - DEBUG - Requesting: http://10.0.0.185:8082/project/9ee5e5d0-1699-4e3f-802c-36ac65146402 2026-07-29 10:46:26,624 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3110419a-9f71-4608-b231-7a596feb1a37 2026-07-29 10:46:26,645 - DEBUG - ==>Verifying data for policy with id: cd9f542f-2222-41e3-8003-b5953e82c81a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03060882', 'ctest-policy1-23656473'] 2026-07-29 10:46:26,645 - INFO - VN ctest-vn4-75975273 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-29 10:46:26,645 - DEBUG - Verifying the vn in opserver 2026-07-29 10:46:26,645 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03060882:ctest-vn4-75975273 virtual network link through opserver 10.0.0.185 2026-07-29 10:46:26,646 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-07-29 10:46:27,023 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-07-29 10:46:27,086 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03060882:ctest-vn4-75975273', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03060882:ctest-vn4-75975273?flat'} 2026-07-29 10:46:27,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03060882:ctest-vn4-75975273 is found in opserver 2026-07-29 10:46:27,103 - DEBUG - Do not have enough data to verify VN in agent 2026-07-29 10:46:27,109 - DEBUG - VRF ids for VN ctest-vn4-75975273: {} 2026-07-29 10:46:27,110 - DEBUG - ====Verifying data for ctest-policy1-23656473 in API_Server ====== 2026-07-29 10:46:27,110 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-07-29 10:46:27,117 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8e7cc33-f874-4504-92cd-6159ee390a1e 2026-07-29 10:46:27,131 - DEBUG - Requesting: http://10.0.0.185:8082/project/9ee5e5d0-1699-4e3f-802c-36ac65146402 2026-07-29 10:46:27,217 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/cd9f542f-2222-41e3-8003-b5953e82c81a 2026-07-29 10:46:27,229 - INFO - Verified policy ctest-policy1-23656473 in API Server, Result: True 2026-07-29 10:46:27,229 - INFO - Done with setup and verification, moving onto test .. 2026-07-29 10:46:27,239 - INFO - Deleting VN ctest-vn4-75975273 2026-07-29 10:46:27,444 - DEBUG - Response for deleting network () 2026-07-29 10:46:27,444 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/90b5e212-218e-41c4-a873-0fc0712a21a6 2026-07-29 10:46:27,452 - DEBUG - Response Code: 404 2026-07-29 10:46:27,452 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-07-29 10:46:27,460 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8e7cc33-f874-4504-92cd-6159ee390a1e 2026-07-29 10:46:27,516 - DEBUG - Requesting: http://10.0.0.185:8082/project/9ee5e5d0-1699-4e3f-802c-36ac65146402 2026-07-29 10:46:27,599 - INFO - Validated that VN ctest-vn4-75975273 is not found in API Server 2026-07-29 10:46:27,612 - DEBUG - VN ctest-vn4-75975273 is not present in Agent 10.0.0.185 2026-07-29 10:46:27,612 - INFO - Validated that VN ctest-vn4-75975273 is not in any agent 2026-07-29 10:46:27,635 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75975273 info 2026-07-29 10:46:27,673 - INFO - Deleted policy ctest-policy1-23656473 2026-07-29 10:46:27,862 - DEBUG - policy ctest-policy1-23656473 is not found in API Server 2026-07-29 10:46:28,122 - DEBUG - No XMPP flaps were noticed during the test