2025-12-30 03:01:32,643 - INFO - Domain Default found not creating 2025-12-30 03:01:32,793 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77407780 not found, creating it 2025-12-30 03:01:33,228 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77407780, ID : 8a6e7e5c-41dd-402d-8e19-6cbdcc581b41 2025-12-30 03:01:34,602 - INFO - ================================================================================ 2025-12-30 03:01:34,602 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-30 03:01:34,854 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-30 03:01:34,854 - INFO - Initial checks done. Running the testcase now 2025-12-30 03:01:34,854 - INFO - 2025-12-30 03:01:34,854 - INFO - ================================================================================ 2025-12-30 03:01:34,854 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-30 03:01:34,854 - 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-30 03:01:35,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-30 03:01:35,150 - INFO - Initial checks done. Running the testcase now 2025-12-30 03:01:35,150 - INFO - 2025-12-30 03:01:35,491 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77407780:ctest-vn4-69320966, 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-77407780:ctest-vn4-69320966, 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-77407780:ctest-vn4-69320966, 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-77407780:ctest-vn4-69320966, 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-30 03:01:35,971 - DEBUG - Response for create_network : {'network': {'id': '0f9596ab-0b48-4e88-8384-029ed967a7a8', 'name': 'ctest-vn4-69320966', 'tenant_id': '8a6e7e5c41dd402d8e196cbdcc581b41', 'project_id': '8a6e7e5c41dd402d8e196cbdcc581b41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77407780', 'ctest-vn4-69320966'], 'port_security_enabled': True, 'description': ''}} 2025-12-30 03:01:36,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ddb66d6-809a-447f-9c6e-7c6106a0454f', 'name': '', 'tenant_id': '8a6e7e5c41dd402d8e196cbdcc581b41', 'network_id': '0f9596ab-0b48-4e88-8384-029ed967a7a8', 'ip_version': 4, 'cidr': '82.133.86.64/26', 'allocation_pools': [{'start': '82.133.86.66', 'end': '82.133.86.126'}], 'gateway_ip': '82.133.86.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.133.86.66', 'tags': [], 'project_id': '8a6e7e5c41dd402d8e196cbdcc581b41'}} 2025-12-30 03:01:36,366 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da90b526-1414-4cb6-9322-9abc901252bb', 'name': '', 'tenant_id': '8a6e7e5c41dd402d8e196cbdcc581b41', 'network_id': '0f9596ab-0b48-4e88-8384-029ed967a7a8', 'ip_version': 6, 'cidr': '309c:8d7e:c9d1:f43:bd50:979::/96', 'allocation_pools': [{'start': '309c:8d7e:c9d1:f43:bd50:979:0:2', 'end': '309c:8d7e:c9d1:f43:bd50:979:ffff:fffe'}], 'gateway_ip': '309c:8d7e:c9d1:f43:bd50:979:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '309c:8d7e:c9d1:f43:bd50:979:0:2', 'tags': [], 'project_id': '8a6e7e5c41dd402d8e196cbdcc581b41'}} 2025-12-30 03:01:36,383 - INFO - Created VN ctest-vn4-69320966 2025-12-30 03:01:36,434 - DEBUG - VN ctest-vn4-69320966 UUID is 0f9596ab-0b48-4e88-8384-029ed967a7a8 2025-12-30 03:01:36,672 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f9596ab-0b48-4e88-8384-029ed967a7a8', 'name': 'ctest-vn4-69320966', 'tenant_id': '8a6e7e5c41dd402d8e196cbdcc581b41', 'project_id': '8a6e7e5c41dd402d8e196cbdcc581b41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ddb66d6-809a-447f-9c6e-7c6106a0454f', 'da90b526-1414-4cb6-9322-9abc901252bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77407780', 'ctest-vn4-69320966'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77407780', 'ctest-policy1-72552286']], 'subnet_ipam': [{'subnet_cidr': '82.133.86.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '309c:8d7e:c9d1:f43:bd50:979::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-30 03:01:36,834 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-30 03:01:37,126 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-30 03:01:37,152 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6 2025-12-30 03:01:37,162 - DEBUG - Requesting: http://10.0.0.249:8082/project/8a6e7e5c-41dd-402d-8e19-6cbdcc581b41 2025-12-30 03:01:37,230 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f9596ab-0b48-4e88-8384-029ed967a7a8 2025-12-30 03:01:37,240 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f9596ab-0b48-4e88-8384-029ed967a7a8 2025-12-30 03:01:37,248 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b51085a-4efd-4dc3-a721-ab7154776580 2025-12-30 03:01:37,254 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b51085a-4efd-4dc3-a721-ab7154776580 2025-12-30 03:01:37,259 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0e78a84d-2506-4159-8e45-8c7aa8903bc7 2025-12-30 03:01:37,264 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-30 03:01:37,264 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f9596ab-0b48-4e88-8384-029ed967a7a8 2025-12-30 03:01:37,271 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b51085a-4efd-4dc3-a721-ab7154776580 2025-12-30 03:01:37,282 - INFO - Verified VN network id 11 for VN 0f9596ab-0b48-4e88-8384-029ed967a7a8 2025-12-30 03:01:37,282 - INFO - Verifications in API Server for VN ctest-vn4-69320966 passed 2025-12-30 03:01:37,282 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f9596ab-0b48-4e88-8384-029ed967a7a8 2025-12-30 03:01:37,290 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b51085a-4efd-4dc3-a721-ab7154776580 2025-12-30 03:01:37,295 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b51085a-4efd-4dc3-a721-ab7154776580 2025-12-30 03:01:37,300 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0e78a84d-2506-4159-8e45-8c7aa8903bc7 2025-12-30 03:01:37,309 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77407780:ctest-vn4-69320966', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77407780', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1122969343471668872', 'uuid-lslong': '9476702397169903528'}, 'enable': 'true', 'created': '2025-12-30T03:01:35', 'last-modified': '2025-12-30T03:01:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711260'} 2025-12-30 03:01:37,314 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-30 03:01:37,314 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69320966 passed 2025-12-30 03:01:37,314 - DEBUG - ====Verifying policy data for ctest-vn4-69320966 in API_Server ====== 2025-12-30 03:01:37,314 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-30 03:01:37,319 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6 2025-12-30 03:01:37,327 - DEBUG - Requesting: http://10.0.0.249:8082/project/8a6e7e5c-41dd-402d-8e19-6cbdcc581b41 2025-12-30 03:01:37,399 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f9596ab-0b48-4e88-8384-029ed967a7a8 2025-12-30 03:01:37,407 - DEBUG - ==>Verifying data for policy with id: 6217a574-ba18-4dce-a49d-553ad08bb752, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77407780', 'ctest-policy1-72552286'] 2025-12-30 03:01:37,407 - INFO - VN ctest-vn4-69320966 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-30 03:01:37,407 - DEBUG - Verifying the vn in opserver 2025-12-30 03:01:37,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77407780:ctest-vn4-69320966 virtual network link through opserver 10.0.0.249 2025-12-30 03:01:37,407 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-30 03:01:37,696 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-30 03:01:37,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77407780:ctest-vn4-69320966', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77407780:ctest-vn4-69320966?flat'} 2025-12-30 03:01:37,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77407780:ctest-vn4-69320966 is found in opserver 2025-12-30 03:01:37,759 - DEBUG - Do not have enough data to verify VN in agent 2025-12-30 03:01:37,763 - DEBUG - VRF ids for VN ctest-vn4-69320966: {} 2025-12-30 03:01:37,763 - DEBUG - ====Verifying data for ctest-policy1-72552286 in API_Server ====== 2025-12-30 03:01:37,763 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-30 03:01:37,768 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6 2025-12-30 03:01:37,776 - DEBUG - Requesting: http://10.0.0.249:8082/project/8a6e7e5c-41dd-402d-8e19-6cbdcc581b41 2025-12-30 03:01:37,841 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/6217a574-ba18-4dce-a49d-553ad08bb752 2025-12-30 03:01:37,848 - INFO - Verified policy ctest-policy1-72552286 in API Server, Result: True 2025-12-30 03:01:37,849 - INFO - Done with setup and verification, moving onto test .. 2025-12-30 03:01:37,855 - INFO - Deleting VN ctest-vn4-69320966 2025-12-30 03:01:37,952 - DEBUG - Response for deleting network () 2025-12-30 03:01:37,952 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b51085a-4efd-4dc3-a721-ab7154776580 2025-12-30 03:01:37,956 - DEBUG - Response Code: 404 2025-12-30 03:01:37,956 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-30 03:01:37,960 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6 2025-12-30 03:01:38,010 - DEBUG - Requesting: http://10.0.0.249:8082/project/8a6e7e5c-41dd-402d-8e19-6cbdcc581b41 2025-12-30 03:01:38,077 - INFO - Validated that VN ctest-vn4-69320966 is not found in API Server 2025-12-30 03:01:38,086 - DEBUG - VN ctest-vn4-69320966 is not present in Agent 10.0.0.249 2025-12-30 03:01:38,086 - INFO - Validated that VN ctest-vn4-69320966 is not in any agent 2025-12-30 03:01:38,098 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69320966 info 2025-12-30 03:01:38,117 - INFO - Deleted policy ctest-policy1-72552286 2025-12-30 03:01:38,273 - DEBUG - policy ctest-policy1-72552286 is not found in API Server 2025-12-30 03:01:38,525 - DEBUG - No XMPP flaps were noticed during the test
2025-12-30 03:01:38,526 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-30 03:01:38,526 - INFO - -------------------------------------------------------------------------------- 2025-12-30 03:01:38,814 - DEBUG - No XMPP flaps were noticed during the test
2025-12-30 03:01:38,814 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-30 03:01:38,814 - INFO - -------------------------------------------------------------------------------- 2025-12-30 03:01:39,462 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77407780, ID : 8a6e7e5c-41dd-402d-8e19-6cbdcc581b41