2025-06-30 17:30:26,969 - INFO - Domain Default found not creating 2025-06-30 17:30:27,196 - INFO - Project ctest-TestBasicPolicy-21959084 not found, creating it 2025-06-30 17:30:27,731 - INFO - Created Project:ctest-TestBasicPolicy-21959084, ID : fc5806db-7c0f-430f-8d73-c9dda3953cff 2025-06-30 17:30:29,423 - INFO - ================================================================================ 2025-06-30 17:30:29,423 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-30 17:30:29,423 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-06-30 17:30:29,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-06-30 17:30:29,696 - INFO - Initial checks done. Running the testcase now 2025-06-30 17:30:29,696 - INFO - 2025-06-30 17:30:30,331 - DEBUG - Response for create_network : {'network': {'id': 'bb41b191-ac7b-408a-aa68-aa32b62e7f24', 'name': 'ctest-vn-91333288', 'tenant_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'project_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-vn-91333288'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:30:30,541 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b821786a-a45e-4140-a92d-d8c74877b905', 'name': '', 'tenant_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'network_id': 'bb41b191-ac7b-408a-aa68-aa32b62e7f24', 'ip_version': 4, 'cidr': '71.35.15.128/26', 'allocation_pools': [{'start': '71.35.15.130', 'end': '71.35.15.190'}], 'gateway_ip': '71.35.15.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.35.15.130', 'tags': [], 'project_id': 'fc5806db7c0f430f8d73c9dda3953cff'}} 2025-06-30 17:30:30,562 - INFO - Created VN ctest-vn-91333288 2025-06-30 17:30:30,619 - DEBUG - VN ctest-vn-91333288 UUID is bb41b191-ac7b-408a-aa68-aa32b62e7f24 2025-06-30 17:30:30,958 - DEBUG - Response for create_network : {'network': {'id': '8e8c874c-a386-4f1a-bbed-7c14ba838ea4', 'name': 'ctest-vn-42549788', 'tenant_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'project_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-vn-42549788'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:30:31,133 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc7092e3-96eb-4a3d-856c-f68085dda88f', 'name': '', 'tenant_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'network_id': '8e8c874c-a386-4f1a-bbed-7c14ba838ea4', 'ip_version': 4, 'cidr': '59.102.86.0/26', 'allocation_pools': [{'start': '59.102.86.2', 'end': '59.102.86.62'}], 'gateway_ip': '59.102.86.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.102.86.2', 'tags': [], 'project_id': 'fc5806db7c0f430f8d73c9dda3953cff'}} 2025-06-30 17:30:31,154 - INFO - Created VN ctest-vn-42549788 2025-06-30 17:30:31,210 - DEBUG - VN ctest-vn-42549788 UUID is 8e8c874c-a386-4f1a-bbed-7c14ba838ea4 2025-06-30 17:30:31,343 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-91333288, 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-TestBasicPolicy-21959084:ctest-vn-42549788, 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-06-30 17:30:31,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb41b191-ac7b-408a-aa68-aa32b62e7f24', 'name': 'ctest-vn-91333288', 'tenant_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'project_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b821786a-a45e-4140-a92d-d8c74877b905'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-vn-91333288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-policy-allow-all-39550933']], 'subnet_ipam': [{'subnet_cidr': '71.35.15.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:30:31,978 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e8c874c-a386-4f1a-bbed-7c14ba838ea4', 'name': 'ctest-vn-42549788', 'tenant_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'project_id': 'fc5806db7c0f430f8d73c9dda3953cff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc7092e3-96eb-4a3d-856c-f68085dda88f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-vn-42549788'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-policy-allow-all-39550933']], 'subnet_ipam': [{'subnet_cidr': '59.102.86.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:30:32,162 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-30 17:30:32,464 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-30 17:30:32,504 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e4daa926-7a4b-4447-91a5-a9b38c55be5a 2025-06-30 17:30:32,533 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc5806db-7c0f-430f-8d73-c9dda3953cff 2025-06-30 17:30:32,632 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb41b191-ac7b-408a-aa68-aa32b62e7f24 2025-06-30 17:30:32,649 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb41b191-ac7b-408a-aa68-aa32b62e7f24 2025-06-30 17:30:32,660 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0a8f013-0e4a-480b-87f4-013c3373a4e8 2025-06-30 17:30:32,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0a8f013-0e4a-480b-87f4-013c3373a4e8 2025-06-30 17:30:32,679 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/77e17949-3d25-4f31-bd85-d63289b65dd8 2025-06-30 17:30:32,689 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-30 17:30:32,689 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb41b191-ac7b-408a-aa68-aa32b62e7f24 2025-06-30 17:30:32,702 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0a8f013-0e4a-480b-87f4-013c3373a4e8 2025-06-30 17:30:32,725 - INFO - Verified VN network id 8 for VN bb41b191-ac7b-408a-aa68-aa32b62e7f24 2025-06-30 17:30:32,726 - INFO - Verifications in API Server for VN ctest-vn-91333288 passed 2025-06-30 17:30:32,726 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb41b191-ac7b-408a-aa68-aa32b62e7f24 2025-06-30 17:30:32,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0a8f013-0e4a-480b-87f4-013c3373a4e8 2025-06-30 17:30:32,753 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0a8f013-0e4a-480b-87f4-013c3373a4e8 2025-06-30 17:30:32,765 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/77e17949-3d25-4f31-bd85-d63289b65dd8 2025-06-30 17:30:32,784 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-91333288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21959084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13493261197800849546', 'uuid-lslong': '12279251518807244580'}, 'enable': 'true', 'created': '2025-06-30T17:30:30', 'last-modified': '2025-06-30T17:30:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.116549'} 2025-06-30 17:30:32,794 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-30 17:30:32,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91333288 passed 2025-06-30 17:30:32,795 - DEBUG - ====Verifying policy data for ctest-vn-91333288 in API_Server ====== 2025-06-30 17:30:32,795 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-30 17:30:32,804 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e4daa926-7a4b-4447-91a5-a9b38c55be5a 2025-06-30 17:30:32,822 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc5806db-7c0f-430f-8d73-c9dda3953cff 2025-06-30 17:30:32,909 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb41b191-ac7b-408a-aa68-aa32b62e7f24 2025-06-30 17:30:32,929 - DEBUG - ==>Verifying data for policy with id: 58bc7000-03d7-4ebe-91c5-53ee751e5a3a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-policy-allow-all-39550933'] 2025-06-30 17:30:32,929 - INFO - VN ctest-vn-91333288 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-30 17:30:32,929 - DEBUG - Verifying the vn in opserver 2025-06-30 17:30:32,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-91333288 virtual network link through opserver 10.0.0.50 2025-06-30 17:30:32,930 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-30 17:30:33,231 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-30 17:30:33,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-91333288', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-91333288?flat'} 2025-06-30 17:30:33,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-91333288 is found in opserver 2025-06-30 17:30:33,312 - DEBUG - Do not have enough data to verify VN in agent 2025-06-30 17:30:33,319 - DEBUG - VRF ids for VN ctest-vn-91333288: {} 2025-06-30 17:30:33,319 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-30 17:30:33,327 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e4daa926-7a4b-4447-91a5-a9b38c55be5a 2025-06-30 17:30:33,344 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc5806db-7c0f-430f-8d73-c9dda3953cff 2025-06-30 17:30:33,424 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e8c874c-a386-4f1a-bbed-7c14ba838ea4 2025-06-30 17:30:33,444 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e8c874c-a386-4f1a-bbed-7c14ba838ea4 2025-06-30 17:30:33,461 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f47c3f7d-6995-4168-a0cd-4107657abb29 2025-06-30 17:30:33,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f47c3f7d-6995-4168-a0cd-4107657abb29 2025-06-30 17:30:33,487 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8534fc39-f75f-4412-9fca-db11d3e1d77c 2025-06-30 17:30:33,499 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-30 17:30:33,499 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e8c874c-a386-4f1a-bbed-7c14ba838ea4 2025-06-30 17:30:33,517 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f47c3f7d-6995-4168-a0cd-4107657abb29 2025-06-30 17:30:33,543 - INFO - Verified VN network id 9 for VN 8e8c874c-a386-4f1a-bbed-7c14ba838ea4 2025-06-30 17:30:33,543 - INFO - Verifications in API Server for VN ctest-vn-42549788 passed 2025-06-30 17:30:33,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e8c874c-a386-4f1a-bbed-7c14ba838ea4 2025-06-30 17:30:33,563 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f47c3f7d-6995-4168-a0cd-4107657abb29 2025-06-30 17:30:33,576 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f47c3f7d-6995-4168-a0cd-4107657abb29 2025-06-30 17:30:33,588 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8534fc39-f75f-4412-9fca-db11d3e1d77c 2025-06-30 17:30:33,608 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-42549788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21959084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10271733613356011290', 'uuid-lslong': '13541616083043323556'}, 'enable': 'true', 'created': '2025-06-30T17:30:30', 'last-modified': '2025-06-30T17:30:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.651760'} 2025-06-30 17:30:33,617 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-30 17:30:33,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42549788 passed 2025-06-30 17:30:33,617 - DEBUG - ====Verifying policy data for ctest-vn-42549788 in API_Server ====== 2025-06-30 17:30:33,617 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-30 17:30:33,625 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e4daa926-7a4b-4447-91a5-a9b38c55be5a 2025-06-30 17:30:33,639 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc5806db-7c0f-430f-8d73-c9dda3953cff 2025-06-30 17:30:33,723 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e8c874c-a386-4f1a-bbed-7c14ba838ea4 2025-06-30 17:30:33,743 - DEBUG - ==>Verifying data for policy with id: 58bc7000-03d7-4ebe-91c5-53ee751e5a3a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21959084', 'ctest-policy-allow-all-39550933'] 2025-06-30 17:30:33,743 - INFO - VN ctest-vn-42549788 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-30 17:30:33,743 - DEBUG - Verifying the vn in opserver 2025-06-30 17:30:33,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-42549788 virtual network link through opserver 10.0.0.50 2025-06-30 17:30:33,743 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-30 17:30:33,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-42549788', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-42549788?flat'} 2025-06-30 17:30:33,759 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-42549788 is found in opserver 2025-06-30 17:30:33,777 - DEBUG - Do not have enough data to verify VN in agent 2025-06-30 17:30:33,783 - DEBUG - VRF ids for VN ctest-vn-42549788: {} 2025-06-30 17:30:33,846 - DEBUG - Services list from nova: [, , ] 2025-06-30 17:30:34,969 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3584-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3584-1) 2025-06-30 17:30:36,324 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3584-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3584-1) 2025-06-30 17:30:36,325 - INFO - Waiting for VM ctest-TestBasicPolicy-21959084-01783221 to be up.. 2025-06-30 17:30:36,418 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-30 17:30:41,539 - DEBUG - VM is in ACTIVE state now 2025-06-30 17:30:41,539 - INFO - VM name : ctest-TestBasicPolicy-21959084-01783221 2025-06-30 17:30:41,639 - DEBUG - VM ctest-TestBasicPolicy-21959084-01783221 ID is de39f7c6-174a-4fef-aa7f-fe583ccecf36 2025-06-30 17:30:41,660 - DEBUG - VM ctest-TestBasicPolicy-21959084-01783221 launched on Node cn-jenkins-deploy-platform-ansible-os-3584-1 2025-06-30 17:30:41,742 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/de39f7c6-174a-4fef-aa7f-fe583ccecf36 2025-06-30 17:30:41,753 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/8f5636d5-4703-43e2-bb50-bab9ea5ca461 2025-06-30 17:30:45,041 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1021ms') 2025-06-30 17:30:45,041 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21959084-01783221 failed! 2025-06-30 17:30:45,098 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21959084:ctest-vn-91333288 is 71.35.15.129 and allocation pool is NOT set 2025-06-30 17:30:47,163 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=10.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.01 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.012/5.959/10.906/4.947 ms') 2025-06-30 17:30:47,163 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21959084-01783221 passed 2025-06-30 17:30:47,323 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:47,323 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21959084-01783221, IP 71.35.15.131, Port 22 2025-06-30 17:30:47,486 - DEBUG - VM ctest-TestBasicPolicy-21959084-01783221 is ready for SSH connections 2025-06-30 17:30:47,487 - INFO - Waiting for VM ctest-TestBasicPolicy-21959084-08259431 to be up.. 2025-06-30 17:30:47,605 - DEBUG - VM is in ACTIVE state now 2025-06-30 17:30:47,605 - INFO - VM name : ctest-TestBasicPolicy-21959084-08259431 2025-06-30 17:30:47,703 - DEBUG - VM ctest-TestBasicPolicy-21959084-08259431 ID is 8370db10-fc75-4677-acc1-ee7aaec4653d 2025-06-30 17:30:47,703 - DEBUG - VM ctest-TestBasicPolicy-21959084-08259431 launched on Node cn-jenkins-deploy-platform-ansible-os-3584-1 2025-06-30 17:30:47,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/8370db10-fc75-4677-acc1-ee7aaec4653d 2025-06-30 17:30:47,812 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/6773800e-288a-45c6-8cdc-342760103354 2025-06-30 17:30:49,061 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.07 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.065/2.415/3.766/1.350 ms') 2025-06-30 17:30:49,061 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-21959084-08259431 passed 2025-06-30 17:30:49,218 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:49,219 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21959084-08259431, IP 59.102.86.3, Port 22 2025-06-30 17:30:49,275 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-30 17:30:49,388 - DEBUG - VM ctest-TestBasicPolicy-21959084-08259431 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-30 17:30:54,389 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:54,390 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21959084-08259431, IP 59.102.86.3, Port 22 2025-06-30 17:30:54,569 - DEBUG - VM ctest-TestBasicPolicy-21959084-08259431 is ready for SSH connections 2025-06-30 17:30:54,569 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:54,569 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.102.86.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-06-30 17:30:54,569 - DEBUG - ping -s 56 -c 3 -W 1 59.102.86.3 2025-06-30 17:30:58,394 - DEBUG - PING 59.102.86.3 (59.102.86.3): 56 data bytes 64 bytes from 59.102.86.3: seq=0 ttl=63 time=5.454 ms 64 bytes from 59.102.86.3: seq=1 ttl=63 time=1.248 ms 64 bytes from 59.102.86.3: seq=2 ttl=63 time=0.937 ms --- 59.102.86.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.937/2.546/5.454 ms 2025-06-30 17:30:58,394 - INFO - Ping to IP 59.102.86.3 from VM ctest-TestBasicPolicy-21959084-01783221 passed 2025-06-30 17:30:58,586 - DEBUG - Policy Update Response {"network-policy": {"uuid": "58bc7000-03d7-4ebe-91c5-53ee751e5a3a", "href": "http://10.0.0.50:8082/network-policy/58bc7000-03d7-4ebe-91c5-53ee751e5a3a"}} 2025-06-30 17:30:58,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:30:58,587 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.102.86.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-06-30 17:30:58,587 - DEBUG - ping -s 56 -c 3 -W 1 59.102.86.3 2025-06-30 17:31:01,820 - DEBUG - PING 59.102.86.3 (59.102.86.3): 56 data bytes 64 bytes from 59.102.86.3: seq=0 ttl=63 time=1.691 ms --- 59.102.86.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.691/1.691/1.691 ms 2025-06-30 17:31:01,821 - WARNING - Ping to IP 59.102.86.3 from VM ctest-TestBasicPolicy-21959084-01783221 failed 2025-06-30 17:31:01,821 - INFO - Deleting VM ctest-TestBasicPolicy-21959084-08259431 2025-06-30 17:31:01,902 - INFO - Deleting VM ctest-TestBasicPolicy-21959084-01783221 2025-06-30 17:31:02,401 - INFO - Deleted policy ctest-policy-allow-all-39550933 2025-06-30 17:31:02,401 - INFO - Deleting VN ctest-vn-42549788 2025-06-30 17:31:02,442 - DEBUG - VN 8e8c874c-a386-4f1a-bbed-7c14ba838ea4 still in use: Unable to complete operation on network 8e8c874c-a386-4f1a-bbed-7c14ba838ea4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f44dfb97-767d-49f1-8a61-4654ea865d14'] 2025-06-30 17:31:02,442 - WARNING - Deleting VN ctest-vn-42549788 failed..Will retry 2025-06-30 17:31:04,569 - DEBUG - Response for deleting network () 2025-06-30 17:31:04,569 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f47c3f7d-6995-4168-a0cd-4107657abb29 2025-06-30 17:31:04,578 - DEBUG - Response Code: 404 2025-06-30 17:31:04,579 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-30 17:31:04,585 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e4daa926-7a4b-4447-91a5-a9b38c55be5a 2025-06-30 17:31:04,642 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc5806db-7c0f-430f-8d73-c9dda3953cff 2025-06-30 17:31:04,726 - INFO - Validated that VN ctest-vn-42549788 is not found in API Server 2025-06-30 17:31:04,741 - DEBUG - VN ctest-vn-42549788 is not present in Agent 10.0.0.50 2025-06-30 17:31:04,741 - INFO - Validated that VN ctest-vn-42549788 is not in any agent 2025-06-30 17:31:04,765 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42549788 info 2025-06-30 17:31:04,765 - INFO - Deleting VN ctest-vn-91333288 2025-06-30 17:31:04,907 - DEBUG - Response for deleting network () 2025-06-30 17:31:04,907 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0a8f013-0e4a-480b-87f4-013c3373a4e8 2025-06-30 17:31:04,916 - DEBUG - Response Code: 404 2025-06-30 17:31:04,917 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-30 17:31:04,924 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e4daa926-7a4b-4447-91a5-a9b38c55be5a 2025-06-30 17:31:04,986 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc5806db-7c0f-430f-8d73-c9dda3953cff 2025-06-30 17:31:05,059 - INFO - Validated that VN ctest-vn-91333288 is not found in API Server 2025-06-30 17:31:05,072 - DEBUG - VN ctest-vn-91333288 is not present in Agent 10.0.0.50 2025-06-30 17:31:05,072 - INFO - Validated that VN ctest-vn-91333288 is not in any agent 2025-06-30 17:31:05,093 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91333288 info 2025-06-30 17:31:05,381 - DEBUG - No XMPP flaps were noticed during the test 2025-06-30 17:31:05,381 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-06-30 17:31:05,381 - INFO - -------------------------------------------------------------------------------- 2025-06-30 17:31:06,076 - INFO - Deleted project: ctest-TestBasicPolicy-21959084, ID : fc5806db-7c0f-430f-8d73-c9dda3953cff