2025-11-17 02:06:13,568 - INFO - Domain Default found not creating 2025-11-17 02:06:13,732 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63700951 not found, creating it 2025-11-17 02:06:14,229 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63700951, ID : 99c88639-dc31-4341-8379-10938b36c824 2025-11-17 02:06:15,788 - INFO - ================================================================================ 2025-11-17 02:06:15,788 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 02:06:16,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with 2025-11-17 02:06:16,051 - INFO - Initial checks done. Running the testcase now 2025-11-17 02:06:16,051 - INFO - 2025-11-17 02:06:16,052 - INFO - ================================================================================ 2025-11-17 02:06:16,052 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 02:06:16,052 - 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-11-17 02:06:16,332 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with 2025-11-17 02:06:16,332 - INFO - Initial checks done. Running the testcase now 2025-11-17 02:06:16,332 - INFO - 2025-11-17 02:06:16,725 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63700951:ctest-vn4-53407220, 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-63700951:ctest-vn4-53407220, 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-63700951:ctest-vn4-53407220, 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-63700951:ctest-vn4-53407220, 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-11-17 02:06:17,218 - DEBUG - Response for create_network : {'network': {'id': '9d150754-bb78-4b89-9ea9-6cdf67ed1064', 'name': 'ctest-vn4-53407220', 'tenant_id': '99c88639dc314341837910938b36c824', 'project_id': '99c88639dc314341837910938b36c824', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63700951', 'ctest-vn4-53407220'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 02:06:17,395 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb595842-6869-4b66-8ab6-1a50aa0649b5', 'name': '', 'tenant_id': '99c88639dc314341837910938b36c824', 'network_id': '9d150754-bb78-4b89-9ea9-6cdf67ed1064', 'ip_version': 4, 'cidr': '20.55.177.64/26', 'allocation_pools': [{'start': '20.55.177.66', 'end': '20.55.177.126'}], 'gateway_ip': '20.55.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.55.177.66', 'tags': [], 'project_id': '99c88639dc314341837910938b36c824'}} 2025-11-17 02:06:17,587 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d9fd7b3-1993-403a-988a-1c83922908dc', 'name': '', 'tenant_id': '99c88639dc314341837910938b36c824', 'network_id': '9d150754-bb78-4b89-9ea9-6cdf67ed1064', 'ip_version': 6, 'cidr': '3e84:bb9d:a055:9d91:c84c:55fe::/96', 'allocation_pools': [{'start': '3e84:bb9d:a055:9d91:c84c:55fe:0:2', 'end': '3e84:bb9d:a055:9d91:c84c:55fe:ffff:fffe'}], 'gateway_ip': '3e84:bb9d:a055:9d91:c84c:55fe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e84:bb9d:a055:9d91:c84c:55fe:0:2', 'tags': [], 'project_id': '99c88639dc314341837910938b36c824'}} 2025-11-17 02:06:17,609 - INFO - Created VN ctest-vn4-53407220 2025-11-17 02:06:17,663 - DEBUG - VN ctest-vn4-53407220 UUID is 9d150754-bb78-4b89-9ea9-6cdf67ed1064 2025-11-17 02:06:17,851 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d150754-bb78-4b89-9ea9-6cdf67ed1064', 'name': 'ctest-vn4-53407220', 'tenant_id': '99c88639dc314341837910938b36c824', 'project_id': '99c88639dc314341837910938b36c824', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb595842-6869-4b66-8ab6-1a50aa0649b5', '2d9fd7b3-1993-403a-988a-1c83922908dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63700951', 'ctest-vn4-53407220'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63700951', 'ctest-policy1-58652445']], 'subnet_ipam': [{'subnet_cidr': '20.55.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e84:bb9d:a055:9d91:c84c:55fe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 02:06:18,015 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 02:06:18,347 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 02:06:18,377 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed 2025-11-17 02:06:18,390 - DEBUG - Requesting: http://10.0.0.141:8082/project/99c88639-dc31-4341-8379-10938b36c824 2025-11-17 02:06:18,462 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d150754-bb78-4b89-9ea9-6cdf67ed1064 2025-11-17 02:06:18,474 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d150754-bb78-4b89-9ea9-6cdf67ed1064 2025-11-17 02:06:18,483 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/de9acf9b-36a7-423a-9d77-d760919cf59f 2025-11-17 02:06:18,489 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/de9acf9b-36a7-423a-9d77-d760919cf59f 2025-11-17 02:06:18,495 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e34abfd7-943c-411d-b13f-f94259a06fdf 2025-11-17 02:06:18,501 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:06:18,501 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d150754-bb78-4b89-9ea9-6cdf67ed1064 2025-11-17 02:06:18,510 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/de9acf9b-36a7-423a-9d77-d760919cf59f 2025-11-17 02:06:18,523 - INFO - Verified VN network id 11 for VN 9d150754-bb78-4b89-9ea9-6cdf67ed1064 2025-11-17 02:06:18,523 - INFO - Verifications in API Server for VN ctest-vn4-53407220 passed 2025-11-17 02:06:18,523 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d150754-bb78-4b89-9ea9-6cdf67ed1064 2025-11-17 02:06:18,531 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/de9acf9b-36a7-423a-9d77-d760919cf59f 2025-11-17 02:06:18,537 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/de9acf9b-36a7-423a-9d77-d760919cf59f 2025-11-17 02:06:18,543 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e34abfd7-943c-411d-b13f-f94259a06fdf 2025-11-17 02:06:18,553 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63700951:ctest-vn4-53407220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63700951', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11318961298969480073', 'uuid-lslong': '11432788835833811044'}, 'enable': 'true', 'created': '2025-11-17T02:06:17', 'last-modified': '2025-11-17T02:06:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727101'} 2025-11-17 02:06:18,563 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:06:18,563 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53407220 passed 2025-11-17 02:06:18,563 - DEBUG - ====Verifying policy data for ctest-vn4-53407220 in API_Server ====== 2025-11-17 02:06:18,563 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 02:06:18,568 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed 2025-11-17 02:06:18,577 - DEBUG - Requesting: http://10.0.0.141:8082/project/99c88639-dc31-4341-8379-10938b36c824 2025-11-17 02:06:18,647 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d150754-bb78-4b89-9ea9-6cdf67ed1064 2025-11-17 02:06:18,657 - DEBUG - ==>Verifying data for policy with id: 4e1a0bd4-cd6c-4684-8642-a9b26a5aa10b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63700951', 'ctest-policy1-58652445'] 2025-11-17 02:06:18,657 - INFO - VN ctest-vn4-53407220 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 02:06:18,657 - DEBUG - Verifying the vn in opserver 2025-11-17 02:06:18,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63700951:ctest-vn4-53407220 virtual network link through opserver 10.0.0.141 2025-11-17 02:06:18,657 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-17 02:06:18,990 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-17 02:06:19,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63700951:ctest-vn4-53407220', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63700951:ctest-vn4-53407220?flat'} 2025-11-17 02:06:19,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63700951:ctest-vn4-53407220 is found in opserver 2025-11-17 02:06:19,072 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 02:06:19,077 - DEBUG - VRF ids for VN ctest-vn4-53407220: {} 2025-11-17 02:06:19,078 - DEBUG - ====Verifying data for ctest-policy1-58652445 in API_Server ====== 2025-11-17 02:06:19,078 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 02:06:19,084 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed 2025-11-17 02:06:19,096 - DEBUG - Requesting: http://10.0.0.141:8082/project/99c88639-dc31-4341-8379-10938b36c824 2025-11-17 02:06:19,167 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/4e1a0bd4-cd6c-4684-8642-a9b26a5aa10b 2025-11-17 02:06:19,176 - INFO - Verified policy ctest-policy1-58652445 in API Server, Result: True 2025-11-17 02:06:19,177 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 02:06:19,185 - INFO - Deleting VN ctest-vn4-53407220 2025-11-17 02:06:19,307 - DEBUG - Response for deleting network () 2025-11-17 02:06:19,307 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/de9acf9b-36a7-423a-9d77-d760919cf59f 2025-11-17 02:06:19,311 - DEBUG - Response Code: 404 2025-11-17 02:06:19,311 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 02:06:19,316 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed 2025-11-17 02:06:19,368 - DEBUG - Requesting: http://10.0.0.141:8082/project/99c88639-dc31-4341-8379-10938b36c824 2025-11-17 02:06:19,434 - INFO - Validated that VN ctest-vn4-53407220 is not found in API Server 2025-11-17 02:06:19,444 - DEBUG - VN ctest-vn4-53407220 is not present in Agent 10.0.0.141 2025-11-17 02:06:19,444 - INFO - Validated that VN ctest-vn4-53407220 is not in any agent 2025-11-17 02:06:19,460 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53407220 info 2025-11-17 02:06:19,483 - INFO - Deleted policy ctest-policy1-58652445 2025-11-17 02:06:19,647 - DEBUG - policy ctest-policy1-58652445 is not found in API Server 2025-11-17 02:06:19,900 - DEBUG - No XMPP flaps were noticed during the test
2025-11-17 02:06:19,900 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-11-17 02:06:19,900 - INFO - -------------------------------------------------------------------------------- 2025-11-17 02:06:20,192 - DEBUG - No XMPP flaps were noticed during the test
2025-11-17 02:06:20,192 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-17 02:06:20,192 - INFO - -------------------------------------------------------------------------------- 2025-11-17 02:06:20,930 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-63700951, ID : 99c88639-dc31-4341-8379-10938b36c824