2024-08-21 14:42:29,110 - INFO - Domain Default found not creating 2024-08-21 14:42:29,266 - INFO - Project ctest-TestRoutersBasic-96102869 not found, creating it 2024-08-21 14:42:29,732 - INFO - Created Project:ctest-TestRoutersBasic-96102869, ID : 65528238-bf01-40a8-8051-be5d78576f1e 2024-08-21 14:42:32,691 - INFO - ================================================================================ 2024-08-21 14:42:32,691 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 14:42:32,691 - 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-21 14:42:32,950 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.17': '0'}} with 2024-08-21 14:42:32,950 - INFO - Initial checks done. Running the testcase now 2024-08-21 14:42:32,950 - INFO - 2024-08-21 14:42:33,711 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-96102869 2024-08-21 14:42:33,812 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-96102869 2024-08-21 14:42:34,136 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96102869', 'default']} 2024-08-21 14:42:34,439 - DEBUG - Response for create_network : {'network': {'id': '03bae4d2-9659-4858-aa36-e3b829458ab5', 'name': 'ctest-vn-53081403', 'tenant_id': '65528238bf0140a88051be5d78576f1e', 'project_id': '65528238bf0140a88051be5d78576f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96102869', 'ctest-vn-53081403'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:42:34,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '961508cc-6951-4d4e-8565-57943c3b977a', 'name': '', 'tenant_id': '65528238bf0140a88051be5d78576f1e', 'network_id': '03bae4d2-9659-4858-aa36-e3b829458ab5', 'ip_version': 4, 'cidr': '29.20.243.128/26', 'allocation_pools': [{'start': '29.20.243.130', 'end': '29.20.243.190'}], 'gateway_ip': '29.20.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.20.243.130', 'tags': [], 'project_id': '65528238bf0140a88051be5d78576f1e'}} 2024-08-21 14:42:34,663 - INFO - Created VN ctest-vn-53081403 2024-08-21 14:42:34,716 - DEBUG - VN ctest-vn-53081403 UUID is 03bae4d2-9659-4858-aa36-e3b829458ab5 2024-08-21 14:42:35,663 - DEBUG - Response for create_network : {'network': {'id': '63822c89-5bb3-46e0-950f-721b8433ac3f', 'name': 'ctest-ext_vn-07181318', 'tenant_id': '65528238bf0140a88051be5d78576f1e', 'project_id': '65528238bf0140a88051be5d78576f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-96102869', 'ctest-ext_vn-07181318'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:42:35,893 - DEBUG - Response for create_subnet : {'subnet': {'id': '07202fa1-c75e-4017-ac08-eb1778beaa00', 'name': '', 'tenant_id': '65528238bf0140a88051be5d78576f1e', 'network_id': '63822c89-5bb3-46e0-950f-721b8433ac3f', 'ip_version': 4, 'cidr': '55.105.149.0/26', 'allocation_pools': [{'start': '55.105.149.2', 'end': '55.105.149.62'}], 'gateway_ip': '55.105.149.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.105.149.2', 'tags': [], 'project_id': '65528238bf0140a88051be5d78576f1e'}} 2024-08-21 14:42:35,913 - INFO - Created VN ctest-ext_vn-07181318 2024-08-21 14:42:35,964 - DEBUG - VN ctest-ext_vn-07181318 UUID is 63822c89-5bb3-46e0-950f-721b8433ac3f 2024-08-21 14:42:36,139 - DEBUG - Services list from nova: [, , ] 2024-08-21 14:42:37,160 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1689-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1689-1) 2024-08-21 14:42:38,331 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1689-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1689-1) 2024-08-21 14:42:38,415 - INFO - Setting gateway for router 6edb6758-1b48-4b7f-974a-bc02842d774c to network 63822c89-5bb3-46e0-950f-721b8433ac3f 2024-08-21 14:42:38,503 - INFO - Adding interface with subnet_id 961508cc-6951-4d4e-8565-57943c3b977a, port_id None to router 6edb6758-1b48-4b7f-974a-bc02842d774c 2024-08-21 14:42:39,061 - INFO - Waiting for VM ctest-TestRoutersBasic-96102869-66227960 to be up.. 2024-08-21 14:42:39,264 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 14:42:44,338 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:42:44,339 - INFO - VM name : ctest-TestRoutersBasic-96102869-66227960 2024-08-21 14:42:44,414 - DEBUG - VM ctest-TestRoutersBasic-96102869-66227960 ID is e27c0371-04f9-497c-91be-fa3cb892d1a5 2024-08-21 14:42:44,432 - DEBUG - VM ctest-TestRoutersBasic-96102869-66227960 launched on Node cn-jenkins-deploy-platform-ansible-os-1689-1 2024-08-21 14:42:44,505 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/e27c0371-04f9-497c-91be-fa3cb892d1a5 2024-08-21 14:42:44,803 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/e27c0371-04f9-497c-91be-fa3cb892d1a5 2024-08-21 14:42:44,862 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/95324992-f8e9-480e-8c02-dd7bbff9ae7b 2024-08-21 14:42:48,165 - 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 1025ms') 2024-08-21 14:42:48,165 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-96102869-66227960 failed! 2024-08-21 14:42:48,228 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-96102869:ctest-vn-53081403 is 29.20.243.129 and allocation pool is NOT set 2024-08-21 14:42:50,289 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.32 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 = 3.315/3.552/3.789/0.237 ms') 2024-08-21 14:42:50,290 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-96102869-66227960 passed 2024-08-21 14:42:50,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:42:50,448 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96102869-66227960, IP 29.20.243.131, Port 22 2024-08-21 14:42:50,503 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-21 14:42:50,581 - DEBUG - VM ctest-TestRoutersBasic-96102869-66227960 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 14:42:55,582 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:42:55,582 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96102869-66227960, IP 29.20.243.131, Port 22 2024-08-21 14:42:55,748 - DEBUG - VM ctest-TestRoutersBasic-96102869-66227960 is ready for SSH connections 2024-08-21 14:42:55,748 - INFO - Waiting for VM ctest-TestRoutersBasic-96102869-02064924 to be up.. 2024-08-21 14:42:55,829 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:42:55,829 - INFO - VM name : ctest-TestRoutersBasic-96102869-02064924 2024-08-21 14:42:55,918 - DEBUG - VM ctest-TestRoutersBasic-96102869-02064924 ID is 07910cad-7dc4-4981-937d-21fe0ab4ad9f 2024-08-21 14:42:55,918 - DEBUG - VM ctest-TestRoutersBasic-96102869-02064924 launched on Node cn-jenkins-deploy-platform-ansible-os-1689-1 2024-08-21 14:42:55,996 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/07910cad-7dc4-4981-937d-21fe0ab4ad9f 2024-08-21 14:42:56,005 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/4cbd1bf8-b068-4c57-8b41-e655a0547eac 2024-08-21 14:42:57,246 - 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=2.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.358 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 = 0.358/1.583/2.808/1.225 ms') 2024-08-21 14:42:57,246 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-96102869-02064924 passed 2024-08-21 14:42:57,396 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:42:57,396 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-96102869-02064924, IP 55.105.149.3, Port 22 2024-08-21 14:42:57,556 - DEBUG - VM ctest-TestRoutersBasic-96102869-02064924 is ready for SSH connections 2024-08-21 14:42:57,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:42:57,556 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 55.105.149.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-21 14:42:57,556 - DEBUG - ping -s 56 -c 3 -W 1 55.105.149.3 2024-08-21 14:43:01,292 - DEBUG - PING 55.105.149.3 (55.105.149.3): 56 data bytes 64 bytes from 55.105.149.3: seq=0 ttl=62 time=5.820 ms 64 bytes from 55.105.149.3: seq=1 ttl=62 time=0.885 ms 64 bytes from 55.105.149.3: seq=2 ttl=62 time=0.822 ms --- 55.105.149.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.822/2.509/5.820 ms 2024-08-21 14:43:01,292 - INFO - Ping to IP 55.105.149.3 from VM ctest-TestRoutersBasic-96102869-66227960 passed 2024-08-21 14:43:01,292 - INFO - Deleting interface with subnet_id 961508cc-6951-4d4e-8565-57943c3b977a, port_id None from router 6edb6758-1b48-4b7f-974a-bc02842d774c 2024-08-21 14:43:01,505 - INFO - Deleting VM ctest-TestRoutersBasic-96102869-02064924 2024-08-21 14:43:01,580 - INFO - Deleting VM ctest-TestRoutersBasic-96102869-66227960 2024-08-21 14:43:01,665 - INFO - Deleting VN ctest-ext_vn-07181318 2024-08-21 14:43:01,742 - DEBUG - VN 63822c89-5bb3-46e0-950f-721b8433ac3f still in use: Unable to complete operation on network 63822c89-5bb3-46e0-950f-721b8433ac3f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c1220089-2a11-4a9a-bb16-c3ec0d960dd3'] 2024-08-21 14:43:01,742 - WARNING - Deleting VN ctest-ext_vn-07181318 failed..Will retry 2024-08-21 14:43:03,871 - DEBUG - Response for deleting network () 2024-08-21 14:43:03,871 - INFO - Deleting VN ctest-vn-53081403 2024-08-21 14:43:04,003 - DEBUG - Response for deleting network () 2024-08-21 14:43:04,258 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 14:43:04,258 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2024-08-21 14:43:04,258 - INFO - -------------------------------------------------------------------------------- 2024-08-21 14:43:04,998 - INFO - Deleted project: ctest-TestRoutersBasic-96102869, ID : 65528238-bf01-40a8-8051-be5d78576f1e