2026-03-07 14:22:01,321 - INFO - Domain Default found not creating 2026-03-07 14:22:01,845 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28793751 not found, creating it 2026-03-07 14:22:02,342 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28793751, ID : 8e3a9237-386c-42c1-8b79-7ebc61aa7347 2026-03-07 14:22:03,858 - INFO - ================================================================================ 2026-03-07 14:22:03,858 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-07 14:22:04,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-03-07 14:22:04,113 - INFO - Initial checks done. Running the testcase now 2026-03-07 14:22:04,113 - INFO - 2026-03-07 14:22:04,113 - INFO - ================================================================================ 2026-03-07 14:22:04,113 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-07 14:22:04,113 - 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-03-07 14:22:04,401 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-03-07 14:22:04,402 - INFO - Initial checks done. Running the testcase now 2026-03-07 14:22:04,402 - INFO - 2026-03-07 14:22:04,757 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28793751:ctest-vn4-36596306, 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-28793751:ctest-vn4-36596306, 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-28793751:ctest-vn4-36596306, 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-28793751:ctest-vn4-36596306, 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-03-07 14:22:05,274 - DEBUG - Response for create_network : {'network': {'id': '1e36a27a-65ce-4e9b-a90f-372ca8419d1f', 'name': 'ctest-vn4-36596306', 'tenant_id': '8e3a9237386c42c18b797ebc61aa7347', 'project_id': '8e3a9237386c42c18b797ebc61aa7347', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28793751', 'ctest-vn4-36596306'], 'port_security_enabled': True, 'description': ''}} 2026-03-07 14:22:05,505 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a08fbfd-0d97-412f-afe6-dbb61d0b9839', 'name': '', 'tenant_id': '8e3a9237386c42c18b797ebc61aa7347', 'network_id': '1e36a27a-65ce-4e9b-a90f-372ca8419d1f', 'ip_version': 4, 'cidr': '116.133.32.192/26', 'allocation_pools': [{'start': '116.133.32.194', 'end': '116.133.32.254'}], 'gateway_ip': '116.133.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.133.32.194', 'tags': [], 'project_id': '8e3a9237386c42c18b797ebc61aa7347'}} 2026-03-07 14:22:05,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9610246-7afe-4e98-9f1e-f18c2ce902fa', 'name': '', 'tenant_id': '8e3a9237386c42c18b797ebc61aa7347', 'network_id': '1e36a27a-65ce-4e9b-a90f-372ca8419d1f', 'ip_version': 6, 'cidr': '3d54:6c87:af34:ce37:f552:9680::/96', 'allocation_pools': [{'start': '3d54:6c87:af34:ce37:f552:9680:0:2', 'end': '3d54:6c87:af34:ce37:f552:9680:ffff:fffe'}], 'gateway_ip': '3d54:6c87:af34:ce37:f552:9680:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d54:6c87:af34:ce37:f552:9680:0:2', 'tags': [], 'project_id': '8e3a9237386c42c18b797ebc61aa7347'}} 2026-03-07 14:22:05,740 - INFO - Created VN ctest-vn4-36596306 2026-03-07 14:22:05,795 - DEBUG - VN ctest-vn4-36596306 UUID is 1e36a27a-65ce-4e9b-a90f-372ca8419d1f 2026-03-07 14:22:05,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e36a27a-65ce-4e9b-a90f-372ca8419d1f', 'name': 'ctest-vn4-36596306', 'tenant_id': '8e3a9237386c42c18b797ebc61aa7347', 'project_id': '8e3a9237386c42c18b797ebc61aa7347', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a08fbfd-0d97-412f-afe6-dbb61d0b9839', 'c9610246-7afe-4e98-9f1e-f18c2ce902fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28793751', 'ctest-vn4-36596306'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28793751', 'ctest-policy1-75529362']], 'subnet_ipam': [{'subnet_cidr': '116.133.32.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d54:6c87:af34:ce37:f552:9680::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-07 14:22:06,147 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-07 14:22:06,442 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-07 14:22:06,474 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2 2026-03-07 14:22:06,486 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e3a9237-386c-42c1-8b79-7ebc61aa7347 2026-03-07 14:22:06,557 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1e36a27a-65ce-4e9b-a90f-372ca8419d1f 2026-03-07 14:22:06,569 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1e36a27a-65ce-4e9b-a90f-372ca8419d1f 2026-03-07 14:22:06,579 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/18d6572c-a37c-476c-97dc-350aa2213e1a 2026-03-07 14:22:06,587 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/18d6572c-a37c-476c-97dc-350aa2213e1a 2026-03-07 14:22:06,593 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7cedaa7c-2316-4b32-aad9-02235af557d0 2026-03-07 14:22:06,600 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-07 14:22:06,600 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1e36a27a-65ce-4e9b-a90f-372ca8419d1f 2026-03-07 14:22:06,610 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/18d6572c-a37c-476c-97dc-350aa2213e1a 2026-03-07 14:22:06,624 - INFO - Verified VN network id 11 for VN 1e36a27a-65ce-4e9b-a90f-372ca8419d1f 2026-03-07 14:22:06,624 - INFO - Verifications in API Server for VN ctest-vn4-36596306 passed 2026-03-07 14:22:06,624 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1e36a27a-65ce-4e9b-a90f-372ca8419d1f 2026-03-07 14:22:06,634 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/18d6572c-a37c-476c-97dc-350aa2213e1a 2026-03-07 14:22:06,640 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/18d6572c-a37c-476c-97dc-350aa2213e1a 2026-03-07 14:22:06,647 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7cedaa7c-2316-4b32-aad9-02235af557d0 2026-03-07 14:22:06,658 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28793751:ctest-vn4-36596306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28793751', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2177106116457942683', 'uuid-lslong': '12182016182001442079'}, 'enable': 'true', 'created': '2026-03-07T14:22:05', 'last-modified': '2026-03-07T14:22:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688307'} 2026-03-07 14:22:06,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-07 14:22:06,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36596306 passed 2026-03-07 14:22:06,664 - DEBUG - ====Verifying policy data for ctest-vn4-36596306 in API_Server ====== 2026-03-07 14:22:06,664 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-07 14:22:06,669 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2 2026-03-07 14:22:06,678 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e3a9237-386c-42c1-8b79-7ebc61aa7347 2026-03-07 14:22:06,750 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1e36a27a-65ce-4e9b-a90f-372ca8419d1f 2026-03-07 14:22:06,760 - DEBUG - ==>Verifying data for policy with id: 3b69782d-2407-4052-b1cf-6943c2a2f391, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28793751', 'ctest-policy1-75529362'] 2026-03-07 14:22:06,760 - INFO - VN ctest-vn4-36596306 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-07 14:22:06,760 - DEBUG - Verifying the vn in opserver 2026-03-07 14:22:06,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28793751:ctest-vn4-36596306 virtual network link through opserver 10.0.0.249 2026-03-07 14:22:06,760 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-07 14:22:07,054 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-07 14:22:07,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28793751:ctest-vn4-36596306', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28793751:ctest-vn4-36596306?flat'} 2026-03-07 14:22:07,113 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28793751:ctest-vn4-36596306 is found in opserver 2026-03-07 14:22:07,123 - DEBUG - Do not have enough data to verify VN in agent 2026-03-07 14:22:07,127 - DEBUG - VRF ids for VN ctest-vn4-36596306: {} 2026-03-07 14:22:07,128 - DEBUG - ====Verifying data for ctest-policy1-75529362 in API_Server ====== 2026-03-07 14:22:07,128 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-07 14:22:07,133 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2 2026-03-07 14:22:07,143 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e3a9237-386c-42c1-8b79-7ebc61aa7347 2026-03-07 14:22:07,214 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/3b69782d-2407-4052-b1cf-6943c2a2f391 2026-03-07 14:22:07,223 - INFO - Verified policy ctest-policy1-75529362 in API Server, Result: True 2026-03-07 14:22:07,224 - INFO - Done with setup and verification, moving onto test .. 2026-03-07 14:22:07,231 - INFO - Deleting VN ctest-vn4-36596306 2026-03-07 14:22:07,347 - DEBUG - Response for deleting network () 2026-03-07 14:22:07,347 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/18d6572c-a37c-476c-97dc-350aa2213e1a 2026-03-07 14:22:07,352 - DEBUG - Response Code: 404 2026-03-07 14:22:07,353 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-07 14:22:07,358 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2 2026-03-07 14:22:07,413 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e3a9237-386c-42c1-8b79-7ebc61aa7347 2026-03-07 14:22:07,483 - INFO - Validated that VN ctest-vn4-36596306 is not found in API Server 2026-03-07 14:22:07,492 - DEBUG - VN ctest-vn4-36596306 is not present in Agent 10.0.0.249 2026-03-07 14:22:07,492 - INFO - Validated that VN ctest-vn4-36596306 is not in any agent 2026-03-07 14:22:07,505 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36596306 info 2026-03-07 14:22:07,532 - INFO - Deleted policy ctest-policy1-75529362 2026-03-07 14:22:07,699 - DEBUG - policy ctest-policy1-75529362 is not found in API Server 2026-03-07 14:22:07,952 - DEBUG - No XMPP flaps were noticed during the test 2026-03-07 14:22:07,952 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-03-07 14:22:07,952 - INFO - -------------------------------------------------------------------------------- 2026-03-07 14:22:08,243 - DEBUG - No XMPP flaps were noticed during the test 2026-03-07 14:22:08,243 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-07 14:22:08,243 - INFO - -------------------------------------------------------------------------------- 2026-03-07 14:22:08,927 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28793751, ID : 8e3a9237-386c-42c1-8b79-7ebc61aa7347