2024-08-24 16:04:14,938 - INFO - Domain Default found not creating 2024-08-24 16:04:15,104 - INFO - Project ctest-TestRoutersBasic-82268739 not found, creating it 2024-08-24 16:04:15,577 - INFO - Created Project:ctest-TestRoutersBasic-82268739, ID : 1a5ca5a0-b9b2-4cfd-b79b-671fbc017cb6 2024-08-24 16:04:17,197 - INFO - ================================================================================ 2024-08-24 16:04:17,197 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-24 16:04:17,197 - 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-24 16:04:17,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.5': '0'}} with 2024-08-24 16:04:17,459 - INFO - Initial checks done. Running the testcase now 2024-08-24 16:04:17,459 - INFO - 2024-08-24 16:04:18,209 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-82268739 2024-08-24 16:04:18,305 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-82268739 2024-08-24 16:04:18,637 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82268739', 'default']} 2024-08-24 16:04:18,952 - DEBUG - Response for create_network : {'network': {'id': '9f3e1991-7401-41a3-b554-d0aead10573e', 'name': 'ctest-vn-87309270', 'tenant_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6', 'project_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82268739', 'ctest-vn-87309270'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 16:04:19,175 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c47199a-d16e-4b92-855f-0aace9bd5de2', 'name': '', 'tenant_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6', 'network_id': '9f3e1991-7401-41a3-b554-d0aead10573e', 'ip_version': 4, 'cidr': '206.248.74.64/26', 'allocation_pools': [{'start': '206.248.74.66', 'end': '206.248.74.126'}], 'gateway_ip': '206.248.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.248.74.66', 'tags': [], 'project_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6'}} 2024-08-24 16:04:19,197 - INFO - Created VN ctest-vn-87309270 2024-08-24 16:04:19,257 - DEBUG - VN ctest-vn-87309270 UUID is 9f3e1991-7401-41a3-b554-d0aead10573e 2024-08-24 16:04:19,594 - DEBUG - Response for create_network : {'network': {'id': '93acfa57-793d-4065-9794-a5e5b0ec4ba1', 'name': 'ctest-ext_vn-58188654', 'tenant_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6', 'project_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82268739', 'ctest-ext_vn-58188654'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 16:04:19,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ec3434c-687f-4253-9a0f-4174ccd7d018', 'name': '', 'tenant_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6', 'network_id': '93acfa57-793d-4065-9794-a5e5b0ec4ba1', 'ip_version': 4, 'cidr': '160.153.201.128/26', 'allocation_pools': [{'start': '160.153.201.130', 'end': '160.153.201.190'}], 'gateway_ip': '160.153.201.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.153.201.130', 'tags': [], 'project_id': '1a5ca5a0b9b24cfdb79b671fbc017cb6'}} 2024-08-24 16:04:19,844 - INFO - Created VN ctest-ext_vn-58188654 2024-08-24 16:04:19,897 - DEBUG - VN ctest-ext_vn-58188654 UUID is 93acfa57-793d-4065-9794-a5e5b0ec4ba1 2024-08-24 16:04:20,091 - DEBUG - Services list from nova: [, , ] 2024-08-24 16:04:21,144 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1756-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1756-1) 2024-08-24 16:04:22,284 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1756-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1756-1) 2024-08-24 16:04:22,390 - INFO - Setting gateway for router 7d0de19d-d56c-4f55-81b3-a48f91704b7d to network 93acfa57-793d-4065-9794-a5e5b0ec4ba1 2024-08-24 16:04:22,472 - INFO - Adding interface with subnet_id 8c47199a-d16e-4b92-855f-0aace9bd5de2, port_id None to router 7d0de19d-d56c-4f55-81b3-a48f91704b7d 2024-08-24 16:04:22,871 - INFO - Waiting for VM ctest-TestRoutersBasic-82268739-03405782 to be up.. 2024-08-24 16:04:23,026 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-24 16:04:28,121 - DEBUG - VM is in ACTIVE state now 2024-08-24 16:04:28,121 - INFO - VM name : ctest-TestRoutersBasic-82268739-03405782 2024-08-24 16:04:28,211 - DEBUG - VM ctest-TestRoutersBasic-82268739-03405782 ID is 65f57a95-bb69-4a4e-aa04-4b2f0c463b5d 2024-08-24 16:04:28,230 - DEBUG - VM ctest-TestRoutersBasic-82268739-03405782 launched on Node cn-jenkins-deploy-platform-ansible-os-1756-1 2024-08-24 16:04:28,307 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/65f57a95-bb69-4a4e-aa04-4b2f0c463b5d 2024-08-24 16:04:28,606 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/65f57a95-bb69-4a4e-aa04-4b2f0c463b5d 2024-08-24 16:04:28,639 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/b47019f3-df61-4dae-9a65-cca2ca1257f8 2024-08-24 16:04:31,893 - 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 1007ms') 2024-08-24 16:04:31,893 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82268739-03405782 failed! 2024-08-24 16:04:31,945 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-82268739:ctest-vn-87309270 is 206.248.74.65 and allocation pool is NOT set 2024-08-24 16:04:34,014 - 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=2.62 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.486 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.486/1.552/2.619/1.066 ms') 2024-08-24 16:04:34,014 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82268739-03405782 passed 2024-08-24 16:04:34,165 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:04:34,165 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82268739-03405782, IP 206.248.74.67, Port 22 2024-08-24 16:04:34,320 - DEBUG - VM ctest-TestRoutersBasic-82268739-03405782 is ready for SSH connections 2024-08-24 16:04:34,320 - INFO - Waiting for VM ctest-TestRoutersBasic-82268739-58751556 to be up.. 2024-08-24 16:04:34,398 - DEBUG - VM is in ACTIVE state now 2024-08-24 16:04:34,399 - INFO - VM name : ctest-TestRoutersBasic-82268739-58751556 2024-08-24 16:04:34,479 - DEBUG - VM ctest-TestRoutersBasic-82268739-58751556 ID is 28dc1993-802b-4727-983b-d2323bd766ee 2024-08-24 16:04:34,479 - DEBUG - VM ctest-TestRoutersBasic-82268739-58751556 launched on Node cn-jenkins-deploy-platform-ansible-os-1756-1 2024-08-24 16:04:34,556 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/28dc1993-802b-4727-983b-d2323bd766ee 2024-08-24 16:04:34,566 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/ce6d697b-47b9-4f63-9567-a7bb35269142 2024-08-24 16:04:35,809 - 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=4.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.61 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.612/3.179/4.747/1.567 ms') 2024-08-24 16:04:35,809 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-82268739-58751556 passed 2024-08-24 16:04:35,965 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:04:35,965 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82268739-58751556, IP 160.153.201.131, Port 22 2024-08-24 16:04:36,031 - 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-24 16:04:36,114 - DEBUG - VM ctest-TestRoutersBasic-82268739-58751556 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-24 16:04:41,115 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:04:41,115 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82268739-58751556, IP 160.153.201.131, Port 22 2024-08-24 16:04:41,289 - DEBUG - VM ctest-TestRoutersBasic-82268739-58751556 is ready for SSH connections 2024-08-24 16:04:41,289 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 16:04:41,289 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.153.201.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-24 16:04:41,289 - DEBUG - ping -s 56 -c 3 -W 1 160.153.201.131 2024-08-24 16:04:45,287 - DEBUG - PING 160.153.201.131 (160.153.201.131): 56 data bytes 64 bytes from 160.153.201.131: seq=0 ttl=62 time=5.644 ms 64 bytes from 160.153.201.131: seq=1 ttl=62 time=1.026 ms 64 bytes from 160.153.201.131: seq=2 ttl=62 time=1.312 ms --- 160.153.201.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.026/2.660/5.644 ms 2024-08-24 16:04:45,288 - INFO - Ping to IP 160.153.201.131 from VM ctest-TestRoutersBasic-82268739-03405782 passed 2024-08-24 16:04:45,288 - INFO - Deleting interface with subnet_id 8c47199a-d16e-4b92-855f-0aace9bd5de2, port_id None from router 7d0de19d-d56c-4f55-81b3-a48f91704b7d 2024-08-24 16:04:45,554 - INFO - Deleting VM ctest-TestRoutersBasic-82268739-58751556 2024-08-24 16:04:45,637 - INFO - Deleting VM ctest-TestRoutersBasic-82268739-03405782 2024-08-24 16:04:45,734 - INFO - Deleting VN ctest-ext_vn-58188654 2024-08-24 16:04:45,812 - DEBUG - VN 93acfa57-793d-4065-9794-a5e5b0ec4ba1 still in use: Unable to complete operation on network 93acfa57-793d-4065-9794-a5e5b0ec4ba1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ed6e35bf-8b3b-426e-8eda-593bb852505c'] 2024-08-24 16:04:45,812 - WARNING - Deleting VN ctest-ext_vn-58188654 failed..Will retry 2024-08-24 16:04:47,942 - DEBUG - Response for deleting network () 2024-08-24 16:04:47,942 - INFO - Deleting VN ctest-vn-87309270 2024-08-24 16:04:48,071 - DEBUG - Response for deleting network () 2024-08-24 16:04:48,328 - DEBUG - No XMPP flaps were noticed during the test 2024-08-24 16:04:48,328 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2024-08-24 16:04:48,328 - INFO - -------------------------------------------------------------------------------- 2024-08-24 16:04:49,081 - INFO - Deleted project: ctest-TestRoutersBasic-82268739, ID : 1a5ca5a0-b9b2-4cfd-b79b-671fbc017cb6