2025-08-03 09:40:14,708 - INFO - Domain Default found not creating 2025-08-03 09:40:14,872 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61217236 not found, creating it 2025-08-03 09:40:15,347 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61217236, ID : 08960211-38e9-43a6-9957-06f0129de5af 2025-08-03 09:40:16,976 - INFO - ================================================================================ 2025-08-03 09:40:16,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-03 09:40:17,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-08-03 09:40:17,237 - INFO - Initial checks done. Running the testcase now 2025-08-03 09:40:17,237 - INFO - 2025-08-03 09:40:17,237 - INFO - ================================================================================ 2025-08-03 09:40:17,237 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-03 09:40:17,237 - 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-08-03 09:40:17,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-08-03 09:40:17,526 - INFO - Initial checks done. Running the testcase now 2025-08-03 09:40:17,526 - INFO - 2025-08-03 09:40:17,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61217236:ctest-vn4-06212522, 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-61217236:ctest-vn4-06212522, 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-61217236:ctest-vn4-06212522, 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-61217236:ctest-vn4-06212522, 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-08-03 09:40:18,498 - DEBUG - Response for create_network : {'network': {'id': '9b7be5ec-2789-4dc8-91c4-3f401396c250', 'name': 'ctest-vn4-06212522', 'tenant_id': '0896021138e943a6995706f0129de5af', 'project_id': '0896021138e943a6995706f0129de5af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61217236', 'ctest-vn4-06212522'], 'port_security_enabled': True, 'description': ''}} 2025-08-03 09:40:18,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc5cd928-b8fa-45ae-87be-002052b5ca57', 'name': '', 'tenant_id': '0896021138e943a6995706f0129de5af', 'network_id': '9b7be5ec-2789-4dc8-91c4-3f401396c250', 'ip_version': 4, 'cidr': '131.98.166.128/26', 'allocation_pools': [{'start': '131.98.166.130', 'end': '131.98.166.190'}], 'gateway_ip': '131.98.166.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.98.166.130', 'tags': [], 'project_id': '0896021138e943a6995706f0129de5af'}} 2025-08-03 09:40:18,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '814ebffb-153c-4508-a8a1-5d8cdf2c19d7', 'name': '', 'tenant_id': '0896021138e943a6995706f0129de5af', 'network_id': '9b7be5ec-2789-4dc8-91c4-3f401396c250', 'ip_version': 6, 'cidr': '36d2:ea98:877a:c6c5:4bfa:bd7f::/96', 'allocation_pools': [{'start': '36d2:ea98:877a:c6c5:4bfa:bd7f:0:2', 'end': '36d2:ea98:877a:c6c5:4bfa:bd7f:ffff:fffe'}], 'gateway_ip': '36d2:ea98:877a:c6c5:4bfa:bd7f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36d2:ea98:877a:c6c5:4bfa:bd7f:0:2', 'tags': [], 'project_id': '0896021138e943a6995706f0129de5af'}} 2025-08-03 09:40:18,979 - INFO - Created VN ctest-vn4-06212522 2025-08-03 09:40:19,035 - DEBUG - VN ctest-vn4-06212522 UUID is 9b7be5ec-2789-4dc8-91c4-3f401396c250 2025-08-03 09:40:19,307 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b7be5ec-2789-4dc8-91c4-3f401396c250', 'name': 'ctest-vn4-06212522', 'tenant_id': '0896021138e943a6995706f0129de5af', 'project_id': '0896021138e943a6995706f0129de5af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc5cd928-b8fa-45ae-87be-002052b5ca57', '814ebffb-153c-4508-a8a1-5d8cdf2c19d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61217236', 'ctest-vn4-06212522'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61217236', 'ctest-policy1-72597833']], 'subnet_ipam': [{'subnet_cidr': '131.98.166.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36d2:ea98:877a:c6c5:4bfa:bd7f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-03 09:40:19,499 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-03 09:40:19,931 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-03 09:40:19,974 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b 2025-08-03 09:40:19,995 - DEBUG - Requesting: http://10.0.0.48:8082/project/08960211-38e9-43a6-9957-06f0129de5af 2025-08-03 09:40:20,081 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b7be5ec-2789-4dc8-91c4-3f401396c250 2025-08-03 09:40:20,096 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b7be5ec-2789-4dc8-91c4-3f401396c250 2025-08-03 09:40:20,108 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ddd662ae-37a3-4c77-9adb-214a74a94f6c 2025-08-03 09:40:20,117 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ddd662ae-37a3-4c77-9adb-214a74a94f6c 2025-08-03 09:40:20,125 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/197cd8ed-0be2-4095-8104-f5955899fa84 2025-08-03 09:40:20,133 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-03 09:40:20,133 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b7be5ec-2789-4dc8-91c4-3f401396c250 2025-08-03 09:40:20,147 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ddd662ae-37a3-4c77-9adb-214a74a94f6c 2025-08-03 09:40:20,163 - INFO - Verified VN network id 11 for VN 9b7be5ec-2789-4dc8-91c4-3f401396c250 2025-08-03 09:40:20,163 - INFO - Verifications in API Server for VN ctest-vn4-06212522 passed 2025-08-03 09:40:20,163 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b7be5ec-2789-4dc8-91c4-3f401396c250 2025-08-03 09:40:20,175 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ddd662ae-37a3-4c77-9adb-214a74a94f6c 2025-08-03 09:40:20,183 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ddd662ae-37a3-4c77-9adb-214a74a94f6c 2025-08-03 09:40:20,191 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/197cd8ed-0be2-4095-8104-f5955899fa84 2025-08-03 09:40:20,207 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61217236:ctest-vn4-06212522', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61217236', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11203801300452593096', 'uuid-lslong': '10503589775373943376'}, 'enable': 'true', 'created': '2025-08-03T09:40:18', 'last-modified': '2025-08-03T09:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963650'} 2025-08-03 09:40:20,217 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-03 09:40:20,217 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06212522 passed 2025-08-03 09:40:20,217 - DEBUG - ====Verifying policy data for ctest-vn4-06212522 in API_Server ====== 2025-08-03 09:40:20,217 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-03 09:40:20,224 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b 2025-08-03 09:40:20,239 - DEBUG - Requesting: http://10.0.0.48:8082/project/08960211-38e9-43a6-9957-06f0129de5af 2025-08-03 09:40:20,321 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b7be5ec-2789-4dc8-91c4-3f401396c250 2025-08-03 09:40:20,336 - DEBUG - ==>Verifying data for policy with id: 52e8e87d-12df-4fce-9549-ff30cae99e0a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61217236', 'ctest-policy1-72597833'] 2025-08-03 09:40:20,336 - INFO - VN ctest-vn4-06212522 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-03 09:40:20,336 - DEBUG - Verifying the vn in opserver 2025-08-03 09:40:20,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61217236:ctest-vn4-06212522 virtual network link through opserver 10.0.0.48 2025-08-03 09:40:20,336 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-03 09:40:20,671 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-03 09:40:20,762 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61217236:ctest-vn4-06212522', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61217236:ctest-vn4-06212522?flat'} 2025-08-03 09:40:20,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61217236:ctest-vn4-06212522 is found in opserver 2025-08-03 09:40:20,775 - DEBUG - Do not have enough data to verify VN in agent 2025-08-03 09:40:20,782 - DEBUG - VRF ids for VN ctest-vn4-06212522: {} 2025-08-03 09:40:20,782 - DEBUG - ====Verifying data for ctest-policy1-72597833 in API_Server ====== 2025-08-03 09:40:20,782 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-03 09:40:20,790 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b 2025-08-03 09:40:20,806 - DEBUG - Requesting: http://10.0.0.48:8082/project/08960211-38e9-43a6-9957-06f0129de5af 2025-08-03 09:40:20,887 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/52e8e87d-12df-4fce-9549-ff30cae99e0a 2025-08-03 09:40:20,900 - INFO - Verified policy ctest-policy1-72597833 in API Server, Result: True 2025-08-03 09:40:20,900 - INFO - Done with setup and verification, moving onto test .. 2025-08-03 09:40:20,911 - INFO - Deleting VN ctest-vn4-06212522 2025-08-03 09:40:21,073 - DEBUG - Response for deleting network () 2025-08-03 09:40:21,073 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ddd662ae-37a3-4c77-9adb-214a74a94f6c 2025-08-03 09:40:21,080 - DEBUG - Response Code: 404 2025-08-03 09:40:21,080 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-03 09:40:21,088 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b 2025-08-03 09:40:21,146 - DEBUG - Requesting: http://10.0.0.48:8082/project/08960211-38e9-43a6-9957-06f0129de5af 2025-08-03 09:40:21,226 - INFO - Validated that VN ctest-vn4-06212522 is not found in API Server 2025-08-03 09:40:21,239 - DEBUG - VN ctest-vn4-06212522 is not present in Agent 10.0.0.48 2025-08-03 09:40:21,239 - INFO - Validated that VN ctest-vn4-06212522 is not in any agent 2025-08-03 09:40:21,259 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06212522 info 2025-08-03 09:40:21,289 - INFO - Deleted policy ctest-policy1-72597833 2025-08-03 09:40:21,462 - DEBUG - policy ctest-policy1-72597833 is not found in API Server 2025-08-03 09:40:21,722 - DEBUG - No XMPP flaps were noticed during the test
2025-08-03 09:40:21,722 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-03 09:40:21,722 - INFO - -------------------------------------------------------------------------------- 2025-08-03 09:40:22,029 - DEBUG - No XMPP flaps were noticed during the test
2025-08-03 09:40:22,029 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2025-08-03 09:40:22,030 - INFO - -------------------------------------------------------------------------------- 2025-08-03 09:40:22,774 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61217236, ID : 08960211-38e9-43a6-9957-06f0129de5af