2025-08-15 16:32:24,814 - INFO - Domain Default found not creating 2025-08-15 16:32:24,939 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30519319 not found, creating it 2025-08-15 16:32:25,358 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30519319, ID : 9ce6d912-7bf1-4167-98a3-bcccf44ba2fc 2025-08-15 16:32:26,681 - INFO - ================================================================================ 2025-08-15 16:32:26,681 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 16:32:26,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-15 16:32:26,929 - INFO - Initial checks done. Running the testcase now 2025-08-15 16:32:26,929 - INFO - 2025-08-15 16:32:26,929 - INFO - ================================================================================ 2025-08-15 16:32:26,929 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 16:32:26,929 - 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-15 16:32:27,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-15 16:32:27,232 - INFO - Initial checks done. Running the testcase now 2025-08-15 16:32:27,232 - INFO - 2025-08-15 16:32:27,573 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30519319:ctest-vn4-68113431, 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-30519319:ctest-vn4-68113431, 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-30519319:ctest-vn4-68113431, 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-30519319:ctest-vn4-68113431, 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-15 16:32:28,079 - DEBUG - Response for create_network : {'network': {'id': '25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99', 'name': 'ctest-vn4-68113431', 'tenant_id': '9ce6d9127bf1416798a3bcccf44ba2fc', 'project_id': '9ce6d9127bf1416798a3bcccf44ba2fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30519319', 'ctest-vn4-68113431'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 16:32:28,302 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7b46cad-c1ce-4dc5-9f19-f5c00b2459f4', 'name': '', 'tenant_id': '9ce6d9127bf1416798a3bcccf44ba2fc', 'network_id': '25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99', 'ip_version': 4, 'cidr': '166.134.114.128/26', 'allocation_pools': [{'start': '166.134.114.130', 'end': '166.134.114.190'}], 'gateway_ip': '166.134.114.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.134.114.130', 'tags': [], 'project_id': '9ce6d9127bf1416798a3bcccf44ba2fc'}} 2025-08-15 16:32:28,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b72ce5c-7f0c-4cfb-8b76-f0c46de24d9e', 'name': '', 'tenant_id': '9ce6d9127bf1416798a3bcccf44ba2fc', 'network_id': '25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99', 'ip_version': 6, 'cidr': '34ef:22aa:a38c:c056:8bbf:5bd0::/96', 'allocation_pools': [{'start': '34ef:22aa:a38c:c056:8bbf:5bd0:0:2', 'end': '34ef:22aa:a38c:c056:8bbf:5bd0:ffff:fffe'}], 'gateway_ip': '34ef:22aa:a38c:c056:8bbf:5bd0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34ef:22aa:a38c:c056:8bbf:5bd0:0:2', 'tags': [], 'project_id': '9ce6d9127bf1416798a3bcccf44ba2fc'}} 2025-08-15 16:32:28,545 - INFO - Created VN ctest-vn4-68113431 2025-08-15 16:32:28,600 - DEBUG - VN ctest-vn4-68113431 UUID is 25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99 2025-08-15 16:32:28,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99', 'name': 'ctest-vn4-68113431', 'tenant_id': '9ce6d9127bf1416798a3bcccf44ba2fc', 'project_id': '9ce6d9127bf1416798a3bcccf44ba2fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7b46cad-c1ce-4dc5-9f19-f5c00b2459f4', '2b72ce5c-7f0c-4cfb-8b76-f0c46de24d9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30519319', 'ctest-vn4-68113431'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30519319', 'ctest-policy1-56671546']], 'subnet_ipam': [{'subnet_cidr': '166.134.114.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34ef:22aa:a38c:c056:8bbf:5bd0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 16:32:28,959 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-15 16:32:29,247 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-15 16:32:29,271 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4 2025-08-15 16:32:29,284 - DEBUG - Requesting: http://10.0.0.249:8082/project/9ce6d912-7bf1-4167-98a3-bcccf44ba2fc 2025-08-15 16:32:29,353 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99 2025-08-15 16:32:29,364 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99 2025-08-15 16:32:29,374 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ab4404ce-7c81-4252-802b-9c74a2ec34a0 2025-08-15 16:32:29,380 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ab4404ce-7c81-4252-802b-9c74a2ec34a0 2025-08-15 16:32:29,386 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8d2870c1-53e7-4822-94d5-7f2a31198158 2025-08-15 16:32:29,392 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 16:32:29,392 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99 2025-08-15 16:32:29,401 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ab4404ce-7c81-4252-802b-9c74a2ec34a0 2025-08-15 16:32:29,412 - INFO - Verified VN network id 11 for VN 25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99 2025-08-15 16:32:29,413 - INFO - Verifications in API Server for VN ctest-vn4-68113431 passed 2025-08-15 16:32:29,413 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99 2025-08-15 16:32:29,423 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ab4404ce-7c81-4252-802b-9c74a2ec34a0 2025-08-15 16:32:29,429 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ab4404ce-7c81-4252-802b-9c74a2ec34a0 2025-08-15 16:32:29,435 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8d2870c1-53e7-4822-94d5-7f2a31198158 2025-08-15 16:32:29,445 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30519319:ctest-vn4-68113431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30519319', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2727592842582966465', 'uuid-lslong': '13421019835699986329'}, 'enable': 'true', 'created': '2025-08-15T16:32:28', 'last-modified': '2025-08-15T16:32:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682083'} 2025-08-15 16:32:29,452 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 16:32:29,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68113431 passed 2025-08-15 16:32:29,452 - DEBUG - ====Verifying policy data for ctest-vn4-68113431 in API_Server ====== 2025-08-15 16:32:29,452 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-15 16:32:29,457 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4 2025-08-15 16:32:29,467 - DEBUG - Requesting: http://10.0.0.249:8082/project/9ce6d912-7bf1-4167-98a3-bcccf44ba2fc 2025-08-15 16:32:29,535 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/25da5b3d-2a0e-40c1-ba41-0a6ed65e7f99 2025-08-15 16:32:29,544 - DEBUG - ==>Verifying data for policy with id: 665ec051-6ad4-4145-91b9-9a15e3b71fed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30519319', 'ctest-policy1-56671546'] 2025-08-15 16:32:29,544 - INFO - VN ctest-vn4-68113431 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 16:32:29,545 - DEBUG - Verifying the vn in opserver 2025-08-15 16:32:29,545 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30519319:ctest-vn4-68113431 virtual network link through opserver 10.0.0.249 2025-08-15 16:32:29,545 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-15 16:32:29,833 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-15 16:32:29,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30519319:ctest-vn4-68113431', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30519319:ctest-vn4-68113431?flat'} 2025-08-15 16:32:29,886 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30519319:ctest-vn4-68113431 is found in opserver 2025-08-15 16:32:29,897 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 16:32:29,902 - DEBUG - VRF ids for VN ctest-vn4-68113431: {} 2025-08-15 16:32:29,902 - DEBUG - ====Verifying data for ctest-policy1-56671546 in API_Server ====== 2025-08-15 16:32:29,902 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-15 16:32:29,907 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4 2025-08-15 16:32:29,918 - DEBUG - Requesting: http://10.0.0.249:8082/project/9ce6d912-7bf1-4167-98a3-bcccf44ba2fc 2025-08-15 16:32:29,987 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/665ec051-6ad4-4145-91b9-9a15e3b71fed 2025-08-15 16:32:29,997 - INFO - Verified policy ctest-policy1-56671546 in API Server, Result: True 2025-08-15 16:32:29,997 - INFO - Done with setup and verification, moving onto test .. 2025-08-15 16:32:30,004 - INFO - Deleting VN ctest-vn4-68113431 2025-08-15 16:32:30,123 - DEBUG - Response for deleting network () 2025-08-15 16:32:30,123 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ab4404ce-7c81-4252-802b-9c74a2ec34a0 2025-08-15 16:32:30,128 - DEBUG - Response Code: 404 2025-08-15 16:32:30,128 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-15 16:32:30,133 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b993eb55-d710-40ef-b0a4-f0f96ac2aec4 2025-08-15 16:32:30,185 - DEBUG - Requesting: http://10.0.0.249:8082/project/9ce6d912-7bf1-4167-98a3-bcccf44ba2fc 2025-08-15 16:32:30,253 - INFO - Validated that VN ctest-vn4-68113431 is not found in API Server 2025-08-15 16:32:30,263 - DEBUG - VN ctest-vn4-68113431 is not present in Agent 10.0.0.249 2025-08-15 16:32:30,264 - INFO - Validated that VN ctest-vn4-68113431 is not in any agent 2025-08-15 16:32:30,278 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68113431 info 2025-08-15 16:32:30,305 - INFO - Deleted policy ctest-policy1-56671546 2025-08-15 16:32:30,467 - DEBUG - policy ctest-policy1-56671546 is not found in API Server 2025-08-15 16:32:30,720 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 16:32:30,720 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-15 16:32:30,720 - INFO - -------------------------------------------------------------------------------- 2025-08-15 16:32:31,010 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 16:32:31,010 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-15 16:32:31,010 - INFO - -------------------------------------------------------------------------------- 2025-08-15 16:32:31,655 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30519319, ID : 9ce6d912-7bf1-4167-98a3-bcccf44ba2fc