2025-09-09 20:51:06,926 - INFO - Domain Default found not creating 2025-09-09 20:51:07,067 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36860162 not found, creating it 2025-09-09 20:51:07,492 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36860162, ID : 4bb73b13-cdf5-47a0-9f1d-e199300aef59 2025-09-09 20:51:08,824 - INFO - ================================================================================ 2025-09-09 20:51:08,824 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 20:51:09,077 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-09 20:51:09,077 - INFO - Initial checks done. Running the testcase now 2025-09-09 20:51:09,077 - INFO - 2025-09-09 20:51:09,078 - INFO - ================================================================================ 2025-09-09 20:51:09,078 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 20:51:09,078 - 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. 2025-09-09 20:51:09,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-09 20:51:09,365 - INFO - Initial checks done. Running the testcase now 2025-09-09 20:51:09,365 - INFO - 2025-09-09 20:51:09,699 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36860162:ctest-vn4-88457867, 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-36860162:ctest-vn4-88457867, 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-36860162:ctest-vn4-88457867, 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-36860162:ctest-vn4-88457867, 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] 2025-09-09 20:51:10,178 - DEBUG - Response for create_network : {'network': {'id': '344128f9-6d71-469d-8a4f-c012545d74e5', 'name': 'ctest-vn4-88457867', 'tenant_id': '4bb73b13cdf547a09f1de199300aef59', 'project_id': '4bb73b13cdf547a09f1de199300aef59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36860162', 'ctest-vn4-88457867'], 'port_security_enabled': True, 'description': ''}} 2025-09-09 20:51:10,359 - DEBUG - Response for create_subnet : {'subnet': {'id': '093f8c07-775a-4234-a8a6-266908e25964', 'name': '', 'tenant_id': '4bb73b13cdf547a09f1de199300aef59', 'network_id': '344128f9-6d71-469d-8a4f-c012545d74e5', 'ip_version': 4, 'cidr': '120.95.13.192/26', 'allocation_pools': [{'start': '120.95.13.194', 'end': '120.95.13.254'}], 'gateway_ip': '120.95.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.95.13.194', 'tags': [], 'project_id': '4bb73b13cdf547a09f1de199300aef59'}} 2025-09-09 20:51:10,534 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0ebbc6c-fc11-4753-adde-d2ff44d6adb7', 'name': '', 'tenant_id': '4bb73b13cdf547a09f1de199300aef59', 'network_id': '344128f9-6d71-469d-8a4f-c012545d74e5', 'ip_version': 6, 'cidr': '23a6:994d:e8d:27a9:1ea3:ce51::/96', 'allocation_pools': [{'start': '23a6:994d:e8d:27a9:1ea3:ce51:0:2', 'end': '23a6:994d:e8d:27a9:1ea3:ce51:ffff:fffe'}], 'gateway_ip': '23a6:994d:e8d:27a9:1ea3:ce51:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23a6:994d:e8d:27a9:1ea3:ce51:0:2', 'tags': [], 'project_id': '4bb73b13cdf547a09f1de199300aef59'}} 2025-09-09 20:51:10,550 - INFO - Created VN ctest-vn4-88457867 2025-09-09 20:51:10,600 - DEBUG - VN ctest-vn4-88457867 UUID is 344128f9-6d71-469d-8a4f-c012545d74e5 2025-09-09 20:51:10,777 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '344128f9-6d71-469d-8a4f-c012545d74e5', 'name': 'ctest-vn4-88457867', 'tenant_id': '4bb73b13cdf547a09f1de199300aef59', 'project_id': '4bb73b13cdf547a09f1de199300aef59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['093f8c07-775a-4234-a8a6-266908e25964', 'b0ebbc6c-fc11-4753-adde-d2ff44d6adb7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36860162', 'ctest-vn4-88457867'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36860162', 'ctest-policy1-55042045']], 'subnet_ipam': [{'subnet_cidr': '120.95.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23a6:994d:e8d:27a9:1ea3:ce51::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-09 20:51:10,932 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 20:51:11,221 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 20:51:11,247 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258 2025-09-09 20:51:11,257 - DEBUG - Requesting: http://10.0.0.48:8082/project/4bb73b13-cdf5-47a0-9f1d-e199300aef59 2025-09-09 20:51:11,326 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/344128f9-6d71-469d-8a4f-c012545d74e5 2025-09-09 20:51:11,337 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/344128f9-6d71-469d-8a4f-c012545d74e5 2025-09-09 20:51:11,344 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff96b186-906a-4beb-b4e3-9be8c2768b9f 2025-09-09 20:51:11,351 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff96b186-906a-4beb-b4e3-9be8c2768b9f 2025-09-09 20:51:11,356 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e8ffaad9-bc67-448c-9165-9fb7a83bc53a 2025-09-09 20:51:11,362 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 20:51:11,362 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/344128f9-6d71-469d-8a4f-c012545d74e5 2025-09-09 20:51:11,370 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff96b186-906a-4beb-b4e3-9be8c2768b9f 2025-09-09 20:51:11,384 - INFO - Verified VN network id 12 for VN 344128f9-6d71-469d-8a4f-c012545d74e5 2025-09-09 20:51:11,384 - INFO - Verifications in API Server for VN ctest-vn4-88457867 passed 2025-09-09 20:51:11,384 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/344128f9-6d71-469d-8a4f-c012545d74e5 2025-09-09 20:51:11,391 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff96b186-906a-4beb-b4e3-9be8c2768b9f 2025-09-09 20:51:11,397 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff96b186-906a-4beb-b4e3-9be8c2768b9f 2025-09-09 20:51:11,402 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e8ffaad9-bc67-448c-9165-9fb7a83bc53a 2025-09-09 20:51:11,411 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36860162:ctest-vn4-88457867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36860162', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3765335815206553245', 'uuid-lslong': '9966395685351552229'}, 'enable': 'true', 'created': '2025-09-09T20:51:10', 'last-modified': '2025-09-09T20:51:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.654599'} 2025-09-09 20:51:11,416 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 20:51:11,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88457867 passed 2025-09-09 20:51:11,417 - DEBUG - ====Verifying policy data for ctest-vn4-88457867 in API_Server ====== 2025-09-09 20:51:11,417 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 20:51:11,421 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258 2025-09-09 20:51:11,430 - DEBUG - Requesting: http://10.0.0.48:8082/project/4bb73b13-cdf5-47a0-9f1d-e199300aef59 2025-09-09 20:51:11,497 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/344128f9-6d71-469d-8a4f-c012545d74e5 2025-09-09 20:51:11,505 - DEBUG - ==>Verifying data for policy with id: 03d00b6c-9126-45f8-838e-9ef951f0a2c0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36860162', 'ctest-policy1-55042045'] 2025-09-09 20:51:11,505 - INFO - VN ctest-vn4-88457867 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-09 20:51:11,505 - DEBUG - Verifying the vn in opserver 2025-09-09 20:51:11,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36860162:ctest-vn4-88457867 virtual network link through opserver 10.0.0.48 2025-09-09 20:51:11,506 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-09 20:51:11,794 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-09 20:51:11,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36860162:ctest-vn4-88457867', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36860162:ctest-vn4-88457867?flat'} 2025-09-09 20:51:11,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36860162:ctest-vn4-88457867 is found in opserver 2025-09-09 20:51:11,848 - DEBUG - Do not have enough data to verify VN in agent 2025-09-09 20:51:11,852 - DEBUG - VRF ids for VN ctest-vn4-88457867: {} 2025-09-09 20:51:11,852 - DEBUG - ====Verifying data for ctest-policy1-55042045 in API_Server ====== 2025-09-09 20:51:11,852 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 20:51:11,857 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258 2025-09-09 20:51:11,865 - DEBUG - Requesting: http://10.0.0.48:8082/project/4bb73b13-cdf5-47a0-9f1d-e199300aef59 2025-09-09 20:51:11,931 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/03d00b6c-9126-45f8-838e-9ef951f0a2c0 2025-09-09 20:51:11,939 - INFO - Verified policy ctest-policy1-55042045 in API Server, Result: True 2025-09-09 20:51:11,939 - INFO - Done with setup and verification, moving onto test .. 2025-09-09 20:51:11,946 - INFO - Deleting VN ctest-vn4-88457867 2025-09-09 20:51:12,056 - DEBUG - Response for deleting network () 2025-09-09 20:51:12,056 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff96b186-906a-4beb-b4e3-9be8c2768b9f 2025-09-09 20:51:12,061 - DEBUG - Response Code: 404 2025-09-09 20:51:12,062 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 20:51:12,066 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e5788a33-7c56-4391-ad46-5a7b442d4258 2025-09-09 20:51:12,116 - DEBUG - Requesting: http://10.0.0.48:8082/project/4bb73b13-cdf5-47a0-9f1d-e199300aef59 2025-09-09 20:51:12,185 - INFO - Validated that VN ctest-vn4-88457867 is not found in API Server 2025-09-09 20:51:12,194 - DEBUG - VN ctest-vn4-88457867 is not present in Agent 10.0.0.48 2025-09-09 20:51:12,194 - INFO - Validated that VN ctest-vn4-88457867 is not in any agent 2025-09-09 20:51:12,205 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88457867 info 2025-09-09 20:51:12,225 - INFO - Deleted policy ctest-policy1-55042045 2025-09-09 20:51:12,384 - DEBUG - policy ctest-policy1-55042045 is not found in API Server 2025-09-09 20:51:12,636 - DEBUG - No XMPP flaps were noticed during the test 2025-09-09 20:51:12,636 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-09 20:51:12,637 - INFO - -------------------------------------------------------------------------------- 2025-09-09 20:51:12,929 - DEBUG - No XMPP flaps were noticed during the test 2025-09-09 20:51:12,930 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-09 20:51:12,930 - INFO - -------------------------------------------------------------------------------- 2025-09-09 20:51:13,563 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36860162, ID : 4bb73b13-cdf5-47a0-9f1d-e199300aef59