2025-07-22 20:59:59,305 - INFO - Domain Default found not creating 2025-07-22 20:59:59,446 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17024200 not found, creating it 2025-07-22 20:59:59,888 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17024200, ID : 73e0f519-2fa6-4364-922a-9e68e22dd960 2025-07-22 21:00:01,330 - INFO - ================================================================================ 2025-07-22 21:00:01,330 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 21:00:01,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-07-22 21:00:01,584 - INFO - Initial checks done. Running the testcase now 2025-07-22 21:00:01,584 - INFO - 2025-07-22 21:00:01,584 - INFO - ================================================================================ 2025-07-22 21:00:01,584 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 21:00:01,584 - 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-07-22 21:00:01,872 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-07-22 21:00:01,872 - INFO - Initial checks done. Running the testcase now 2025-07-22 21:00:01,872 - INFO - 2025-07-22 21:00:02,214 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17024200:ctest-vn4-30355898, 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-17024200:ctest-vn4-30355898, 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-17024200:ctest-vn4-30355898, 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-17024200:ctest-vn4-30355898, 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-07-22 21:00:02,752 - DEBUG - Response for create_network : {'network': {'id': '8c7af014-9d0a-478e-a752-6ecd2a84a758', 'name': 'ctest-vn4-30355898', 'tenant_id': '73e0f5192fa64364922a9e68e22dd960', 'project_id': '73e0f5192fa64364922a9e68e22dd960', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17024200', 'ctest-vn4-30355898'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 21:00:02,920 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd24ba081-3e66-4a23-ab8e-bda0f937f221', 'name': '', 'tenant_id': '73e0f5192fa64364922a9e68e22dd960', 'network_id': '8c7af014-9d0a-478e-a752-6ecd2a84a758', 'ip_version': 4, 'cidr': '62.165.220.0/26', 'allocation_pools': [{'start': '62.165.220.2', 'end': '62.165.220.62'}], 'gateway_ip': '62.165.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.165.220.2', 'tags': [], 'project_id': '73e0f5192fa64364922a9e68e22dd960'}} 2025-07-22 21:00:03,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '372ae600-3523-483b-9e31-078cd53666e9', 'name': '', 'tenant_id': '73e0f5192fa64364922a9e68e22dd960', 'network_id': '8c7af014-9d0a-478e-a752-6ecd2a84a758', 'ip_version': 6, 'cidr': '2aa0:5d0c:a30f:cc00:b6ae:b432::/96', 'allocation_pools': [{'start': '2aa0:5d0c:a30f:cc00:b6ae:b432:0:2', 'end': '2aa0:5d0c:a30f:cc00:b6ae:b432:ffff:fffe'}], 'gateway_ip': '2aa0:5d0c:a30f:cc00:b6ae:b432:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2aa0:5d0c:a30f:cc00:b6ae:b432:0:2', 'tags': [], 'project_id': '73e0f5192fa64364922a9e68e22dd960'}} 2025-07-22 21:00:03,149 - INFO - Created VN ctest-vn4-30355898 2025-07-22 21:00:03,202 - DEBUG - VN ctest-vn4-30355898 UUID is 8c7af014-9d0a-478e-a752-6ecd2a84a758 2025-07-22 21:00:03,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c7af014-9d0a-478e-a752-6ecd2a84a758', 'name': 'ctest-vn4-30355898', 'tenant_id': '73e0f5192fa64364922a9e68e22dd960', 'project_id': '73e0f5192fa64364922a9e68e22dd960', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d24ba081-3e66-4a23-ab8e-bda0f937f221', '372ae600-3523-483b-9e31-078cd53666e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17024200', 'ctest-vn4-30355898'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17024200', 'ctest-policy1-79553714']], 'subnet_ipam': [{'subnet_cidr': '62.165.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2aa0:5d0c:a30f:cc00:b6ae:b432::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 21:00:03,578 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 21:00:03,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 21:00:03,901 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4259d16-1775-42ac-a72f-de4d258d82f9 2025-07-22 21:00:03,914 - DEBUG - Requesting: http://10.0.0.38:8082/project/73e0f519-2fa6-4364-922a-9e68e22dd960 2025-07-22 21:00:03,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c7af014-9d0a-478e-a752-6ecd2a84a758 2025-07-22 21:00:04,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c7af014-9d0a-478e-a752-6ecd2a84a758 2025-07-22 21:00:04,015 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a3b2f66-a0fc-41bd-9f85-e6532d580a52 2025-07-22 21:00:04,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a3b2f66-a0fc-41bd-9f85-e6532d580a52 2025-07-22 21:00:04,030 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cc0652bf-39a1-4f6a-a021-a2cb31b57e12 2025-07-22 21:00:04,038 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 21:00:04,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c7af014-9d0a-478e-a752-6ecd2a84a758 2025-07-22 21:00:04,050 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a3b2f66-a0fc-41bd-9f85-e6532d580a52 2025-07-22 21:00:04,066 - INFO - Verified VN network id 12 for VN 8c7af014-9d0a-478e-a752-6ecd2a84a758 2025-07-22 21:00:04,066 - INFO - Verifications in API Server for VN ctest-vn4-30355898 passed 2025-07-22 21:00:04,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c7af014-9d0a-478e-a752-6ecd2a84a758 2025-07-22 21:00:04,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a3b2f66-a0fc-41bd-9f85-e6532d580a52 2025-07-22 21:00:04,087 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a3b2f66-a0fc-41bd-9f85-e6532d580a52 2025-07-22 21:00:04,096 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cc0652bf-39a1-4f6a-a021-a2cb31b57e12 2025-07-22 21:00:04,110 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17024200:ctest-vn4-30355898', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17024200', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10122667083793319822', 'uuid-lslong': '12056820979884926808'}, 'enable': 'true', 'created': '2025-07-22T21:00:02', 'last-modified': '2025-07-22T21:00:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729810'} 2025-07-22 21:00:04,118 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 21:00:04,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30355898 passed 2025-07-22 21:00:04,118 - DEBUG - ====Verifying policy data for ctest-vn4-30355898 in API_Server ====== 2025-07-22 21:00:04,118 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 21:00:04,126 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4259d16-1775-42ac-a72f-de4d258d82f9 2025-07-22 21:00:04,140 - DEBUG - Requesting: http://10.0.0.38:8082/project/73e0f519-2fa6-4364-922a-9e68e22dd960 2025-07-22 21:00:04,214 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8c7af014-9d0a-478e-a752-6ecd2a84a758 2025-07-22 21:00:04,227 - DEBUG - ==>Verifying data for policy with id: 8d847060-d4ad-445c-ae3b-42e5c5d00849, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17024200', 'ctest-policy1-79553714'] 2025-07-22 21:00:04,227 - INFO - VN ctest-vn4-30355898 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 21:00:04,227 - DEBUG - Verifying the vn in opserver 2025-07-22 21:00:04,227 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17024200:ctest-vn4-30355898 virtual network link through opserver 10.0.0.38 2025-07-22 21:00:04,228 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-22 21:00:04,531 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-22 21:00:04,591 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17024200:ctest-vn4-30355898', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17024200:ctest-vn4-30355898?flat'} 2025-07-22 21:00:04,591 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17024200:ctest-vn4-30355898 is found in opserver 2025-07-22 21:00:04,602 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 21:00:04,607 - DEBUG - VRF ids for VN ctest-vn4-30355898: {} 2025-07-22 21:00:04,607 - DEBUG - ====Verifying data for ctest-policy1-79553714 in API_Server ====== 2025-07-22 21:00:04,607 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 21:00:04,613 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4259d16-1775-42ac-a72f-de4d258d82f9 2025-07-22 21:00:04,625 - DEBUG - Requesting: http://10.0.0.38:8082/project/73e0f519-2fa6-4364-922a-9e68e22dd960 2025-07-22 21:00:04,700 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/8d847060-d4ad-445c-ae3b-42e5c5d00849 2025-07-22 21:00:04,711 - INFO - Verified policy ctest-policy1-79553714 in API Server, Result: True 2025-07-22 21:00:04,711 - INFO - Done with setup and verification, moving onto test .. 2025-07-22 21:00:04,719 - INFO - Deleting VN ctest-vn4-30355898 2025-07-22 21:00:04,867 - DEBUG - Response for deleting network () 2025-07-22 21:00:04,867 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a3b2f66-a0fc-41bd-9f85-e6532d580a52 2025-07-22 21:00:04,873 - DEBUG - Response Code: 404 2025-07-22 21:00:04,873 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-22 21:00:04,880 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4259d16-1775-42ac-a72f-de4d258d82f9 2025-07-22 21:00:04,937 - DEBUG - Requesting: http://10.0.0.38:8082/project/73e0f519-2fa6-4364-922a-9e68e22dd960 2025-07-22 21:00:05,012 - INFO - Validated that VN ctest-vn4-30355898 is not found in API Server 2025-07-22 21:00:05,027 - DEBUG - VN ctest-vn4-30355898 is not present in Agent 10.0.0.38 2025-07-22 21:00:05,027 - INFO - Validated that VN ctest-vn4-30355898 is not in any agent 2025-07-22 21:00:05,046 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30355898 info 2025-07-22 21:00:05,074 - INFO - Deleted policy ctest-policy1-79553714 2025-07-22 21:00:05,242 - DEBUG - policy ctest-policy1-79553714 is not found in API Server 2025-07-22 21:00:05,507 - DEBUG - No XMPP flaps were noticed during the test