2024-08-30 14:50:38,018 - INFO - Domain Default found not creating 2024-08-30 14:50:38,194 - INFO - Project ctest-TestRoutersBasic-78992381 not found, creating it 2024-08-30 14:50:38,687 - INFO - Created Project:ctest-TestRoutersBasic-78992381, ID : 7fc05953-0925-4875-8c49-ba1d5d25c473 2024-08-30 14:50:40,345 - INFO - ================================================================================ 2024-08-30 14:50:40,345 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-30 14:50:40,345 - 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 2024-08-30 14:50:40,603 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.20': '0'}} with 2024-08-30 14:50:40,603 - INFO - Initial checks done. Running the testcase now 2024-08-30 14:50:40,603 - INFO - 2024-08-30 14:50:41,336 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-78992381 2024-08-30 14:50:41,436 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-78992381 2024-08-30 14:50:41,772 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78992381', 'default']} 2024-08-30 14:50:42,085 - DEBUG - Response for create_network : {'network': {'id': '745c0326-fd0a-4948-a743-89575ab68aa6', 'name': 'ctest-vn-75068267', 'tenant_id': '7fc05953092548758c49ba1d5d25c473', 'project_id': '7fc05953092548758c49ba1d5d25c473', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78992381', 'ctest-vn-75068267'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:50:42,264 - DEBUG - Response for create_subnet : {'subnet': {'id': '174c5085-f6c0-4377-bc0b-aa2068689e39', 'name': '', 'tenant_id': '7fc05953092548758c49ba1d5d25c473', 'network_id': '745c0326-fd0a-4948-a743-89575ab68aa6', 'ip_version': 4, 'cidr': '62.101.206.64/26', 'allocation_pools': [{'start': '62.101.206.66', 'end': '62.101.206.126'}], 'gateway_ip': '62.101.206.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.101.206.66', 'tags': [], 'project_id': '7fc05953092548758c49ba1d5d25c473'}} 2024-08-30 14:50:42,284 - INFO - Created VN ctest-vn-75068267 2024-08-30 14:50:42,336 - DEBUG - VN ctest-vn-75068267 UUID is 745c0326-fd0a-4948-a743-89575ab68aa6 2024-08-30 14:50:42,758 - DEBUG - Response for create_network : {'network': {'id': '7e669168-5790-4edf-bd1a-42c0fabe48ba', 'name': 'ctest-ext_vn-81596710', 'tenant_id': '7fc05953092548758c49ba1d5d25c473', 'project_id': '7fc05953092548758c49ba1d5d25c473', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78992381', 'ctest-ext_vn-81596710'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:50:42,984 - DEBUG - Response for create_subnet : {'subnet': {'id': '605358b1-e2ca-44d4-b38d-654b63e0a28c', 'name': '', 'tenant_id': '7fc05953092548758c49ba1d5d25c473', 'network_id': '7e669168-5790-4edf-bd1a-42c0fabe48ba', 'ip_version': 4, 'cidr': '96.88.141.192/26', 'allocation_pools': [{'start': '96.88.141.194', 'end': '96.88.141.254'}], 'gateway_ip': '96.88.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.88.141.194', 'tags': [], 'project_id': '7fc05953092548758c49ba1d5d25c473'}} 2024-08-30 14:50:43,005 - INFO - Created VN ctest-ext_vn-81596710 2024-08-30 14:50:43,056 - DEBUG - VN ctest-ext_vn-81596710 UUID is 7e669168-5790-4edf-bd1a-42c0fabe48ba 2024-08-30 14:50:43,232 - DEBUG - Services list from nova: [, , ] 2024-08-30 14:50:44,288 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1823-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1823-1) 2024-08-30 14:50:45,483 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1823-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1823-1) 2024-08-30 14:50:45,562 - INFO - Setting gateway for router dcb6a582-4241-45ce-a9a3-2c296372ba63 to network 7e669168-5790-4edf-bd1a-42c0fabe48ba 2024-08-30 14:50:45,643 - INFO - Adding interface with subnet_id 174c5085-f6c0-4377-bc0b-aa2068689e39, port_id None to router dcb6a582-4241-45ce-a9a3-2c296372ba63 2024-08-30 14:50:46,082 - INFO - Waiting for VM ctest-TestRoutersBasic-78992381-79393388 to be up.. 2024-08-30 14:50:46,210 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-30 14:50:51,314 - DEBUG - VM is in ACTIVE state now 2024-08-30 14:50:51,314 - INFO - VM name : ctest-TestRoutersBasic-78992381-79393388 2024-08-30 14:50:51,414 - DEBUG - VM ctest-TestRoutersBasic-78992381-79393388 ID is 0aafbaa7-f1d0-4cfe-a1bd-614d5296194b 2024-08-30 14:50:51,437 - DEBUG - VM ctest-TestRoutersBasic-78992381-79393388 launched on Node cn-jenkins-deploy-platform-ansible-os-1823-1 2024-08-30 14:50:51,553 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0aafbaa7-f1d0-4cfe-a1bd-614d5296194b 2024-08-30 14:50:51,857 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0aafbaa7-f1d0-4cfe-a1bd-614d5296194b 2024-08-30 14:50:51,906 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/3b5172a4-b5c0-4364-9191-38a75dfdaf74 2024-08-30 14:50:55,198 - 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 1023ms') 2024-08-30 14:50:55,199 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78992381-79393388 failed! 2024-08-30 14:50:55,256 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-78992381:ctest-vn-75068267 is 62.101.206.65 and allocation pool is NOT set 2024-08-30 14:50:57,322 - 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=4.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.450 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.450/2.452/4.454/2.002 ms') 2024-08-30 14:50:57,322 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78992381-79393388 passed 2024-08-30 14:50:57,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:50:57,476 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78992381-79393388, IP 62.101.206.67, Port 22 2024-08-30 14:50:57,631 - DEBUG - VM ctest-TestRoutersBasic-78992381-79393388 is ready for SSH connections 2024-08-30 14:50:57,632 - INFO - Waiting for VM ctest-TestRoutersBasic-78992381-12544484 to be up.. 2024-08-30 14:50:57,719 - DEBUG - VM is in ACTIVE state now 2024-08-30 14:50:57,719 - INFO - VM name : ctest-TestRoutersBasic-78992381-12544484 2024-08-30 14:50:57,801 - DEBUG - VM ctest-TestRoutersBasic-78992381-12544484 ID is 7e9d5b29-5182-4f35-965a-9762b3585473 2024-08-30 14:50:57,801 - DEBUG - VM ctest-TestRoutersBasic-78992381-12544484 launched on Node cn-jenkins-deploy-platform-ansible-os-1823-1 2024-08-30 14:50:57,910 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/7e9d5b29-5182-4f35-965a-9762b3585473 2024-08-30 14:50:57,920 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/c2c3202a-2aee-4901-9660-61f112d9ae0f 2024-08-30 14:50:59,161 - 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=5.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.77 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 = 1.768/3.483/5.199/1.715 ms') 2024-08-30 14:50:59,161 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-78992381-12544484 passed 2024-08-30 14:50:59,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:50:59,312 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78992381-12544484, IP 96.88.141.195, Port 22 2024-08-30 14:50:59,369 - 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': ''} 2024-08-30 14:50:59,464 - DEBUG - VM ctest-TestRoutersBasic-78992381-12544484 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-30 14:51:04,465 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:04,465 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78992381-12544484, IP 96.88.141.195, Port 22 2024-08-30 14:51:04,624 - DEBUG - VM ctest-TestRoutersBasic-78992381-12544484 is ready for SSH connections 2024-08-30 14:51:04,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:04,624 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.88.141.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-30 14:51:04,625 - DEBUG - ping -s 56 -c 3 -W 1 96.88.141.195 2024-08-30 14:51:08,331 - DEBUG - PING 96.88.141.195 (96.88.141.195): 56 data bytes 64 bytes from 96.88.141.195: seq=0 ttl=62 time=7.040 ms 64 bytes from 96.88.141.195: seq=1 ttl=62 time=1.260 ms 64 bytes from 96.88.141.195: seq=2 ttl=62 time=0.944 ms --- 96.88.141.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.944/3.081/7.040 ms 2024-08-30 14:51:08,331 - INFO - Ping to IP 96.88.141.195 from VM ctest-TestRoutersBasic-78992381-79393388 passed 2024-08-30 14:51:08,331 - INFO - Deleting interface with subnet_id 174c5085-f6c0-4377-bc0b-aa2068689e39, port_id None from router dcb6a582-4241-45ce-a9a3-2c296372ba63 2024-08-30 14:51:08,555 - INFO - Deleting VM ctest-TestRoutersBasic-78992381-12544484 2024-08-30 14:51:08,642 - INFO - Deleting VM ctest-TestRoutersBasic-78992381-79393388 2024-08-30 14:51:08,729 - INFO - Deleting VN ctest-ext_vn-81596710 2024-08-30 14:51:08,816 - DEBUG - VN 7e669168-5790-4edf-bd1a-42c0fabe48ba still in use: Unable to complete operation on network 7e669168-5790-4edf-bd1a-42c0fabe48ba. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1568024b-b429-455a-912b-33b398d9036e'] 2024-08-30 14:51:08,816 - WARNING - Deleting VN ctest-ext_vn-81596710 failed..Will retry 2024-08-30 14:51:10,932 - DEBUG - Response for deleting network () 2024-08-30 14:51:10,932 - INFO - Deleting VN ctest-vn-75068267 2024-08-30 14:51:11,068 - DEBUG - Response for deleting network () 2024-08-30 14:51:11,323 - DEBUG - No XMPP flaps were noticed during the test
2024-08-30 14:51:11,323 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2024-08-30 14:51:11,323 - INFO - -------------------------------------------------------------------------------- 2024-08-30 14:51:12,027 - INFO - Deleted project: ctest-TestRoutersBasic-78992381, ID : 7fc05953-0925-4875-8c49-ba1d5d25c473