2025-10-20 11:45:37,543 - INFO - Domain Default found not creating 2025-10-20 11:45:37,690 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94973692 not found, creating it 2025-10-20 11:45:38,136 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94973692, ID : dcb94508-0e79-4f9a-818a-0cb198c2c465 2025-10-20 11:45:39,514 - INFO - ================================================================================ 2025-10-20 11:45:39,514 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 11:45:39,777 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.129': '0'}} with 2025-10-20 11:45:39,777 - INFO - Initial checks done. Running the testcase now 2025-10-20 11:45:39,777 - INFO - 2025-10-20 11:45:39,777 - INFO - ================================================================================ 2025-10-20 11:45:39,777 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 11:45:39,777 - 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-10-20 11:45:40,064 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.129': '0'}} with 2025-10-20 11:45:40,064 - INFO - Initial checks done. Running the testcase now 2025-10-20 11:45:40,064 - INFO - 2025-10-20 11:45:40,406 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94973692:ctest-vn4-64462441, 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-94973692:ctest-vn4-64462441, 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-94973692:ctest-vn4-64462441, 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-94973692:ctest-vn4-64462441, 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-10-20 11:45:40,904 - DEBUG - Response for create_network : {'network': {'id': '14cb506e-e72e-4dc0-aea8-44b855b51858', 'name': 'ctest-vn4-64462441', 'tenant_id': 'dcb945080e794f9a818a0cb198c2c465', 'project_id': 'dcb945080e794f9a818a0cb198c2c465', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94973692', 'ctest-vn4-64462441'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 11:45:41,075 - DEBUG - Response for create_subnet : {'subnet': {'id': '36952e79-cba5-424e-a444-4b8b96e9f042', 'name': '', 'tenant_id': 'dcb945080e794f9a818a0cb198c2c465', 'network_id': '14cb506e-e72e-4dc0-aea8-44b855b51858', 'ip_version': 4, 'cidr': '81.6.155.128/26', 'allocation_pools': [{'start': '81.6.155.130', 'end': '81.6.155.190'}], 'gateway_ip': '81.6.155.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.6.155.130', 'tags': [], 'project_id': 'dcb945080e794f9a818a0cb198c2c465'}} 2025-10-20 11:45:41,284 - DEBUG - Response for create_subnet : {'subnet': {'id': '77911376-ee8f-4989-a52a-df20b3bac37b', 'name': '', 'tenant_id': 'dcb945080e794f9a818a0cb198c2c465', 'network_id': '14cb506e-e72e-4dc0-aea8-44b855b51858', 'ip_version': 6, 'cidr': '3fa1:3237:11ec:2a12:c559:690f::/96', 'allocation_pools': [{'start': '3fa1:3237:11ec:2a12:c559:690f:0:2', 'end': '3fa1:3237:11ec:2a12:c559:690f:ffff:fffe'}], 'gateway_ip': '3fa1:3237:11ec:2a12:c559:690f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fa1:3237:11ec:2a12:c559:690f:0:2', 'tags': [], 'project_id': 'dcb945080e794f9a818a0cb198c2c465'}} 2025-10-20 11:45:41,305 - INFO - Created VN ctest-vn4-64462441 2025-10-20 11:45:41,359 - DEBUG - VN ctest-vn4-64462441 UUID is 14cb506e-e72e-4dc0-aea8-44b855b51858 2025-10-20 11:45:41,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14cb506e-e72e-4dc0-aea8-44b855b51858', 'name': 'ctest-vn4-64462441', 'tenant_id': 'dcb945080e794f9a818a0cb198c2c465', 'project_id': 'dcb945080e794f9a818a0cb198c2c465', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36952e79-cba5-424e-a444-4b8b96e9f042', '77911376-ee8f-4989-a52a-df20b3bac37b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94973692', 'ctest-vn4-64462441'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94973692', 'ctest-policy1-66507250']], 'subnet_ipam': [{'subnet_cidr': '81.6.155.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fa1:3237:11ec:2a12:c559:690f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 11:45:41,759 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-20 11:45:42,051 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-20 11:45:42,083 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1 2025-10-20 11:45:42,096 - DEBUG - Requesting: http://10.0.0.130:8082/project/dcb94508-0e79-4f9a-818a-0cb198c2c465 2025-10-20 11:45:42,167 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/14cb506e-e72e-4dc0-aea8-44b855b51858 2025-10-20 11:45:42,177 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/14cb506e-e72e-4dc0-aea8-44b855b51858 2025-10-20 11:45:42,185 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b3835705-36c6-481c-b511-d18f76f21a93 2025-10-20 11:45:42,191 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b3835705-36c6-481c-b511-d18f76f21a93 2025-10-20 11:45:42,197 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/852d81d1-df67-465f-be20-080956a95660 2025-10-20 11:45:42,203 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 11:45:42,203 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/14cb506e-e72e-4dc0-aea8-44b855b51858 2025-10-20 11:45:42,211 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b3835705-36c6-481c-b511-d18f76f21a93 2025-10-20 11:45:42,222 - INFO - Verified VN network id 11 for VN 14cb506e-e72e-4dc0-aea8-44b855b51858 2025-10-20 11:45:42,222 - INFO - Verifications in API Server for VN ctest-vn4-64462441 passed 2025-10-20 11:45:42,223 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/14cb506e-e72e-4dc0-aea8-44b855b51858 2025-10-20 11:45:42,230 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b3835705-36c6-481c-b511-d18f76f21a93 2025-10-20 11:45:42,236 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b3835705-36c6-481c-b511-d18f76f21a93 2025-10-20 11:45:42,242 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/852d81d1-df67-465f-be20-080956a95660 2025-10-20 11:45:42,252 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94973692:ctest-vn4-64462441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94973692', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1498379738286017984', 'uuid-lslong': '12585384717189453912'}, 'enable': 'true', 'created': '2025-10-20T11:45:40', 'last-modified': '2025-10-20T11:45:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687871'} 2025-10-20 11:45:42,259 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 11:45:42,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64462441 passed 2025-10-20 11:45:42,259 - DEBUG - ====Verifying policy data for ctest-vn4-64462441 in API_Server ====== 2025-10-20 11:45:42,259 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-20 11:45:42,264 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1 2025-10-20 11:45:42,274 - DEBUG - Requesting: http://10.0.0.130:8082/project/dcb94508-0e79-4f9a-818a-0cb198c2c465 2025-10-20 11:45:42,341 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/14cb506e-e72e-4dc0-aea8-44b855b51858 2025-10-20 11:45:42,350 - DEBUG - ==>Verifying data for policy with id: 54c31548-940a-4c59-ad9f-70d6cce8d7ed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94973692', 'ctest-policy1-66507250'] 2025-10-20 11:45:42,350 - INFO - VN ctest-vn4-64462441 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 11:45:42,350 - DEBUG - Verifying the vn in opserver 2025-10-20 11:45:42,350 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94973692:ctest-vn4-64462441 virtual network link through opserver 10.0.0.130 2025-10-20 11:45:42,350 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-20 11:45:42,639 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-20 11:45:42,693 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94973692:ctest-vn4-64462441', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94973692:ctest-vn4-64462441?flat'} 2025-10-20 11:45:42,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94973692:ctest-vn4-64462441 is found in opserver 2025-10-20 11:45:42,704 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 11:45:42,708 - DEBUG - VRF ids for VN ctest-vn4-64462441: {} 2025-10-20 11:45:42,708 - DEBUG - ====Verifying data for ctest-policy1-66507250 in API_Server ====== 2025-10-20 11:45:42,708 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-20 11:45:42,713 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1 2025-10-20 11:45:42,723 - DEBUG - Requesting: http://10.0.0.130:8082/project/dcb94508-0e79-4f9a-818a-0cb198c2c465 2025-10-20 11:45:42,793 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/54c31548-940a-4c59-ad9f-70d6cce8d7ed 2025-10-20 11:45:42,804 - INFO - Verified policy ctest-policy1-66507250 in API Server, Result: True 2025-10-20 11:45:42,804 - INFO - Done with setup and verification, moving onto test .. 2025-10-20 11:45:42,812 - INFO - Deleting VN ctest-vn4-64462441 2025-10-20 11:45:42,918 - DEBUG - Response for deleting network () 2025-10-20 11:45:42,918 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b3835705-36c6-481c-b511-d18f76f21a93 2025-10-20 11:45:42,923 - DEBUG - Response Code: 404 2025-10-20 11:45:42,923 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-20 11:45:42,929 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1 2025-10-20 11:45:42,980 - DEBUG - Requesting: http://10.0.0.130:8082/project/dcb94508-0e79-4f9a-818a-0cb198c2c465 2025-10-20 11:45:43,047 - INFO - Validated that VN ctest-vn4-64462441 is not found in API Server 2025-10-20 11:45:43,056 - DEBUG - VN ctest-vn4-64462441 is not present in Agent 10.0.0.130 2025-10-20 11:45:43,056 - INFO - Validated that VN ctest-vn4-64462441 is not in any agent 2025-10-20 11:45:43,069 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64462441 info 2025-10-20 11:45:43,097 - INFO - Deleted policy ctest-policy1-66507250 2025-10-20 11:45:43,319 - DEBUG - policy ctest-policy1-66507250 is not found in API Server 2025-10-20 11:45:43,576 - DEBUG - No XMPP flaps were noticed during the test 2025-10-20 11:45:43,576 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-20 11:45:43,576 - INFO - -------------------------------------------------------------------------------- 2025-10-20 11:45:43,868 - DEBUG - No XMPP flaps were noticed during the test 2025-10-20 11:45:43,868 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-20 11:45:43,868 - INFO - -------------------------------------------------------------------------------- 2025-10-20 11:45:44,535 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94973692, ID : dcb94508-0e79-4f9a-818a-0cb198c2c465