2024-08-26 19:20:37,958 - INFO - Domain Default found not creating 2024-08-26 19:20:38,415 - INFO - Project ctest-TestRoutersBasic-77569606 not found, creating it 2024-08-26 19:20:39,322 - INFO - Created Project:ctest-TestRoutersBasic-77569606, ID : be8881a3-a736-4138-a8dd-4af4faaaf6f3 2024-08-26 19:20:42,014 - INFO - ================================================================================ 2024-08-26 19:20:42,015 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 19:20:42,015 - 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-26 19:20:42,345 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.24': '0'}} with 2024-08-26 19:20:42,345 - INFO - Initial checks done. Running the testcase now 2024-08-26 19:20:42,346 - INFO - 2024-08-26 19:20:43,367 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-77569606 2024-08-26 19:20:43,489 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-77569606 2024-08-26 19:20:43,925 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77569606', 'default']} 2024-08-26 19:20:44,557 - DEBUG - Response for create_network : {'network': {'id': 'bc3db9aa-ba88-4e67-8581-90234bc542d7', 'name': 'ctest-vn-70811309', 'tenant_id': 'be8881a3a7364138a8dd4af4faaaf6f3', 'project_id': 'be8881a3a7364138a8dd4af4faaaf6f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77569606', 'ctest-vn-70811309'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 19:20:44,814 - DEBUG - Response for create_subnet : {'subnet': {'id': '14b066f3-3326-4c30-95da-507c25da9ab9', 'name': '', 'tenant_id': 'be8881a3a7364138a8dd4af4faaaf6f3', 'network_id': 'bc3db9aa-ba88-4e67-8581-90234bc542d7', 'ip_version': 4, 'cidr': '201.160.143.128/26', 'allocation_pools': [{'start': '201.160.143.130', 'end': '201.160.143.190'}], 'gateway_ip': '201.160.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.160.143.130', 'tags': [], 'project_id': 'be8881a3a7364138a8dd4af4faaaf6f3'}} 2024-08-26 19:20:44,852 - INFO - Created VN ctest-vn-70811309 2024-08-26 19:20:44,909 - DEBUG - VN ctest-vn-70811309 UUID is bc3db9aa-ba88-4e67-8581-90234bc542d7 2024-08-26 19:20:45,392 - DEBUG - Response for create_network : {'network': {'id': '2e49082b-6606-4092-9ecc-9232d9e71814', 'name': 'ctest-ext_vn-32469405', 'tenant_id': 'be8881a3a7364138a8dd4af4faaaf6f3', 'project_id': 'be8881a3a7364138a8dd4af4faaaf6f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77569606', 'ctest-ext_vn-32469405'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 19:20:45,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '8be82c52-b951-4f79-8ca3-94bae203f38b', 'name': '', 'tenant_id': 'be8881a3a7364138a8dd4af4faaaf6f3', 'network_id': '2e49082b-6606-4092-9ecc-9232d9e71814', 'ip_version': 4, 'cidr': '146.202.62.64/26', 'allocation_pools': [{'start': '146.202.62.66', 'end': '146.202.62.126'}], 'gateway_ip': '146.202.62.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.202.62.66', 'tags': [], 'project_id': 'be8881a3a7364138a8dd4af4faaaf6f3'}} 2024-08-26 19:20:45,834 - INFO - Created VN ctest-ext_vn-32469405 2024-08-26 19:20:45,897 - DEBUG - VN ctest-ext_vn-32469405 UUID is 2e49082b-6606-4092-9ecc-9232d9e71814 2024-08-26 19:20:46,135 - DEBUG - Services list from nova: [, , ] 2024-08-26 19:20:47,829 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1768-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1768-1) 2024-08-26 19:20:49,396 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1768-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1768-1) 2024-08-26 19:20:49,496 - INFO - Setting gateway for router 7f967700-4f5b-4e7f-ac20-f5161cf9ed1c to network 2e49082b-6606-4092-9ecc-9232d9e71814 2024-08-26 19:20:49,564 - INFO - Adding interface with subnet_id 14b066f3-3326-4c30-95da-507c25da9ab9, port_id None to router 7f967700-4f5b-4e7f-ac20-f5161cf9ed1c 2024-08-26 19:20:49,939 - INFO - Waiting for VM ctest-TestRoutersBasic-77569606-39034237 to be up.. 2024-08-26 19:20:50,130 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 19:20:55,220 - DEBUG - VM is in ACTIVE state now 2024-08-26 19:20:55,220 - INFO - VM name : ctest-TestRoutersBasic-77569606-39034237 2024-08-26 19:20:55,310 - DEBUG - VM ctest-TestRoutersBasic-77569606-39034237 ID is 2f5131fa-cd0c-4b8c-bd60-e1231d31e3bf 2024-08-26 19:20:55,334 - DEBUG - VM ctest-TestRoutersBasic-77569606-39034237 launched on Node cn-jenkins-deploy-platform-ansible-os-1768-1 2024-08-26 19:20:55,431 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/2f5131fa-cd0c-4b8c-bd60-e1231d31e3bf 2024-08-26 19:20:55,756 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/2f5131fa-cd0c-4b8c-bd60-e1231d31e3bf 2024-08-26 19:20:55,800 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/82d7e9b1-b6ad-4eef-aa5c-1606b8ef0171 2024-08-26 19:20:59,065 - 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 1010ms') 2024-08-26 19:20:59,065 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77569606-39034237 failed! 2024-08-26 19:20:59,133 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-77569606:ctest-vn-70811309 is 201.160.143.129 and allocation pool is NOT set 2024-08-26 19:21:01,208 - 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.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.943 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.943/2.924/4.906/1.981 ms') 2024-08-26 19:21:01,208 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77569606-39034237 passed 2024-08-26 19:21:01,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:21:01,381 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77569606-39034237, IP 201.160.143.131, Port 22 2024-08-26 19:21:01,569 - DEBUG - VM ctest-TestRoutersBasic-77569606-39034237 is ready for SSH connections 2024-08-26 19:21:01,569 - INFO - Waiting for VM ctest-TestRoutersBasic-77569606-80185822 to be up.. 2024-08-26 19:21:01,708 - DEBUG - VM is in ACTIVE state now 2024-08-26 19:21:01,708 - INFO - VM name : ctest-TestRoutersBasic-77569606-80185822 2024-08-26 19:21:01,820 - DEBUG - VM ctest-TestRoutersBasic-77569606-80185822 ID is f1d98262-eda3-40f0-994a-8873a5f639a3 2024-08-26 19:21:01,821 - DEBUG - VM ctest-TestRoutersBasic-77569606-80185822 launched on Node cn-jenkins-deploy-platform-ansible-os-1768-1 2024-08-26 19:21:01,952 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/f1d98262-eda3-40f0-994a-8873a5f639a3 2024-08-26 19:21:01,968 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/ea7f0cc2-bd81-4148-8691-0f59d9967ae6 2024-08-26 19:21:03,265 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.14 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.144/2.241/3.339/1.097 ms') 2024-08-26 19:21:03,265 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-77569606-80185822 passed 2024-08-26 19:21:03,432 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:21:03,433 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77569606-80185822, IP 146.202.62.67, Port 22 2024-08-26 19:21:03,511 - 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-26 19:21:03,648 - DEBUG - VM ctest-TestRoutersBasic-77569606-80185822 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 19:21:08,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:21:08,650 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77569606-80185822, IP 146.202.62.67, Port 22 2024-08-26 19:21:08,858 - DEBUG - VM ctest-TestRoutersBasic-77569606-80185822 is ready for SSH connections 2024-08-26 19:21:08,859 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:21:08,859 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.202.62.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-08-26 19:21:08,860 - DEBUG - ping -s 56 -c 3 -W 1 146.202.62.67 2024-08-26 19:21:13,125 - DEBUG - PING 146.202.62.67 (146.202.62.67): 56 data bytes 64 bytes from 146.202.62.67: seq=0 ttl=62 time=5.915 ms 64 bytes from 146.202.62.67: seq=1 ttl=62 time=2.396 ms 64 bytes from 146.202.62.67: seq=2 ttl=62 time=2.166 ms --- 146.202.62.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.166/3.492/5.915 ms 2024-08-26 19:21:13,125 - INFO - Ping to IP 146.202.62.67 from VM ctest-TestRoutersBasic-77569606-39034237 passed 2024-08-26 19:21:13,126 - INFO - Deleting interface with subnet_id 14b066f3-3326-4c30-95da-507c25da9ab9, port_id None from router 7f967700-4f5b-4e7f-ac20-f5161cf9ed1c 2024-08-26 19:21:13,506 - INFO - Deleting VM ctest-TestRoutersBasic-77569606-80185822 2024-08-26 19:21:13,593 - INFO - Deleting VM ctest-TestRoutersBasic-77569606-39034237 2024-08-26 19:21:13,675 - INFO - Deleting VN ctest-ext_vn-32469405 2024-08-26 19:21:13,768 - DEBUG - VN 2e49082b-6606-4092-9ecc-9232d9e71814 still in use: Unable to complete operation on network 2e49082b-6606-4092-9ecc-9232d9e71814. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5cb1dbcf-010b-46a0-8306-72c1a212ffd2'] 2024-08-26 19:21:13,769 - WARNING - Deleting VN ctest-ext_vn-32469405 failed..Will retry 2024-08-26 19:21:16,061 - DEBUG - Response for deleting network () 2024-08-26 19:21:16,061 - INFO - Deleting VN ctest-vn-70811309 2024-08-26 19:21:16,227 - DEBUG - Response for deleting network () 2024-08-26 19:21:16,543 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 19:21:16,544 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2024-08-26 19:21:16,544 - INFO - -------------------------------------------------------------------------------- 2024-08-26 19:21:17,488 - INFO - Deleted project: ctest-TestRoutersBasic-77569606, ID : be8881a3-a736-4138-a8dd-4af4faaaf6f3