2025-01-07 16:16:45,956 - INFO - Domain Default found not creating 2025-01-07 16:16:46,109 - INFO - Project ctest-TestRoutersBasic-58083963 not found, creating it 2025-01-07 16:16:46,661 - INFO - Created Project:ctest-TestRoutersBasic-58083963, ID : 7a21dbe8-4bd1-4f8e-bb79-9cdc1114c4c3 2025-01-07 16:16:48,219 - INFO - ================================================================================ 2025-01-07 16:16:48,219 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-07 16:16:48,219 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2025-01-07 16:16:48,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.18': '0'}} with 2025-01-07 16:16:48,476 - INFO - Initial checks done. Running the testcase now 2025-01-07 16:16:48,476 - INFO - 2025-01-07 16:16:49,207 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-58083963 2025-01-07 16:16:49,302 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-58083963 2025-01-07 16:16:49,638 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58083963', 'default']} 2025-01-07 16:16:49,988 - DEBUG - Response for create_network : {'network': {'id': '00f85ca7-92bf-48f3-bbf3-526e579f2758', 'name': 'ctest-vn-93364015', 'tenant_id': '7a21dbe84bd14f8ebb799cdc1114c4c3', 'project_id': '7a21dbe84bd14f8ebb799cdc1114c4c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58083963', 'ctest-vn-93364015'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 16:16:50,204 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be364699-8df8-429a-b153-92e550adc75e', 'name': '', 'tenant_id': '7a21dbe84bd14f8ebb799cdc1114c4c3', 'network_id': '00f85ca7-92bf-48f3-bbf3-526e579f2758', 'ip_version': 4, 'cidr': '157.205.91.64/26', 'allocation_pools': [{'start': '157.205.91.66', 'end': '157.205.91.126'}], 'gateway_ip': '157.205.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.205.91.66', 'tags': [], 'project_id': '7a21dbe84bd14f8ebb799cdc1114c4c3'}} 2025-01-07 16:16:50,226 - INFO - Created VN ctest-vn-93364015 2025-01-07 16:16:50,282 - DEBUG - VN ctest-vn-93364015 UUID is 00f85ca7-92bf-48f3-bbf3-526e579f2758 2025-01-07 16:16:50,611 - DEBUG - Response for create_network : {'network': {'id': '6370d783-0280-46d4-b0b5-41a3c8f4573f', 'name': 'ctest-ext_vn-97912496', 'tenant_id': '7a21dbe84bd14f8ebb799cdc1114c4c3', 'project_id': '7a21dbe84bd14f8ebb799cdc1114c4c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58083963', 'ctest-ext_vn-97912496'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 16:16:50,797 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0dd6740-85b4-402b-a9d6-39cbde438873', 'name': '', 'tenant_id': '7a21dbe84bd14f8ebb799cdc1114c4c3', 'network_id': '6370d783-0280-46d4-b0b5-41a3c8f4573f', 'ip_version': 4, 'cidr': '183.163.255.192/26', 'allocation_pools': [{'start': '183.163.255.194', 'end': '183.163.255.254'}], 'gateway_ip': '183.163.255.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.163.255.194', 'tags': [], 'project_id': '7a21dbe84bd14f8ebb799cdc1114c4c3'}} 2025-01-07 16:16:50,817 - INFO - Created VN ctest-ext_vn-97912496 2025-01-07 16:16:50,870 - DEBUG - VN ctest-ext_vn-97912496 UUID is 6370d783-0280-46d4-b0b5-41a3c8f4573f 2025-01-07 16:16:51,044 - DEBUG - Services list from nova: [, , ] 2025-01-07 16:16:52,113 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2551-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2551-1) 2025-01-07 16:16:53,435 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2551-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2551-1) 2025-01-07 16:16:53,563 - INFO - Setting gateway for router cd364da6-9c75-4b48-9d16-00c5f4f231ce to network 6370d783-0280-46d4-b0b5-41a3c8f4573f 2025-01-07 16:16:53,733 - INFO - Adding interface with subnet_id be364699-8df8-429a-b153-92e550adc75e, port_id None to router cd364da6-9c75-4b48-9d16-00c5f4f231ce 2025-01-07 16:16:54,483 - INFO - Waiting for VM ctest-TestRoutersBasic-58083963-21256915 to be up.. 2025-01-07 16:16:54,680 - DEBUG - VM is in ACTIVE state now 2025-01-07 16:16:54,680 - INFO - VM name : ctest-TestRoutersBasic-58083963-21256915 2025-01-07 16:16:54,824 - DEBUG - VM ctest-TestRoutersBasic-58083963-21256915 ID is d840d25e-2f38-4626-a4de-53925687f858 2025-01-07 16:16:54,856 - DEBUG - VM ctest-TestRoutersBasic-58083963-21256915 launched on Node cn-jenkins-deploy-platform-ansible-os-2551-1 2025-01-07 16:16:54,987 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/d840d25e-2f38-4626-a4de-53925687f858 2025-01-07 16:16:55,306 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/d840d25e-2f38-4626-a4de-53925687f858 2025-01-07 16:16:55,355 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/06fb5b64-2a02-4dff-ab96-1e1c4b95a2c9 2025-01-07 16:16:58,732 - 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 1027ms') 2025-01-07 16:16:58,732 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-58083963-21256915 failed! 2025-01-07 16:16:58,790 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-58083963:ctest-vn-93364015 is 157.205.91.65 and allocation pool is NOT set 2025-01-07 16:17:02,860 - 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 1008ms') 2025-01-07 16:17:02,861 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-58083963-21256915 failed! 2025-01-07 16:17:02,918 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-58083963:ctest-vn-93364015 is 157.205.91.65 and allocation pool is NOT set 2025-01-07 16:17:04,983 - 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=3.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.680 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 = 0.680/1.955/3.230/1.275 ms') 2025-01-07 16:17:04,983 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-58083963-21256915 passed 2025-01-07 16:17:05,146 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 16:17:05,146 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-58083963-21256915, IP 157.205.91.67, Port 22 2025-01-07 16:17:05,303 - DEBUG - VM ctest-TestRoutersBasic-58083963-21256915 is ready for SSH connections 2025-01-07 16:17:05,303 - INFO - Waiting for VM ctest-TestRoutersBasic-58083963-15364965 to be up.. 2025-01-07 16:17:05,395 - DEBUG - VM is in ACTIVE state now 2025-01-07 16:17:05,395 - INFO - VM name : ctest-TestRoutersBasic-58083963-15364965 2025-01-07 16:17:05,495 - DEBUG - VM ctest-TestRoutersBasic-58083963-15364965 ID is f3d719af-ebad-4912-a109-85abab8522e1 2025-01-07 16:17:05,496 - DEBUG - VM ctest-TestRoutersBasic-58083963-15364965 launched on Node cn-jenkins-deploy-platform-ansible-os-2551-1 2025-01-07 16:17:05,592 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/f3d719af-ebad-4912-a109-85abab8522e1 2025-01-07 16:17:05,603 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/805a3a0a-bce9-4fb0-b691-469fc3852aad 2025-01-07 16:17:06,858 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.780 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.780/1.909/3.038/1.129 ms') 2025-01-07 16:17:06,858 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-58083963-15364965 passed 2025-01-07 16:17:07,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 16:17:07,016 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-58083963-15364965, IP 183.163.255.195, Port 22 2025-01-07 16:17:07,185 - DEBUG - VM ctest-TestRoutersBasic-58083963-15364965 is ready for SSH connections 2025-01-07 16:17:07,185 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 16:17:07,185 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.163.255.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-01-07 16:17:07,186 - DEBUG - ping -s 56 -c 3 -W 1 183.163.255.195 2025-01-07 16:17:10,873 - DEBUG - PING 183.163.255.195 (183.163.255.195): 56 data bytes 64 bytes from 183.163.255.195: seq=0 ttl=62 time=6.835 ms 64 bytes from 183.163.255.195: seq=1 ttl=62 time=0.918 ms 64 bytes from 183.163.255.195: seq=2 ttl=62 time=1.206 ms --- 183.163.255.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.918/2.986/6.835 ms 2025-01-07 16:17:10,873 - INFO - Ping to IP 183.163.255.195 from VM ctest-TestRoutersBasic-58083963-21256915 passed 2025-01-07 16:17:10,873 - INFO - Deleting interface with subnet_id be364699-8df8-429a-b153-92e550adc75e, port_id None from router cd364da6-9c75-4b48-9d16-00c5f4f231ce 2025-01-07 16:17:11,117 - INFO - Deleting VM ctest-TestRoutersBasic-58083963-15364965 2025-01-07 16:17:11,206 - INFO - Deleting VM ctest-TestRoutersBasic-58083963-21256915 2025-01-07 16:17:11,313 - INFO - Deleting VN ctest-ext_vn-97912496 2025-01-07 16:17:11,403 - DEBUG - VN 6370d783-0280-46d4-b0b5-41a3c8f4573f still in use: Unable to complete operation on network 6370d783-0280-46d4-b0b5-41a3c8f4573f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3716326a-a544-436e-874b-884cce2fba01'] 2025-01-07 16:17:11,403 - WARNING - Deleting VN ctest-ext_vn-97912496 failed..Will retry 2025-01-07 16:17:13,518 - DEBUG - Response for deleting network () 2025-01-07 16:17:13,518 - INFO - Deleting VN ctest-vn-93364015 2025-01-07 16:17:13,628 - DEBUG - Response for deleting network () 2025-01-07 16:17:13,885 - DEBUG - No XMPP flaps were noticed during the test 2025-01-07 16:17:13,885 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-01-07 16:17:13,885 - INFO - -------------------------------------------------------------------------------- 2025-01-07 16:17:14,578 - INFO - Deleted project: ctest-TestRoutersBasic-58083963, ID : 7a21dbe8-4bd1-4f8e-bb79-9cdc1114c4c3