2026-02-25 17:29:36,566 - INFO - Domain Default found not creating 2026-02-25 17:29:36,731 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11688277 not found, creating it 2026-02-25 17:29:37,307 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11688277, ID : 41c9dc6e-6414-43e3-904e-ba6f43239a72 2026-02-25 17:29:38,787 - INFO - ================================================================================ 2026-02-25 17:29:38,788 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-25 17:29:39,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-02-25 17:29:39,042 - INFO - Initial checks done. Running the testcase now 2026-02-25 17:29:39,042 - INFO - 2026-02-25 17:29:39,042 - INFO - ================================================================================ 2026-02-25 17:29:39,042 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-25 17:29:39,042 - 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-25 17:29:39,329 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-02-25 17:29:39,329 - INFO - Initial checks done. Running the testcase now 2026-02-25 17:29:39,329 - INFO - 2026-02-25 17:29:39,678 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11688277:ctest-vn4-55738012, 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-11688277:ctest-vn4-55738012, 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-11688277:ctest-vn4-55738012, 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-11688277:ctest-vn4-55738012, 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-25 17:29:40,188 - DEBUG - Response for create_network : {'network': {'id': '330b53e6-380c-47ff-ad59-ed6c3746c7b5', 'name': 'ctest-vn4-55738012', 'tenant_id': '41c9dc6e641443e3904eba6f43239a72', 'project_id': '41c9dc6e641443e3904eba6f43239a72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11688277', 'ctest-vn4-55738012'], 'port_security_enabled': True, 'description': ''}} 2026-02-25 17:29:40,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ea9807f-7e4c-4588-b92d-7cb09f9ff14c', 'name': '', 'tenant_id': '41c9dc6e641443e3904eba6f43239a72', 'network_id': '330b53e6-380c-47ff-ad59-ed6c3746c7b5', 'ip_version': 4, 'cidr': '200.108.248.192/26', 'allocation_pools': [{'start': '200.108.248.194', 'end': '200.108.248.254'}], 'gateway_ip': '200.108.248.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.108.248.194', 'tags': [], 'project_id': '41c9dc6e641443e3904eba6f43239a72'}} 2026-02-25 17:29:40,545 - DEBUG - Response for create_subnet : {'subnet': {'id': '57d14f4e-b513-47bf-92f9-89f598abfd1b', 'name': '', 'tenant_id': '41c9dc6e641443e3904eba6f43239a72', 'network_id': '330b53e6-380c-47ff-ad59-ed6c3746c7b5', 'ip_version': 6, 'cidr': '3ad6:35b3:d002:28bb:e0f0:35d0::/96', 'allocation_pools': [{'start': '3ad6:35b3:d002:28bb:e0f0:35d0:0:2', 'end': '3ad6:35b3:d002:28bb:e0f0:35d0:ffff:fffe'}], 'gateway_ip': '3ad6:35b3:d002:28bb:e0f0:35d0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ad6:35b3:d002:28bb:e0f0:35d0:0:2', 'tags': [], 'project_id': '41c9dc6e641443e3904eba6f43239a72'}} 2026-02-25 17:29:40,564 - INFO - Created VN ctest-vn4-55738012 2026-02-25 17:29:40,616 - DEBUG - VN ctest-vn4-55738012 UUID is 330b53e6-380c-47ff-ad59-ed6c3746c7b5 2026-02-25 17:29:40,822 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '330b53e6-380c-47ff-ad59-ed6c3746c7b5', 'name': 'ctest-vn4-55738012', 'tenant_id': '41c9dc6e641443e3904eba6f43239a72', 'project_id': '41c9dc6e641443e3904eba6f43239a72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ea9807f-7e4c-4588-b92d-7cb09f9ff14c', '57d14f4e-b513-47bf-92f9-89f598abfd1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11688277', 'ctest-vn4-55738012'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11688277', 'ctest-policy1-79997039']], 'subnet_ipam': [{'subnet_cidr': '200.108.248.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ad6:35b3:d002:28bb:e0f0:35d0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-25 17:29:40,984 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-25 17:29:41,291 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-25 17:29:41,324 - DEBUG - Requesting: http://10.0.0.19:8082/domain/668137d6-06f7-4b2a-9c46-5fb4cd41a302 2026-02-25 17:29:41,338 - DEBUG - Requesting: http://10.0.0.19:8082/project/41c9dc6e-6414-43e3-904e-ba6f43239a72 2026-02-25 17:29:41,417 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/330b53e6-380c-47ff-ad59-ed6c3746c7b5 2026-02-25 17:29:41,429 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/330b53e6-380c-47ff-ad59-ed6c3746c7b5 2026-02-25 17:29:41,439 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/457a01f7-2bd5-4582-8037-f261c519c06f 2026-02-25 17:29:41,447 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/457a01f7-2bd5-4582-8037-f261c519c06f 2026-02-25 17:29:41,456 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e50f6158-b168-4c14-84b0-5f62303d2579 2026-02-25 17:29:41,463 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-25 17:29:41,463 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/330b53e6-380c-47ff-ad59-ed6c3746c7b5 2026-02-25 17:29:41,475 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/457a01f7-2bd5-4582-8037-f261c519c06f 2026-02-25 17:29:41,490 - INFO - Verified VN network id 11 for VN 330b53e6-380c-47ff-ad59-ed6c3746c7b5 2026-02-25 17:29:41,490 - INFO - Verifications in API Server for VN ctest-vn4-55738012 passed 2026-02-25 17:29:41,490 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/330b53e6-380c-47ff-ad59-ed6c3746c7b5 2026-02-25 17:29:41,505 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/457a01f7-2bd5-4582-8037-f261c519c06f 2026-02-25 17:29:41,514 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/457a01f7-2bd5-4582-8037-f261c519c06f 2026-02-25 17:29:41,523 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e50f6158-b168-4c14-84b0-5f62303d2579 2026-02-25 17:29:41,535 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11688277:ctest-vn4-55738012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11688277', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3678125768926054399', 'uuid-lslong': '12491276090528417717'}, 'enable': 'true', 'created': '2026-02-25T17:29:40', 'last-modified': '2026-02-25T17:29:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743084'} 2026-02-25 17:29:41,542 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-25 17:29:41,542 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55738012 passed 2026-02-25 17:29:41,542 - DEBUG - ====Verifying policy data for ctest-vn4-55738012 in API_Server ====== 2026-02-25 17:29:41,542 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-25 17:29:41,548 - DEBUG - Requesting: http://10.0.0.19:8082/domain/668137d6-06f7-4b2a-9c46-5fb4cd41a302 2026-02-25 17:29:41,559 - DEBUG - Requesting: http://10.0.0.19:8082/project/41c9dc6e-6414-43e3-904e-ba6f43239a72 2026-02-25 17:29:41,638 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/330b53e6-380c-47ff-ad59-ed6c3746c7b5 2026-02-25 17:29:41,650 - DEBUG - ==>Verifying data for policy with id: f3ca0a33-b1e1-42b3-bdb8-607394b03f90, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11688277', 'ctest-policy1-79997039'] 2026-02-25 17:29:41,650 - INFO - VN ctest-vn4-55738012 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-25 17:29:41,650 - DEBUG - Verifying the vn in opserver 2026-02-25 17:29:41,650 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11688277:ctest-vn4-55738012 virtual network link through opserver 10.0.0.19 2026-02-25 17:29:41,650 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-25 17:29:41,957 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-25 17:29:42,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11688277:ctest-vn4-55738012', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11688277:ctest-vn4-55738012?flat'} 2026-02-25 17:29:42,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11688277:ctest-vn4-55738012 is found in opserver 2026-02-25 17:29:42,060 - DEBUG - Do not have enough data to verify VN in agent 2026-02-25 17:29:42,067 - DEBUG - VRF ids for VN ctest-vn4-55738012: {} 2026-02-25 17:29:42,067 - DEBUG - ====Verifying data for ctest-policy1-79997039 in API_Server ====== 2026-02-25 17:29:42,067 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-25 17:29:42,078 - DEBUG - Requesting: http://10.0.0.19:8082/domain/668137d6-06f7-4b2a-9c46-5fb4cd41a302 2026-02-25 17:29:42,095 - DEBUG - Requesting: http://10.0.0.19:8082/project/41c9dc6e-6414-43e3-904e-ba6f43239a72 2026-02-25 17:29:42,189 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/f3ca0a33-b1e1-42b3-bdb8-607394b03f90 2026-02-25 17:29:42,207 - INFO - Verified policy ctest-policy1-79997039 in API Server, Result: True 2026-02-25 17:29:42,207 - INFO - Done with setup and verification, moving onto test .. 2026-02-25 17:29:42,226 - INFO - Deleting VN ctest-vn4-55738012 2026-02-25 17:29:42,481 - DEBUG - Response for deleting network () 2026-02-25 17:29:42,481 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/457a01f7-2bd5-4582-8037-f261c519c06f 2026-02-25 17:29:42,495 - DEBUG - Response Code: 404 2026-02-25 17:29:42,495 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-25 17:29:42,504 - DEBUG - Requesting: http://10.0.0.19:8082/domain/668137d6-06f7-4b2a-9c46-5fb4cd41a302 2026-02-25 17:29:42,531 - DEBUG - Requesting: http://10.0.0.19:8082/project/41c9dc6e-6414-43e3-904e-ba6f43239a72 2026-02-25 17:29:42,613 - INFO - Validated that VN ctest-vn4-55738012 is not found in API Server 2026-02-25 17:29:42,624 - DEBUG - VN ctest-vn4-55738012 is not present in Agent 10.0.0.19 2026-02-25 17:29:42,624 - INFO - Validated that VN ctest-vn4-55738012 is not in any agent 2026-02-25 17:29:42,646 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55738012 info 2026-02-25 17:29:42,679 - INFO - Deleted policy ctest-policy1-79997039 2026-02-25 17:29:42,868 - DEBUG - policy ctest-policy1-79997039 is not found in API Server 2026-02-25 17:29:43,146 - DEBUG - No XMPP flaps were noticed during the test 2026-02-25 17:29:43,146 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-25 17:29:43,146 - INFO - -------------------------------------------------------------------------------- 2026-02-25 17:29:43,430 - DEBUG - No XMPP flaps were noticed during the test 2026-02-25 17:29:43,430 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-25 17:29:43,430 - INFO - -------------------------------------------------------------------------------- 2026-02-25 17:29:44,174 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11688277, ID : 41c9dc6e-6414-43e3-904e-ba6f43239a72