2025-12-19 17:26:43,244 - INFO - Domain Default found not creating 2025-12-19 17:26:43,458 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12365244 not found, creating it 2025-12-19 17:26:43,951 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12365244, ID : 8bd97e4b-9f27-4444-8934-8f534f1e1fef 2025-12-19 17:26:45,611 - INFO - ================================================================================ 2025-12-19 17:26:45,612 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-19 17:26:45,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-12-19 17:26:45,887 - INFO - Initial checks done. Running the testcase now 2025-12-19 17:26:45,887 - INFO - 2025-12-19 17:26:45,887 - INFO - ================================================================================ 2025-12-19 17:26:45,887 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-19 17:26:45,888 - 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-12-19 17:26:46,204 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-12-19 17:26:46,204 - INFO - Initial checks done. Running the testcase now 2025-12-19 17:26:46,205 - INFO - 2025-12-19 17:26:46,601 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12365244:ctest-vn4-20186712, 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-12365244:ctest-vn4-20186712, 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-12365244:ctest-vn4-20186712, 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-12365244:ctest-vn4-20186712, 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-12-19 17:26:47,196 - DEBUG - Response for create_network : {'network': {'id': '18a85d6a-9998-4883-9be7-ba30f40cf7a1', 'name': 'ctest-vn4-20186712', 'tenant_id': '8bd97e4b9f27444489348f534f1e1fef', 'project_id': '8bd97e4b9f27444489348f534f1e1fef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12365244', 'ctest-vn4-20186712'], 'port_security_enabled': True, 'description': ''}} 2025-12-19 17:26:47,403 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b86793bf-f514-47b0-a7e0-29fe6a384c4d', 'name': '', 'tenant_id': '8bd97e4b9f27444489348f534f1e1fef', 'network_id': '18a85d6a-9998-4883-9be7-ba30f40cf7a1', 'ip_version': 4, 'cidr': '83.146.105.192/26', 'allocation_pools': [{'start': '83.146.105.194', 'end': '83.146.105.254'}], 'gateway_ip': '83.146.105.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.146.105.194', 'tags': [], 'project_id': '8bd97e4b9f27444489348f534f1e1fef'}} 2025-12-19 17:26:47,596 - DEBUG - Response for create_subnet : {'subnet': {'id': '9228abfb-d25e-4b3a-9d1f-73a9138d96de', 'name': '', 'tenant_id': '8bd97e4b9f27444489348f534f1e1fef', 'network_id': '18a85d6a-9998-4883-9be7-ba30f40cf7a1', 'ip_version': 6, 'cidr': '2724:ae49:b5a0:a402:6665:9748::/96', 'allocation_pools': [{'start': '2724:ae49:b5a0:a402:6665:9748:0:2', 'end': '2724:ae49:b5a0:a402:6665:9748:ffff:fffe'}], 'gateway_ip': '2724:ae49:b5a0:a402:6665:9748:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2724:ae49:b5a0:a402:6665:9748:0:2', 'tags': [], 'project_id': '8bd97e4b9f27444489348f534f1e1fef'}} 2025-12-19 17:26:47,623 - INFO - Created VN ctest-vn4-20186712 2025-12-19 17:26:47,677 - DEBUG - VN ctest-vn4-20186712 UUID is 18a85d6a-9998-4883-9be7-ba30f40cf7a1 2025-12-19 17:26:47,908 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18a85d6a-9998-4883-9be7-ba30f40cf7a1', 'name': 'ctest-vn4-20186712', 'tenant_id': '8bd97e4b9f27444489348f534f1e1fef', 'project_id': '8bd97e4b9f27444489348f534f1e1fef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b86793bf-f514-47b0-a7e0-29fe6a384c4d', '9228abfb-d25e-4b3a-9d1f-73a9138d96de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12365244', 'ctest-vn4-20186712'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12365244', 'ctest-policy1-23042987']], 'subnet_ipam': [{'subnet_cidr': '83.146.105.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2724:ae49:b5a0:a402:6665:9748::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-19 17:26:48,081 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-19 17:26:48,383 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-19 17:26:48,420 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f 2025-12-19 17:26:48,435 - DEBUG - Requesting: http://10.0.0.22:8082/project/8bd97e4b-9f27-4444-8934-8f534f1e1fef 2025-12-19 17:26:48,517 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/18a85d6a-9998-4883-9be7-ba30f40cf7a1 2025-12-19 17:26:48,530 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/18a85d6a-9998-4883-9be7-ba30f40cf7a1 2025-12-19 17:26:48,540 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/614dd6f0-e4e6-4dad-8017-378822bd4a12 2025-12-19 17:26:48,550 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/614dd6f0-e4e6-4dad-8017-378822bd4a12 2025-12-19 17:26:48,558 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2b01455-6b33-456c-9b3b-97479a8b94ab 2025-12-19 17:26:48,566 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-19 17:26:48,566 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/18a85d6a-9998-4883-9be7-ba30f40cf7a1 2025-12-19 17:26:48,577 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/614dd6f0-e4e6-4dad-8017-378822bd4a12 2025-12-19 17:26:48,595 - INFO - Verified VN network id 12 for VN 18a85d6a-9998-4883-9be7-ba30f40cf7a1 2025-12-19 17:26:48,596 - INFO - Verifications in API Server for VN ctest-vn4-20186712 passed 2025-12-19 17:26:48,596 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/18a85d6a-9998-4883-9be7-ba30f40cf7a1 2025-12-19 17:26:48,607 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/614dd6f0-e4e6-4dad-8017-378822bd4a12 2025-12-19 17:26:48,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/614dd6f0-e4e6-4dad-8017-378822bd4a12 2025-12-19 17:26:48,627 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2b01455-6b33-456c-9b3b-97479a8b94ab 2025-12-19 17:26:48,641 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12365244:ctest-vn4-20186712', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12365244', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1776772765422471299', 'uuid-lslong': '11234152514914678689'}, 'enable': 'true', 'created': '2025-12-19T17:26:47', 'last-modified': '2025-12-19T17:26:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762375'} 2025-12-19 17:26:48,648 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-19 17:26:48,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20186712 passed 2025-12-19 17:26:48,649 - DEBUG - ====Verifying policy data for ctest-vn4-20186712 in API_Server ====== 2025-12-19 17:26:48,649 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-19 17:26:48,655 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f 2025-12-19 17:26:48,669 - DEBUG - Requesting: http://10.0.0.22:8082/project/8bd97e4b-9f27-4444-8934-8f534f1e1fef 2025-12-19 17:26:48,748 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/18a85d6a-9998-4883-9be7-ba30f40cf7a1 2025-12-19 17:26:48,759 - DEBUG - ==>Verifying data for policy with id: eb56843a-4a34-4b5f-8cc4-5c826310ea9d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12365244', 'ctest-policy1-23042987'] 2025-12-19 17:26:48,759 - INFO - VN ctest-vn4-20186712 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-19 17:26:48,759 - DEBUG - Verifying the vn in opserver 2025-12-19 17:26:48,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12365244:ctest-vn4-20186712 virtual network link through opserver 10.0.0.22 2025-12-19 17:26:48,759 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-19 17:26:49,066 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-19 17:26:49,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12365244:ctest-vn4-20186712', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12365244:ctest-vn4-20186712?flat'} 2025-12-19 17:26:49,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12365244:ctest-vn4-20186712 is found in opserver 2025-12-19 17:26:49,157 - DEBUG - Do not have enough data to verify VN in agent 2025-12-19 17:26:49,162 - DEBUG - VRF ids for VN ctest-vn4-20186712: {} 2025-12-19 17:26:49,163 - DEBUG - ====Verifying data for ctest-policy1-23042987 in API_Server ====== 2025-12-19 17:26:49,163 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-19 17:26:49,170 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f 2025-12-19 17:26:49,185 - DEBUG - Requesting: http://10.0.0.22:8082/project/8bd97e4b-9f27-4444-8934-8f534f1e1fef 2025-12-19 17:26:49,258 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/eb56843a-4a34-4b5f-8cc4-5c826310ea9d 2025-12-19 17:26:49,269 - INFO - Verified policy ctest-policy1-23042987 in API Server, Result: True 2025-12-19 17:26:49,269 - INFO - Done with setup and verification, moving onto test .. 2025-12-19 17:26:49,278 - INFO - Deleting VN ctest-vn4-20186712 2025-12-19 17:26:49,430 - DEBUG - Response for deleting network () 2025-12-19 17:26:49,430 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/614dd6f0-e4e6-4dad-8017-378822bd4a12 2025-12-19 17:26:49,438 - DEBUG - Response Code: 404 2025-12-19 17:26:49,439 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-19 17:26:49,448 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f 2025-12-19 17:26:49,503 - DEBUG - Requesting: http://10.0.0.22:8082/project/8bd97e4b-9f27-4444-8934-8f534f1e1fef 2025-12-19 17:26:49,581 - INFO - Validated that VN ctest-vn4-20186712 is not found in API Server 2025-12-19 17:26:49,594 - DEBUG - VN ctest-vn4-20186712 is not present in Agent 10.0.0.22 2025-12-19 17:26:49,594 - INFO - Validated that VN ctest-vn4-20186712 is not in any agent 2025-12-19 17:26:49,610 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20186712 info 2025-12-19 17:26:49,635 - INFO - Deleted policy ctest-policy1-23042987 2025-12-19 17:26:49,820 - DEBUG - policy ctest-policy1-23042987 is not found in API Server 2025-12-19 17:26:50,087 - DEBUG - No XMPP flaps were noticed during the test