============================= test session starts ============================== platform linux -- Python 3.8.6, pytest-6.1.0, py-1.9.0, pluggy-0.13.1 rootdir: /home/daniel/scratch/cloud-init, configfile: tox.ini plugins: xdist-2.1.0, forked-1.3.0, parallel-0.1.0, cov-2.8.1 collected 85 items / 1 deselected / 84 selected tests/integration_tests/test_upgrade.py::test_upgrade -------------------------------- live log setup -------------------------------- 2021-01-18 19:18:21 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:21 INFO botocore.credentials:credentials.py:1262 Credentials found in config file: ~/.aws/config 2021-01-18 19:18:21 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:30 INFO integration_testing:clouds.py:113 Settings: CLOUD_INIT_SOURCE=cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb COLLECT_LOGS=ON_ERROR EXISTING_INSTANCE_ID=None GCE_PROJECT=None GCE_REGION=us-central1 GCE_ZONE=a INSTANCE_TYPE=None KEEP_IMAGE=False KEEP_INSTANCE=False KEYPAIR_NAME=canonical LOCAL_LOG_PATH=/tmp/cloud_init_test_logs OCI_COMPARTMENT_ID=None OS_IMAGE=bionic PLATFORM=ec2 PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False -------------------------------- live log call --------------------------------- 2021-01-18 19:18:31 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:40 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:40 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0b9e262a1824338ec user_data=#cloud-config hostname: SRU-worked wait=False 2021-01-18 19:19:28 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:19:28 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:19:31 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 52.51.158.86 Retrying ssh connection 60 more time(s) to ubuntu@52.51.158.86:22 2021-01-18 19:19:42 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:19:42 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:19:43 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:19:44 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:19:47 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:19:50 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-03e9d0e4f5162828d')) 2021-01-18 19:19:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:19:51 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~18.04.2 2021-01-18 19:19:51 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c hostname 2021-01-18 19:19:51 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg-query --show cloud-init' 2021-01-18 19:19:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /run/cloud-init/result.json' 2021-01-18 19:19:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init init' 2021-01-18 19:19:53 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'grep Trace /var/log/cloud-init.log' 2021-01-18 19:19:54 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c cloud-id 2021-01-18 19:19:54 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/netplan/50-cloud-init.yaml' 2021-01-18 19:19:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c systemd-analyze 2021-01-18 19:19:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'systemd-analyze blame' 2021-01-18 19:19:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze show' 2021-01-18 19:19:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze blame' 2021-01-18 19:19:57 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 19:19:58 INFO paramiko.transport.sftp:sftp.py:158 [chan 15] Opened sftp connection (server version 3) 2021-01-18 19:19:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/7df5b812-c7b1-490d-a1de-04a575615c75.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb' 2021-01-18 19:19:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg -i /var/tmp/cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb' 2021-01-18 19:20:03 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 19:20:04 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~18.04.1 2021-01-18 19:20:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 19:20:05 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 19:20:05 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'hostname something-else' 2021-01-18 19:20:06 INFO integration_testing:instances.py:67 Instance restarted; waiting for boot 2021-01-18 19:20:07 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:20:08 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' FAILED [ 1%] tests/integration_tests/bugs/test_gh570.py::test_nocloud_seedfrom_vendordata SKIPPED [ 2%] tests/integration_tests/bugs/test_gh626.py::test_wakeonlan SKIPPED [ 3%] tests/integration_tests/bugs/test_gh632.py::test_datasource_rbx_no_stacktrace SKIPPED [ 4%] tests/integration_tests/bugs/test_gh668.py::test_static_route_to_host SKIPPED [ 5%] tests/integration_tests/bugs/test_gh671.py::test_update_default_password SKIPPED [ 7%] tests/integration_tests/bugs/test_lp1813396.py::test_gpg_no_tty -------------------------------- live log setup -------------------------------- 2021-01-18 19:20:54 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:20:54 INFO integration_testing:conftest.py:141 Setting up environment for ec2 2021-01-18 19:20:54 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0b9e262a1824338ec user_data=None wait=False 2021-01-18 19:21:27 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:21:27 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:21:43 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:21:43 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:21:43 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:21:46 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:21:48 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:21:56 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0197094554d8afef6')) 2021-01-18 19:21:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:21:57 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~18.04.2 2021-01-18 19:21:57 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 19:21:57 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 19:21:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/0497fadf-4c48-4d2d-98f7-06cecb350a43.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb' 2021-01-18 19:21:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg -i /var/tmp/cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb' 2021-01-18 19:22:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 19:22:03 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~18.04.1 2021-01-18 19:22:03 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 19:22:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 19:22:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 19:22:05 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 19:23:40 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:23:40 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:23:41 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.78.22.248 Retrying ssh connection 60 more time(s) to ubuntu@54.78.22.248:22 2021-01-18 19:23:51 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:23:52 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:23:52 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:23:54 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:23:54 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:23:55 INFO integration_testing:instances.py:117 Created new image: ami-09abeebf42065dd52 2021-01-18 19:24:26 INFO integration_testing:conftest.py:147 Done with environment setup 2021-01-18 19:24:26 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config apt: sources: cloudinit: source: 'deb [arch=amd64] http://ppa.launchpad.net/cloud-init-dev/daily/ubuntu focal main' keyserver: keyserver.ubuntu.com keyid: E4D304DF wait=False 2021-01-18 19:24:58 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:24:58 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:25:02 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.155.227.83 Retrying ssh connection 60 more time(s) to ubuntu@54.155.227.83:22 2021-01-18 19:25:12 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:25:13 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:25:13 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:25:14 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:25:16 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:25:22 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0a3a734eb1c051103')) 2021-01-18 19:25:22 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:25:22 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:25:22 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' PASSED [ 8%] tests/integration_tests/bugs/test_lp1886531.py::TestLp1886531::test_lp1886531 -------------------------------- live log setup -------------------------------- 2021-01-18 19:25:54 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:25:54 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config bootcmd: - rm -f /etc/fstab wait=False 2021-01-18 19:26:26 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:26:26 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:26:58 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:26:59 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:27:00 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:27:00 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:27:01 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:27:02 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0fba7090148a5d9ad')) 2021-01-18 19:27:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:27:03 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:27:03 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' PASSED [ 9%] tests/integration_tests/bugs/test_lp1897099.py::test_fallocate_fallback -------------------------------- live log setup -------------------------------- 2021-01-18 19:27:35 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:27:35 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config bootcmd: - echo 'whoops' > /usr/bin/fallocate swap: filename: /swap.img size: 10000000 maxsize: 10000000 wait=False 2021-01-18 19:28:07 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:28:07 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:28:23 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:28:24 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:28:24 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:28:26 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:28:27 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:28:28 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-00cd4a4c6be19b6a2')) 2021-01-18 19:28:28 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:28:30 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:28:30 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' 2021-01-18 19:28:30 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /proc/swaps' 2021-01-18 19:28:31 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/fstab' PASSED [ 10%] tests/integration_tests/bugs/test_lp1898997.py::TestInterfaceListingWithOpenvSwitch::test_ovs_member_interfaces_not_excluded SKIPPED [ 11%] tests/integration_tests/bugs/test_lp1900837.py::TestLogPermissionsNotResetOnReboot::test_permissions_unchanged -------------------------------- live log setup -------------------------------- 2021-01-18 19:29:02 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:29:02 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=None wait=False 2021-01-18 19:29:34 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:29:34 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:29:42 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.249.87.35 Retrying ssh connection 60 more time(s) to ubuntu@3.249.87.35:22 2021-01-18 19:29:52 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:29:53 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:29:53 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:29:54 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:29:55 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:29:56 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0614653392c4f5b76')) 2021-01-18 19:29:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:29:57 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:29:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'stat -c %a /var/log/cloud-init.log' 2021-01-18 19:29:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'chmod 600 /var/log/cloud-init.log' 2021-01-18 19:29:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'stat -c %a /var/log/cloud-init.log' 2021-01-18 19:29:58 INFO integration_testing:instances.py:67 Instance restarted; waiting for boot 2021-01-18 19:29:58 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:29:59 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:29:59 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long FAILED [ 13%] ------------------------------ live log teardown ------------------------------- 2021-01-18 19:30:00 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init collect-logs -u -t /var/tmp/cloud-init.tar.gz' 2021-01-18 19:30:00 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:30:00 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.249.87.35 Retrying ssh connection 60 more time(s) to ubuntu@3.249.87.35:22 2021-01-18 19:31:11 INFO pycloudlib.instance:instance.py:336 timed out Retrying ssh connection 59 more time(s) to ubuntu@3.249.87.35:22 2021-01-18 19:31:22 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:31:23 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:31:23 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:31:25 INFO integration_testing:conftest.py:177 Writing logs to /tmp/cloud_init_test_logs/210118141821/tests/integration_tests/bugs/test_lp1900837/TestLogPermissionsNotResetOnReboot/test_permissions_unchanged 2021-01-18 19:31:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cp /var/tmp/cloud-init.tar.gz /var/tmp/4f338e23-ceb0-4550-bfdc-91130f3573ab.tmp' 2021-01-18 19:31:26 INFO paramiko.transport.sftp:sftp.py:158 [chan 2] Opened sftp connection (server version 3) tests/integration_tests/bugs/test_lp1910835.py::test_crlf_in_azure_metadata_ssh_keys SKIPPED [ 14%] tests/integration_tests/modules/test_apt_configure_sources_list.py::TestAptConfigureSourcesList::test_sources_list -------------------------------- live log setup -------------------------------- 2021-01-18 19:31:58 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:31:58 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config apt: primary: - arches: [default] uri: http://archive.ubuntu.com/ubuntu security: - arches: [default] uri: http://security.ubuntu.com/ubuntu sources_list: | deb $MIRROR $RELEASE main restricted deb-src $MIRROR $RELEASE main restricted deb $PRIMARY $RELEASE universe restricted deb-src $PRIMARY $RELEASE universe restricted deb $SECURITY $RELEASE-security multiverse deb-src $SECURITY $RELEASE-security multiverse wait=False 2021-01-18 19:32:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:32:30 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:32:38 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.243.231.87 Retrying ssh connection 60 more time(s) to ubuntu@34.243.231.87:22 2021-01-18 19:32:48 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:32:49 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:32:49 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:32:50 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:32:51 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:32:52 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0b2d4ae92bbcdebeb')) 2021-01-18 19:32:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:32:53 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:32:53 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/apt/sources.list' PASSED [ 15%] tests/integration_tests/modules/test_ca_certs.py::TestCaCerts::test_certs_updated -------------------------------- live log setup -------------------------------- 2021-01-18 19:33:39 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:33:39 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config ca-certs: remove-defaults: true trusted: - | -----BEGIN CERTIFICATE----- MIIGJzCCBA+gAwIBAgIBATANBgkqhkiG9w0BAQUFADCBsjELMAkGA1UEBhMCRlIx DzANBgNVBAgMBkFsc2FjZTETMBEGA1UEBwwKU3RyYXNib3VyZzEYMBYGA1UECgwP d3d3LmZyZWVsYW4ub3JnMRAwDgYDVQQLDAdmcmVlbGFuMS0wKwYDVQQDDCRGcmVl bGFuIFNhbXBsZSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxIjAgBgkqhkiG9w0BCQEW E2NvbnRhY3RAZnJlZWxhbi5vcmcwHhcNMTIwNDI3MTAzMTE4WhcNMjIwNDI1MTAz MTE4WjB+MQswCQYDVQQGEwJGUjEPMA0GA1UECAwGQWxzYWNlMRgwFgYDVQQKDA93 d3cuZnJlZWxhbi5vcmcxEDAOBgNVBAsMB2ZyZWVsYW4xDjAMBgNVBAMMBWFsaWNl MSIwIAYJKoZIhvcNAQkBFhNjb250YWN0QGZyZWVsYW4ub3JnMIICIjANBgkqhkiG 9w0BAQEFAAOCAg8AMIICCgKCAgEA3W29+ID6194bH6ejLrIC4hb2Ugo8v6ZC+Mrc k2dNYMNPjcOKABvxxEtBamnSaeU/IY7FC/giN622LEtV/3oDcrua0+yWuVafyxmZ yTKUb4/GUgafRQPf/eiX9urWurtIK7XgNGFNUjYPq4dSJQPPhwCHE/LKAykWnZBX RrX0Dq4XyApNku0IpjIjEXH+8ixE12wH8wt7DEvdO7T3N3CfUbaITl1qBX+Nm2Z6 q4Ag/u5rl8NJfXg71ZmXA3XOj7zFvpyapRIZcPmkvZYn7SMCp8dXyXHPdpSiIWL2 uB3KiO4JrUYvt2GzLBUThp+lNSZaZ/Q3yOaAAUkOx+1h08285Pi+P8lO+H2Xic4S vMq1xtLg2bNoPC5KnbRfuFPuUD2/3dSiiragJ6uYDLOyWJDivKGt/72OVTEPAL9o 6T2pGZrwbQuiFGrGTMZOvWMSpQtNl+tCCXlT4mWqJDRwuMGrI4DnnGzt3IKqNwS4 Qyo9KqjMIPwnXZAmWPm3FOKe4sFwc5fpawKO01JZewDsYTDxVj+cwXwFxbE2yBiF z2FAHwfopwaH35p3C6lkcgP2k/zgAlnBluzACUI+MKJ/G0gv/uAhj1OHJQ3L6kn1 SpvQ41/ueBjlunExqQSYD7GtZ1Kg8uOcq2r+WISE3Qc9MpQFFkUVllmgWGwYDuN3 Zsez95kCAwEAAaN7MHkwCQYDVR0TBAIwADAsBglghkgBhvhCAQ0EHxYdT3BlblNT TCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFFlfyRO6G8y5qEFKikl5 ajb2fT7XMB8GA1UdIwQYMBaAFCNsLT0+KV14uGw+quK7Lh5sh/JTMA0GCSqGSIb3 DQEBBQUAA4ICAQAT5wJFPqervbja5+90iKxi1d0QVtVGB+z6aoAMuWK+qgi0vgvr mu9ot2lvTSCSnRhjeiP0SIdqFMORmBtOCFk/kYDp9M/91b+vS+S9eAlxrNCB5VOf PqxEPp/wv1rBcE4GBO/c6HcFon3F+oBYCsUQbZDKSSZxhDm3mj7pb67FNbZbJIzJ 70HDsRe2O04oiTx+h6g6pW3cOQMgIAvFgKN5Ex727K4230B0NIdGkzuj4KSML0NM slSAcXZ41OoSKNjy44BVEZv0ZdxTDrRM4EwJtNyggFzmtTuV02nkUj1bYYYC5f0L ADr6s0XMyaNk8twlWYlYDZ5uKDpVRVBfiGcq0uJIzIvemhuTrofh8pBQQNkPRDFT Rq1iTo1Ihhl3/Fl1kXk1WR3jTjNb4jHX7lIoXwpwp767HAPKGhjQ9cFbnHMEtkro RlJYdtRq5mccDtwT0GFyoJLLBZdHHMHJz0F9H7FNk2tTQQMhK5MVYwg+LIaee586 CQVqfbscp7evlgjLW98H+5zylRHAgoH2G79aHljNKMp9BOuq6SnEglEsiWGVtu2l hnx8SB3sVJZHeer8f/UQQwqbAO+Kdy70NmbSaqaVtp8jOxLiidWkwSyRTsuU6D8i DiH5uEqBXExjrj0FslxcVKdVj5glVcSmkLwZKbEU1OKwleT/iXFhvooWhQ== -----END CERTIFICATE----- wait=False 2021-01-18 19:34:11 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:34:11 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:34:19 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 52.18.247.113 Retrying ssh connection 60 more time(s) to ubuntu@52.18.247.113:22 2021-01-18 19:34:29 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:34:30 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:34:30 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:34:32 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:34:33 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:34:33 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-094f5470821b7f3ca')) 2021-01-18 19:34:33 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:34:34 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:34:34 INFO pycloudlib.instance:instance.py:166 executing: sudo -- ls -1 /etc/ssl/certs 2021-01-18 19:34:34 INFO pycloudlib.instance:instance.py:166 executing: sudo -- readlink /etc/ssl/certs/a535c1f3.0 2021-01-18 19:34:35 INFO pycloudlib.instance:instance.py:166 executing: sudo -- readlink /etc/ssl/certs/ca-certificates.crt 2021-01-18 19:34:35 INFO pycloudlib.instance:instance.py:166 executing: sudo -- readlink /etc/ssl/certs/cloud-init-ca-certs.pem PASSED [ 16%] tests/integration_tests/modules/test_ca_certs.py::TestCaCerts::test_cert_installed -------------------------------- live log setup -------------------------------- 2021-01-18 19:34:36 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:34:36 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'sha256sum /etc/ssl/certs/ca-certificates.crt' PASSED [ 17%] tests/integration_tests/modules/test_cli.py::test_valid_userdata -------------------------------- live log setup -------------------------------- 2021-01-18 19:35:38 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:35:38 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config runcmd: - echo 'hi' > /var/tmp/test wait=False 2021-01-18 19:36:10 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:36:10 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:36:18 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.244.209.38 Retrying ssh connection 60 more time(s) to ubuntu@34.244.209.38:22 2021-01-18 19:36:29 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:36:29 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:36:29 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:36:31 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:36:31 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:36:32 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0126d8dc38de5af9f')) 2021-01-18 19:36:32 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:36:33 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:36:33 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init devel schema --system' PASSED [ 19%] tests/integration_tests/modules/test_cli.py::test_invalid_userdata -------------------------------- live log setup -------------------------------- 2021-01-18 19:37:20 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:37:20 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=runcmd: - echo 'hi' > /var/tmp/test wait=False 2021-01-18 19:37:52 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:37:52 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:38:00 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.249.1.190 Retrying ssh connection 60 more time(s) to ubuntu@3.249.1.190:22 2021-01-18 19:38:22 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:38:22 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:38:22 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:38:23 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:38:24 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:38:25 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0d159446ddca1cc8a')) 2021-01-18 19:38:25 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:38:26 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:38:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init devel schema --system' PASSED [ 20%] tests/integration_tests/modules/test_lxd_bridge.py::TestLxdBridge::test_binaries_installed[lxc] -------------------------------- live log setup -------------------------------- 2021-01-18 19:38:57 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:38:57 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config lxd: init: storage_backend: dir bridge: mode: new name: lxdbr0 ipv4_address: 10.100.100.1 ipv4_netmask: 24 ipv4_dhcp_first: 10.100.100.100 ipv4_dhcp_last: 10.100.100.200 ipv4_nat: true domain: lxd wait=False 2021-01-18 19:39:15 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:39:15 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:39:30 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:39:31 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:39:31 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:39:33 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:39:34 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:39:40 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0fbf6381293b4057b')) 2021-01-18 19:39:40 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:39:41 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:39:41 INFO pycloudlib.instance:instance.py:166 executing: sudo -- which lxc PASSED [ 21%] tests/integration_tests/modules/test_lxd_bridge.py::TestLxdBridge::test_binaries_installed[lxd] -------------------------------- live log setup -------------------------------- 2021-01-18 19:39:41 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:39:41 INFO pycloudlib.instance:instance.py:166 executing: sudo -- which lxd PASSED [ 22%] tests/integration_tests/modules/test_lxd_bridge.py::TestLxdBridge::test_bridge -------------------------------- live log setup -------------------------------- 2021-01-18 19:39:42 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:39:42 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' 2021-01-18 19:39:42 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'ip addr show lxdbr0' 2021-01-18 19:39:43 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'lxc network show lxdbr0' PASSED [ 23%] tests/integration_tests/modules/test_ntp_servers.py::TestNtpServers::test_ntp_installed -------------------------------- live log setup -------------------------------- 2021-01-18 19:40:15 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:40:15 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config ntp: ntp_client: ntp servers: - 172.16.15.14 - 172.16.17.18 wait=False 2021-01-18 19:40:32 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:40:32 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:40:48 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:40:49 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:40:49 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:40:51 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:40:52 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:41:10 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-058b72fb00f62c175')) 2021-01-18 19:41:10 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:41:10 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:41:10 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'ntpd --version' PASSED [ 25%] tests/integration_tests/modules/test_ntp_servers.py::TestNtpServers::test_dist_config_file_is_empty -------------------------------- live log setup -------------------------------- 2021-01-18 19:41:11 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:41:11 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -e /etc/ntp.conf.dist' SKIPPED [ 26%] tests/integration_tests/modules/test_ntp_servers.py::TestNtpServers::test_ntp_entries -------------------------------- live log setup -------------------------------- 2021-01-18 19:41:11 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:41:11 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ntp.conf' PASSED [ 27%] tests/integration_tests/modules/test_ntp_servers.py::TestNtpServers::test_ntpq_servers -------------------------------- live log setup -------------------------------- 2021-01-18 19:41:12 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:41:12 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'ntpq -p -w -n' PASSED [ 28%] tests/integration_tests/modules/test_package_update_upgrade_install.py::TestPackageUpdateUpgradeInstall::test_new_packages_are_installed -------------------------------- live log setup -------------------------------- 2021-01-18 19:41:43 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:41:43 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config packages: - sl - tree package_update: true package_upgrade: true wait=False 2021-01-18 19:42:16 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:42:16 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:42:17 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 63.34.162.243 Retrying ssh connection 60 more time(s) to ubuntu@63.34.162.243:22 2021-01-18 19:42:28 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:42:28 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:42:29 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:42:31 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:42:32 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:43:01 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-05ea3f0a7adc18c67')) 2021-01-18 19:43:01 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:43:02 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:43:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg-query --show' PASSED [ 29%] tests/integration_tests/modules/test_package_update_upgrade_install.py::TestPackageUpdateUpgradeInstall::test_packages_were_updated -------------------------------- live log setup -------------------------------- 2021-01-18 19:43:02 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:43:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'grep ^Commandline: /var/log/apt/history.log' PASSED [ 30%] tests/integration_tests/modules/test_package_update_upgrade_install.py::TestPackageUpdateUpgradeInstall::test_packages_were_upgraded -------------------------------- live log setup -------------------------------- 2021-01-18 19:43:03 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:43:03 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init-output.log' PASSED [ 32%] tests/integration_tests/modules/test_power_state_change.py::TestPowerChange::test_poweroff[poweroff-now-10-will execute: shutdown -P now msg] SKIPPED [ 33%] tests/integration_tests/modules/test_power_state_change.py::TestPowerChange::test_poweroff[reboot-now-0-will execute: shutdown -r now msg] SKIPPED [ 34%] tests/integration_tests/modules/test_power_state_change.py::TestPowerChange::test_poweroff[halt-+1-0-will execute: shutdown -H +1 msg] SKIPPED [ 35%] tests/integration_tests/modules/test_power_state_change.py::TestPowerChange::test_poweroff_false_condition SKIPPED [ 36%] tests/integration_tests/modules/test_runcmd.py::TestRuncmd::test_runcmd -------------------------------- live log setup -------------------------------- 2021-01-18 19:43:50 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:43:50 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config runcmd: - echo cloud-init run cmd test > /var/tmp/run_cmd wait=False 2021-01-18 19:44:22 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:44:22 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:44:30 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.171.161.113 Retrying ssh connection 60 more time(s) to ubuntu@54.171.161.113:22 2021-01-18 19:44:40 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:44:41 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:44:41 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:44:42 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:44:43 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:44:44 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0d783990927228ba2')) 2021-01-18 19:44:44 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:44:45 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:44:45 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/tmp/run_cmd' PASSED [ 38%] tests/integration_tests/modules/test_seed_random_data.py::TestSeedRandomData::test_seed_random_data -------------------------------- live log setup -------------------------------- 2021-01-18 19:45:31 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:45:31 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False 2021-01-18 19:46:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:46:04 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:46:04 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.195.17.217 Retrying ssh connection 60 more time(s) to ubuntu@54.195.17.217:22 2021-01-18 19:46:15 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:46:15 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:46:16 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:46:17 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:46:18 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:46:18 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0d2040d7c8a737dfc')) 2021-01-18 19:46:18 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:46:19 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:46:19 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /root/seed' PASSED [ 39%] tests/integration_tests/modules/test_set_hostname.py::TestHostname::test_hostname -------------------------------- live log setup -------------------------------- 2021-01-18 19:46:51 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:46:51 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config hostname: cloudinit2 wait=False 2021-01-18 19:47:38 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:47:38 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:47:46 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.250.102.94 Retrying ssh connection 60 more time(s) to ubuntu@3.250.102.94:22 2021-01-18 19:47:57 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:47:58 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:47:58 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:47:59 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:48:00 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:48:00 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-053d393b1e2d3119d')) 2021-01-18 19:48:00 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:48:01 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:48:01 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c hostname PASSED [ 40%] tests/integration_tests/modules/test_set_hostname.py::TestHostname::test_hostname_and_fqdn -------------------------------- live log setup -------------------------------- 2021-01-18 19:48:48 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:48:48 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config manage_etc_hosts: true hostname: cloudinit1 fqdn: cloudinit2.i9n.cloud-init.io wait=False 2021-01-18 19:49:21 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:49:21 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:49:21 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.252.18.78 Retrying ssh connection 60 more time(s) to ubuntu@34.252.18.78:22 2021-01-18 19:49:32 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:49:32 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:49:32 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:49:34 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:49:34 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:49:35 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0923cea1f09818448')) 2021-01-18 19:49:35 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:49:36 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:49:36 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c hostname 2021-01-18 19:49:36 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'hostname --fqdn' 2021-01-18 19:49:37 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'grep ^127 /etc/hosts' PASSED [ 41%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_no_duplicate_users_in_shadow -------------------------------- live log setup -------------------------------- 2021-01-18 19:50:08 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:50:08 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config ssh_pwauth: yes users: - default - name: tom # md5 gotomgo passwd: "$1$S7$tT1BEDIYrczeryDQJfdPe0" lock_passwd: false - name: dick # md5 gocubsgo passwd: "$1$ssisyfpf$YqvuJLfrrW6Cg/l53Pi1n1" lock_passwd: false - name: harry # sha512 goharrygo passwd: "$6$LF$9Z2p6rWK6TNC1DC6393ec0As.18KRAvKDbfsGJEdWN3sRQRwpdfoh37EQ3yUh69tP4GSrGW5XKHxMLiKowJgm/" lock_passwd: false - name: jane # sha256 gojanego passwd: "$5$iW$XsxmWCdpwIW8Yhv.Jn/R3uk6A4UaicfW5Xp7C9p9pg." lock_passwd: false - name: "mikey" lock_passwd: false chpasswd: list: - tom:mypassword123! - dick:RANDOM - harry:RANDOM - mikey:$5$xZ$B2YGGEx2AOf4PeW48KC6.QyT1W2B4rZ9Qbltudtha89 wait=False 2021-01-18 19:50:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:50:25 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:50:41 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:50:42 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:50:42 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:50:44 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:50:46 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:50:47 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0c40948f1afd450a2')) 2021-01-18 19:50:47 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:50:48 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:50:48 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 42%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_password_in_users_dict_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:50:49 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:50:49 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 44%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_password_in_chpasswd_list_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:50:49 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:50:49 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 45%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_random_passwords_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:50:49 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:50:49 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 46%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_explicit_password_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:50:50 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:50:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 47%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_shadow_expected_users -------------------------------- live log setup -------------------------------- 2021-01-18 19:50:50 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:50:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 48%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_sshd_config -------------------------------- live log setup -------------------------------- 2021-01-18 19:50:50 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:50:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/sshd_config' PASSED [ 50%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_no_duplicate_users_in_shadow -------------------------------- live log setup -------------------------------- 2021-01-18 19:51:37 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:51:37 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config ssh_pwauth: yes users: - default - name: tom # md5 gotomgo passwd: "$1$S7$tT1BEDIYrczeryDQJfdPe0" lock_passwd: false - name: dick # md5 gocubsgo passwd: "$1$ssisyfpf$YqvuJLfrrW6Cg/l53Pi1n1" lock_passwd: false - name: harry # sha512 goharrygo passwd: "$6$LF$9Z2p6rWK6TNC1DC6393ec0As.18KRAvKDbfsGJEdWN3sRQRwpdfoh37EQ3yUh69tP4GSrGW5XKHxMLiKowJgm/" lock_passwd: false - name: jane # sha256 gojanego passwd: "$5$iW$XsxmWCdpwIW8Yhv.Jn/R3uk6A4UaicfW5Xp7C9p9pg." lock_passwd: false - name: "mikey" lock_passwd: false chpasswd: list: | tom:mypassword123! dick:RANDOM harry:RANDOM mikey:$5$xZ$B2YGGEx2AOf4PeW48KC6.QyT1W2B4rZ9Qbltudtha89 wait=False 2021-01-18 19:52:10 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:52:10 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:52:10 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.194.133.164 Retrying ssh connection 60 more time(s) to ubuntu@54.194.133.164:22 2021-01-18 19:52:21 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:52:21 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:52:22 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:52:23 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:52:23 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:52:24 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-057f1d5026f8e1366')) 2021-01-18 19:52:24 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:52:25 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:52:25 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 51%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_password_in_users_dict_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:52:25 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:52:25 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 52%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_password_in_chpasswd_list_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:52:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:52:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 53%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_random_passwords_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:52:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:52:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 54%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_explicit_password_set_correctly -------------------------------- live log setup -------------------------------- 2021-01-18 19:52:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:52:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 55%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_shadow_expected_users -------------------------------- live log setup -------------------------------- 2021-01-18 19:52:27 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:52:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/shadow' PASSED [ 57%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_sshd_config -------------------------------- live log setup -------------------------------- 2021-01-18 19:52:27 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:52:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/sshd_config' PASSED [ 58%] tests/integration_tests/modules/test_snap.py::TestSnap::test_snap -------------------------------- live log setup -------------------------------- 2021-01-18 19:53:14 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:53:14 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config package_update: true snap: squashfuse_in_container: true commands: - snap install hello-world wait=False 2021-01-18 19:53:46 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:53:46 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:53:47 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 52.50.96.50 Retrying ssh connection 60 more time(s) to ubuntu@52.50.96.50:22 2021-01-18 19:53:57 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:53:58 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:53:58 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:54:00 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:54:01 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:54:13 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-09d9822a6d9b05453')) 2021-01-18 19:54:13 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:54:14 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:54:14 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'snap list' PASSED [ 59%] tests/integration_tests/modules/test_ssh_auth_key_fingerprints.py::TestSshAuthkeyFingerprints::test_ssh_authkey_fingerprints_disable -------------------------------- live log setup -------------------------------- 2021-01-18 19:54:46 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:54:46 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config no_ssh_fingerprints: true wait=False 2021-01-18 19:55:18 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:55:18 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:55:34 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:55:34 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:55:35 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:55:37 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:55:38 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:55:39 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-083ecf37a7871b3b5')) 2021-01-18 19:55:39 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:55:40 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:55:40 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' PASSED [ 60%] tests/integration_tests/modules/test_ssh_auth_key_fingerprints.py::TestSshAuthkeyFingerprints::test_ssh_authkey_fingerprints_enable -------------------------------- live log setup -------------------------------- 2021-01-18 19:56:27 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:56:27 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config ssh_genkeytypes: - ecdsa - ed25519 ssh_authorized_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDXW9Gg5H7ehjdSc6qDzwNtgCy94XYHhEYlXZMO2+FJrH3wfHGiMfCwOHxcOMt2QiXItULthdeQWS9QjBSSjVRXf6731igFrqPFyS9qBlOQ5D29C4HBXFnQggGVpBNJ82IRJv7szbbe/vpgLBP4kttUza9Dr4e1YM1ln4PRnjfXea6T0m+m1ixNb5432pTXlqYOnNOxSIm1gHgMLxPuDrJvQERDKrSiKSjIdyC9Jd8t2e1tkNLY0stmckVRbhShmcJvlyofHWbc2Ca1mmtP7MlS1VQnfLkvU1IrFwkmaQmaggX6WR6coRJ6XFXdWcq/AI2K6GjSnl1dnnCxE8VCEXBlXgFzad+PMSG4yiL5j8Oo1ZVpkTdgBnw4okGqTYCXyZg6X00As9IBNQfZMFlQXlIo4FiWgj3CO5QHQOyOX6FuEumaU13GnERrSSdp9tCs1Qm3/DG2RSCQBWTfcgMcStIvKqvJ3IjFn0vGLvI3Ampnq9q1SHwmmzAPSdzcMA76HyMUA5VWaBvWHlUxzIM6unxZASnwvuCzpywSEB5J2OF+p6H+cStJwQ32XwmOG8pLp1srlVWpqZI58Du/lzrkPqONphoZx0LDV86w7RUz1ksDzAdcm0tvmNRFMN1a0frDs506oA3aWK0oDk4Nmvk8sXGTYYw3iQSkOvDUUlIsqdaO+w== wait=False 2021-01-18 19:57:00 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:57:00 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:57:08 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.245.199.89 Retrying ssh connection 60 more time(s) to ubuntu@34.245.199.89:22 2021-01-18 19:57:18 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:57:19 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:57:19 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:57:20 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:57:21 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:57:22 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-08631069708d4d2e8')) 2021-01-18 19:57:22 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:57:23 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:57:23 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/syslog' PASSED [ 61%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_not_generated[/etc/ssh/ssh_host_dsa_key.pub] -------------------------------- live log setup -------------------------------- 2021-01-18 19:58:09 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:58:09 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config ssh_genkeytypes: - ecdsa - ed25519 authkey_hash: sha512 wait=False 2021-01-18 19:58:42 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:58:42 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:58:42 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 52.48.26.3 Retrying ssh connection 60 more time(s) to ubuntu@52.48.26.3:22 2021-01-18 19:58:53 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:58:53 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:58:53 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:58:55 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:58:55 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:58:56 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0f16f23b8a891aa32')) 2021-01-18 19:58:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:58:57 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:58:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -e /etc/ssh/ssh_host_dsa_key.pub' PASSED [ 63%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_not_generated[/etc/ssh/ssh_host_dsa_key] -------------------------------- live log setup -------------------------------- 2021-01-18 19:58:57 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:58:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -e /etc/ssh/ssh_host_dsa_key' PASSED [ 64%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_not_generated[/etc/ssh/ssh_host_rsa_key.pub] -------------------------------- live log setup -------------------------------- 2021-01-18 19:58:58 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:58:58 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -e /etc/ssh/ssh_host_rsa_key.pub' PASSED [ 65%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_not_generated[/etc/ssh/ssh_host_rsa_key] -------------------------------- live log setup -------------------------------- 2021-01-18 19:58:58 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:58:58 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -e /etc/ssh/ssh_host_rsa_key' PASSED [ 66%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_generated[/etc/ssh/ssh_host_ecdsa_key.pub] -------------------------------- live log setup -------------------------------- 2021-01-18 19:58:58 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:58:58 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ecdsa_key.pub' PASSED [ 67%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_generated[/etc/ssh/ssh_host_ecdsa_key] -------------------------------- live log setup -------------------------------- 2021-01-18 19:58:59 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:58:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ecdsa_key' PASSED [ 69%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_generated[/etc/ssh/ssh_host_ed25519_key.pub] -------------------------------- live log setup -------------------------------- 2021-01-18 19:58:59 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:58:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ed25519_key.pub' PASSED [ 70%] tests/integration_tests/modules/test_ssh_generate.py::TestSshKeysGenerate::test_ssh_keys_generated[/etc/ssh/ssh_host_ed25519_key] -------------------------------- live log setup -------------------------------- 2021-01-18 19:59:00 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 19:59:00 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ed25519_key' PASSED [ 71%] tests/integration_tests/modules/test_ssh_import_id.py::TestSshImportId::test_ssh_import_id -------------------------------- live log setup -------------------------------- 2021-01-18 19:59:46 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:59:46 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False 2021-01-18 20:00:34 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 20:00:34 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 20:00:35 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.243.4.90 Retrying ssh connection 60 more time(s) to ubuntu@34.243.4.90:22 2021-01-18 20:00:45 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 20:00:46 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 20:00:46 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 20:00:47 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 20:00:48 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 20:00:49 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0c567c2574d5fec33')) 2021-01-18 20:00:49 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 20:00:50 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 20:00:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /home/ubuntu/.ssh/authorized_keys' PASSED [ 72%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_dsa_key.pub-AAAAB3NzaC1kc3MAAACBAPkWy1zbchVIN7qTgM0/yyY8q4RZS8cNM4ZpeuE5UB/Nnr6OSU/nmbO8LuM] -------------------------------- live log setup -------------------------------- 2021-01-18 20:01:37 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 20:01:37 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config disable_root: false ssh_authorized_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDXW9Gg5H7ehjdSc6qDzwNtgCy94XYHhEYlXZMO2+FJrH3wfHGiMfCwOHxcOMt2QiXItULthdeQWS9QjBSSjVRXf6731igFrqPFyS9qBlOQ5D29C4HBXFnQggGVpBNJ82IRJv7szbbe/vpgLBP4kttUza9Dr4e1YM1ln4PRnjfXea6T0m+m1ixNb5432pTXlqYOnNOxSIm1gHgMLxPuDrJvQERDKrSiKSjIdyC9Jd8t2e1tkNLY0stmckVRbhShmcJvlyofHWbc2Ca1mmtP7MlS1VQnfLkvU1IrFwkmaQmaggX6WR6coRJ6XFXdWcq/AI2K6GjSnl1dnnCxE8VCEXBlXgFzad+PMSG4yiL5j8Oo1ZVpkTdgBnw4okGqTYCXyZg6X00As9IBNQfZMFlQXlIo4FiWgj3CO5QHQOyOX6FuEumaU13GnERrSSdp9tCs1Qm3/DG2RSCQBWTfcgMcStIvKqvJ3IjFn0vGLvI3Ampnq9q1SHwmmzAPSdzcMA76HyMUA5VWaBvWHlUxzIM6unxZASnwvuCzpywSEB5J2OF+p6H+cStJwQ32XwmOG8pLp1srlVWpqZI58Du/lzrkPqONphoZx0LDV86w7RUz1ksDzAdcm0tvmNRFMN1a0frDs506oA3aWK0oDk4Nmvk8sXGTYYw3iQSkOvDUUlIsqdaO+w== ssh_keys: rsa_private: | -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAtPx6PqN3iSEsnTtibyIEy52Tra8T5fn0ryXyg46Di2NBwdnj o8trNv9jenfV/UhmePl58lXjT43wV8OCMl6KsYXyBdegM35NNtono4I4mLLKFMR9 9TOtDn6iYcaNenVhF3ZCj9Z2nNOlTrdc0uchHqKMrxLjCRCUrL91Uf+xioTF901Y RM+ZqC5lT92yAL76F4qPF+Lq1QtUfNfUIwwvOp5ccDZLPxij0YvyBzubYye9hJHu yjbJv78R4JHV+L2WhzSoX3W/6WrxVzeXqFGqH894ccOaC/7tnqSP6V8lIQ6fE2+c DurJcpM3CJRgkndGHjtU55Y71YkcdLksSMvezQIDAQABAoIBAQCrU4IJP8dNeaj5 IpkY6NQvR/jfZqfogYi+MKb1IHin/4rlDfUvPcY9pt8ttLlObjYK+OcWn3Vx/sRw 4DOkqNiUGl80Zp1RgZNohHUXlJMtAbrIlAVEk+mTmg7vjfyp2unRQvLZpMRdywBm lq95OrCghnG03aUsFJUZPpi5ydnwbA12ma+KHkG0EzaVlhA7X9N6z0K6U+zue2gl goMLt/MH0rsYawkHrwiwXaIFQeyV4MJP0vmrZLbFk1bycu9X/xPtTYotWyWo4eKA cb05uu04qwexkKHDM0KXtT0JecbTo2rOefFo8Uuab6uJY+fEHNocZ+v1vLA4aOxJ ovp1JuXlAoGBAOWYNgKrlTfy5n0sKsNk+1RuL2jHJZJ3HMd0EIt7/fFQN3Fi08Hu jtntqD30Wj+DJK8b8Lrt66FruxyEJm5VhVmwkukrLR5ige2f6ftZnoFCmdyy+0zP dnPZSUe2H5ZPHa+qthJgHLn+al2P04tGh+1fGHC2PbP+e0Co+/ZRIOxrAoGBAMnN IEen9/FRsqvnDd36I8XnJGskVRTZNjylxBmbKcuMWm+gNhOI7gsCAcqzD4BYZjjW pLhrt/u9p+l4MOJy6OUUdM/okg12SnJEGryysOcVBcXyrvOfklWnANG4EAH5jt1N ftTb1XTxzvWVuR/WJK0B5MZNYM71cumBdUDtPi+nAoGAYmoIXMSnxb+8xNL10aOr h9ljQQp8NHgSQfyiSufvRk0YNuYh1vMnEIsqnsPrG2Zfhx/25GmvoxXGssaCorDN 5FAn6QK06F1ZTD5L0Y3sv4OI6G1gAuC66ZWuL6sFhyyKkQ4f1WiVZ7SCa3CHQSAO i9VDaKz1bf4bXvAQcNj9v9kCgYACSOZCqW4vN0OUmqsXhkt9ZB6Pb/veno70pNPR jmYsvcwQU3oJQpWfXkhy6RAV3epaXmPDCsUsfns2M3wqNC7a2R5xdCqjKGGzZX4A AO3rz9se4J6Gd5oKijeCKFlWDGNHsibrdgm2pz42nZlY+O21X74dWKbt8O16I1MW hxkbJQKBgAXfuen/srVkJgPuqywUYag90VWCpHsuxdn+fZJa50SyZADr+RbiDfH2 vek8Uo8ap8AEsv4Rfs9opUcUZevLp3g2741eOaidHVLm0l4iLIVl03otGOqvSzs+ A3tFPEOxauXpzCt8f8eXsz0WQXAgIKW2h8zu5QHjomioU3i27mtE -----END RSA PRIVATE KEY----- rsa_public: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0/Ho+o3eJISydO2JvIgTLnZOtrxPl+fSvJfKDjoOLY0HB2eOjy2s2/2N6d9X9SGZ4+XnyVeNPjfBXw4IyXoqxhfIF16Azfk022iejgjiYssoUxH31M60OfqJhxo16dWEXdkKP1nac06VOt1zS5yEeooyvEuMJEJSsv3VR/7GKhMX3TVhEz5moLmVP3bIAvvoXio8X4urVC1R819QjDC86nlxwNks/GKPRi/IHO5tjJ72Eke7KNsm/vxHgkdX4vZaHNKhfdb/pavFXN5eoUaofz3hxw5oL/u2epI/pXyUhDp8Tb5wO6slykzcIlGCSd0YeO1TnljvViRx0uSxIy97N root@xenial-lxd rsa_certificate: ssh-rsa-cert-v01@openssh.com AAAAHHNzaC1yc2EtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgMpgBP4Phn3L8I7Vqh7lmHKcOfIokEvSEbHDw83Y3JloAAAADAQABAAABAQC0/Ho+o3eJISydO2JvIgTLnZOtrxPl+fSvJfKDjoOLY0HB2eOjy2s2/2N6d9X9SGZ4+XnyVeNPjfBXw4IyXoqxhfIF16Azfk022iejgjiYssoUxH31M60OfqJhxo16dWEXdkKP1nac06VOt1zS5yEeooyvEuMJEJSsv3VR/7GKhMX3TVhEz5moLmVP3bIAvvoXio8X4urVC1R819QjDC86nlxwNks/GKPRi/IHO5tjJ72Eke7KNsm/vxHgkdX4vZaHNKhfdb/pavFXN5eoUaofz3hxw5oL/u2epI/pXyUhDp8Tb5wO6slykzcIlGCSd0YeO1TnljvViRx0uSxIy97NAAAAAAAAAAAAAAACAAAACnhlbmlhbC1seGQAAAAAAAAAAF+vVEIAAAAAYY83bgAAAAAAAAAAAAAAAAAAADMAAAALc3NoLWVkMjU1MTkAAAAgz4SlDwbq53ZrRsnS6ISdwxgFDRpnEX44K8jFmLpI9NAAAABTAAAAC3NzaC1lZDI1NTE5AAAAQMWpiRWKNMFvRX0g6OQOELMqDhtNBpkIN92IyO25qiY2oDSd1NyVme6XnGDFt8CS7z5NufV04doP4aacLOBbQww= root@xenial-lxd dsa_private: | -----BEGIN DSA PRIVATE KEY----- MIIBuwIBAAKBgQD5Fstc23IVSDe6k4DNP8smPKuEWUvHDTOGaXrhOVAfzZ6+jklP 55mzvC7jO53PWWC31hq10xBoWdev0WtcNF9Tv+4bAa1263y51Rqo4GI7xx+xic1d mLqqfYijBT9k48J/1tV0cs1Wjs6FP/IJTD/kYVC930JjYQMi722lBnUxsQIVAL7i z3fTGKTvSzvW0wQlwnYpS2QFAoGANp+KdyS9V93HgxGQEN1rlj/TSv/a3EVdCKtE nQf55aPHxDAVDVw5JtRh4pZbbRV4oGRPc9KOdjo5BU28vSM3Lmhkb+UaaDXwHkgI nK193o74DKjADWZxuLyyiKHiMOhxozoxDfjWxs8nz6uqvSW0pr521EwIY6RajbED nZ2a3GkCgYEAyoUomNRB6bmpsIfzt8zdtqLP5umIj2uhr9MVPL8/QdbxmJ72Z7pf Q2z1B7QAdIBGOlqJXtlau7ABhWK29Efe+99ObyTSSdDc6RCDeAwUmBAiPRQhDH2E wExw3doDSCUb28L1B50wBzQ8mC3KXp6C7IkBXWspb16DLHUHFSI8bkICFA5kVUcW nCPOXEQsayANi8+Cb7BH -----END DSA PRIVATE KEY----- dsa_public: ssh-dss AAAAB3NzaC1kc3MAAACBAPkWy1zbchVIN7qTgM0/yyY8q4RZS8cNM4ZpeuE5UB/Nnr6OSU/nmbO8LuM7nc9ZYLfWGrXTEGhZ16/Ra1w0X1O/7hsBrXbrfLnVGqjgYjvHH7GJzV2Yuqp9iKMFP2Tjwn/W1XRyzVaOzoU/8glMP+RhUL3fQmNhAyLvbaUGdTGxAAAAFQC+4s930xik70s71tMEJcJ2KUtkBQAAAIA2n4p3JL1X3ceDEZAQ3WuWP9NK/9rcRV0Iq0SdB/nlo8fEMBUNXDkm1GHillttFXigZE9z0o52OjkFTby9IzcuaGRv5RpoNfAeSAicrX3ejvgMqMANZnG4vLKIoeIw6HGjOjEN+NbGzyfPq6q9JbSmvnbUTAhjpFqNsQOdnZrcaQAAAIEAyoUomNRB6bmpsIfzt8zdtqLP5umIj2uhr9MVPL8/QdbxmJ72Z7pfQ2z1B7QAdIBGOlqJXtlau7ABhWK29Efe+99ObyTSSdDc6RCDeAwUmBAiPRQhDH2EwExw3doDSCUb28L1B50wBzQ8mC3KXp6C7IkBXWspb16DLHUHFSI8bkI= root@xenial-lxd ed25519_private: | -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW QyNTUxOQAAACDbnQGUruL42aVVsyHeaV5mYNTOhteXao0Nl5DVThJ2+QAAAJgwt+lcMLfp XAAAAAtzc2gtZWQyNTUxOQAAACDbnQGUruL42aVVsyHeaV5mYNTOhteXao0Nl5DVThJ2+Q AAAEDQlFZpz9q8+/YJHS9+jPAqy2ZT6cGEv8HTB6RZtTjd/dudAZSu4vjZpVWzId5pXmZg 1M6G15dqjQ2XkNVOEnb5AAAAD3Jvb3RAeGVuaWFsLWx4ZAECAwQFBg== -----END OPENSSH PRIVATE KEY----- ed25519_public: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINudAZSu4vjZpVWzId5pXmZg1M6G15dqjQ2XkNVOEnb5 root@xenial-lxd ecdsa_private: | -----BEGIN EC PRIVATE KEY----- MHcCAQEEIDuK+QFc1wmyJY8uDqQVa1qHte30Rk/fdLxGIBkwJAyOoAoGCCqGSM49 AwEHoUQDQgAEWxLlO+TL8gL91eET9p/HFQbqR1A691AkJgZk3jY5mpZqxgX4vcgb 7f/CtXuM6s2svcDJqAeXr6Wk8OJJcMxylA== -----END EC PRIVATE KEY----- ecdsa_public: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFsS5Tvky/IC/dXhE/afxxUG6kdQOvdQJCYGZN42OZqWasYF+L3IG+3/wrV7jOrNrL3AyagHl6+lpPDiSXDMcpQ= root@xenial-lxd wait=False 2021-01-18 20:02:09 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 20:02:09 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 20:02:09 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.229.79.90 Retrying ssh connection 60 more time(s) to ubuntu@54.229.79.90:22 2021-01-18 20:02:20 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 20:02:20 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 20:02:21 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 20:02:22 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 20:02:22 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 20:02:23 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0256a6cdc5e194569')) 2021-01-18 20:02:23 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 20:02:24 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 20:02:24 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_dsa_key.pub' PASSED [ 73%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_dsa_key-MIIBuwIBAAKBgQD5Fstc23IVSDe6k4DNP8smPKuEWUvHDTOGaXrhOVAfzZ6+jklP] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:24 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:24 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_dsa_key' PASSED [ 75%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_rsa_key.pub-AAAAB3NzaC1yc2EAAAADAQABAAABAQC0/Ho+o3eJISydO2JvIgTLnZOtrxPl+fSvJfKDjoOLY0HB2eOjy2s2/2N6d9X9SGZ4] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:25 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:25 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_rsa_key.pub' PASSED [ 76%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_rsa_key-4DOkqNiUGl80Zp1RgZNohHUXlJMtAbrIlAVEk+mTmg7vjfyp2unRQvLZpMRdywBm] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:25 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:25 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_rsa_key' PASSED [ 77%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_rsa_key-cert.pub-AAAAHHNzaC1yc2EtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgMpgBP4Phn3L8I7Vqh7lmHKcOfIokEvSEbHDw83Y3JloAAAAD] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_rsa_key-cert.pub' PASSED [ 78%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/sshd_config-HostCertificate /etc/ssh/ssh_host_rsa_key-cert.pub] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/sshd_config' PASSED [ 79%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_ecdsa_key.pub-AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFsS5Tvky/IC/dXhE/afxxU] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ecdsa_key.pub' PASSED [ 80%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_ecdsa_key-AwEHoUQDQgAEWxLlO+TL8gL91eET9p/HFQbqR1A691AkJgZk3jY5mpZqxgX4vcgb] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:27 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ecdsa_key' PASSED [ 82%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_ed25519_key.pub-AAAAC3NzaC1lZDI1NTE5AAAAINudAZSu4vjZpVWzId5pXmZg1M6G15dqjQ2XkNVOEnb5] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:27 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ed25519_key.pub' PASSED [ 83%] tests/integration_tests/modules/test_ssh_keys_provided.py::TestSshKeysProvided::test_ssh_provided_keys[/etc/ssh/ssh_host_ed25519_key-XAAAAAtzc2gtZWQyNTUxOQAAACDbnQGUruL42aVVsyHeaV5mYNTOhteXao0Nl5DVThJ2+Q] -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:28 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:02:28 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/ssh_host_ed25519_key' PASSED [ 84%] tests/integration_tests/modules/test_timezone.py::TestTimezone::test_timezone -------------------------------- live log setup -------------------------------- 2021-01-18 20:02:59 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 20:02:59 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config timezone: US/Aleutian wait=False 2021-01-18 20:03:31 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 20:03:31 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 20:03:35 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 63.32.88.141 Retrying ssh connection 60 more time(s) to ubuntu@63.32.88.141:22 2021-01-18 20:03:45 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 20:03:46 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 20:03:46 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 20:03:47 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 20:03:48 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 20:03:49 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-07024a527bcf2fbe4')) 2021-01-18 20:03:49 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 20:03:50 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 20:03:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'date "+%Z" --date="Thu, 03 Nov 2016 00:47:00 -0400"' PASSED [ 85%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_users_groups[getent_args0-ubuntu:x:[0-9]{4}:] -------------------------------- live log setup -------------------------------- 2021-01-18 20:04:37 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 20:04:37 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config # Add groups to the system groups: - secret: [root] - cloud-users # Add users to the system. Users are added after groups are added. users: - default - name: foobar gecos: Foo B. Bar primary_group: foobar groups: users expiredate: 2038-01-19 lock_passwd: false passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/ - name: barfoo gecos: Bar B. Foo sudo: ALL=(ALL) NOPASSWD:ALL groups: [cloud-users, secret] lock_passwd: true - name: cloudy gecos: Magic Cloud App Daemon User inactive: true system: true wait=False 2021-01-18 20:05:09 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 20:05:09 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 20:05:13 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.240.95.113 Retrying ssh connection 60 more time(s) to ubuntu@34.240.95.113:22 2021-01-18 20:05:23 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 20:05:24 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 20:05:24 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 20:05:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 20:05:26 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 20:05:27 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0621e32d8da011956')) 2021-01-18 20:05:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 20:05:28 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 20:05:28 INFO pycloudlib.instance:instance.py:166 executing: sudo -- getent group ubuntu PASSED [ 86%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_users_groups[getent_args1-cloud-users:x:[0-9]{4}:barfoo] -------------------------------- live log setup -------------------------------- 2021-01-18 20:05:28 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:05:28 INFO pycloudlib.instance:instance.py:166 executing: sudo -- getent group cloud-users PASSED [ 88%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_users_groups[getent_args2-ubuntu:x:[0-9]{4}:[0-9]{4}:Ubuntu:/home/ubuntu:/bin/bash] -------------------------------- live log setup -------------------------------- 2021-01-18 20:05:28 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:05:28 INFO pycloudlib.instance:instance.py:166 executing: sudo -- getent passwd ubuntu PASSED [ 89%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_users_groups[getent_args3-foobar:x:[0-9]{4}:[0-9]{4}:Foo B. Bar:/home/foobar:] -------------------------------- live log setup -------------------------------- 2021-01-18 20:05:29 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:05:29 INFO pycloudlib.instance:instance.py:166 executing: sudo -- getent passwd foobar PASSED [ 90%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_users_groups[getent_args4-barfoo:x:[0-9]{4}:[0-9]{4}:Bar B. Foo:/home/barfoo:] -------------------------------- live log setup -------------------------------- 2021-01-18 20:05:29 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:05:29 INFO pycloudlib.instance:instance.py:166 executing: sudo -- getent passwd barfoo PASSED [ 91%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_users_groups[getent_args5-cloudy:x:[0-9]{3,4}:] -------------------------------- live log setup -------------------------------- 2021-01-18 20:05:30 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:05:30 INFO pycloudlib.instance:instance.py:166 executing: sudo -- getent passwd cloudy PASSED [ 92%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_user_root_in_secret -------------------------------- live log setup -------------------------------- 2021-01-18 20:05:30 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic -------------------------------- live log call --------------------------------- 2021-01-18 20:05:30 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'groups root' PASSED [ 94%] tests/integration_tests/modules/test_write_files.py::TestWriteFiles::test_write_files[file /root/file_b64-ASCII text] -------------------------------- live log setup -------------------------------- 2021-01-18 20:06:01 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 20:06:01 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=#cloud-config write_files: - encoding: b64 content: QVNDSUkgdGV4dA== owner: root:root path: /root/file_b64 permissions: '0644' - content: | # My new /root/file_text SMBDOPTIONS="-D" path: /root/file_text - content: !!binary | /Z/xrHR4WINT0UNoKPQKbuovp6+Js+JK path: /root/file_binary permissions: '0555' - encoding: gzip content: !!binary | H4sIAIDb/U8C/1NW1E/KzNMvzuBKTc7IV8hIzcnJVyjPL8pJ4QIA6N+MVxsAAAA= path: /root/file_gzip permissions: '0755' wait=False 2021-01-18 20:06:34 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 20:06:34 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 20:06:50 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.74.84.45 Retrying ssh connection 60 more time(s) to ubuntu@54.74.84.45:22 2021-01-18 20:07:00 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 20:07:01 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 20:07:01 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 20:07:02 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 20:07:03 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 20:07:04 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0fdd432fcde07a7d0')) 2021-01-18 20:07:04 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 20:07:05 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 -------------------------------- live log call --------------------------------- 2021-01-18 20:07:05 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'file /root/file_b64' PASSED [ 95%] tests/integration_tests/modules/test_write_files.py::TestWriteFiles::test_write_files[md5sum @pytest.mark.sru_2020_11 def test_upgrade(session_cloud: IntegrationCloud): source = get_validated_source(session_cloud) if not source.installs_new_version(): pytest.skip("Install method '{}' not supported for this test".format( source )) return # type checking doesn't understand that skip raises launch_kwargs = { 'image_id': session_cloud._get_initial_image(), } image = ImageSpecification.from_os_image() # Get the paths to write test logs output_dir = Path(session_cloud.settings.LOCAL_LOG_PATH) output_dir.mkdir(parents=True, exist_ok=True) base_filename = 'test_upgrade_{platform}_{os}_{{stage}}_{time}.log'.format( platform=session_cloud.settings.PLATFORM, os=image.release, time=session_start_time, ) before_path = output_dir / base_filename.format(stage='before') after_path = output_dir / base_filename.format(stage='after') # Get the network cfg file netcfg_path = '/dev/null' if image.os == 'ubuntu': netcfg_path = '/etc/netplan/50-cloud-init.yaml' if image.release == 'xenial': netcfg_path = '/etc/network/interfaces.d/50-cloud-init.cfg' with session_cloud.launch( launch_kwargs=launch_kwargs, user_data=USER_DATA, wait=True, ) as instance: _output_to_compare(instance, before_path, netcfg_path) instance.install_new_cloud_init(source, take_snapshot=False) instance.execute('hostname something-else') > _restart(instance) tests/integration_tests/test_upgrade.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration_tests/test_upgrade.py:47: in _restart instance.restart(raise_on_cloudinit_failure=True) tests/integration_tests/instances.py:68: in restart self.instance.wait( ../../dev/pycloudlib/pycloudlib/instance.py:103: in wait self._wait_for_cloudinit(raise_on_failure=raise_on_cloudinit_failure) ../../dev/pycloudlib/pycloudlib/instance.py:408: in _wait_for_cloudinit result = self.execute("cloud-init status --help") ../../dev/pycloudlib/pycloudlib/instance.py:172: in execute return self._run_command(command, stdin, **kwargs) ../../dev/pycloudlib/pycloudlib/instance.py:140: in _run_command return self._ssh(list(command), stdin=stdin) ../../dev/pycloudlib/pycloudlib/instance.py:271: in _ssh fp_in, fp_out, fp_err = client.exec_command(cmd) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/client.py:514: in exec_command chan.exec_command(command) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/channel.py:72: in _check return func(self, *args, **kwds) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/channel.py:257: in exec_command self._wait_for_event() ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/channel.py:1226: in _wait_for_event raise e ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/transport.py:2055: in run ptype, m = self.packetizer.read_message() ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/packet.py:459: in read_message header = self.read_all(self.__block_size_in, check_rekey=True) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , n = 16 check_rekey = True def read_all(self, n, check_rekey=False): """ Read as close to N bytes as possible, blocking as long as necessary. :param int n: number of bytes to read :return: the data read, as a `str` :raises: ``EOFError`` -- if the socket was closed before all the bytes could be read """ out = bytes() # handle over-reading from reading the banner line if len(self.__remainder) > 0: out = self.__remainder[:n] self.__remainder = self.__remainder[n:] n -= len(out) while n > 0: got_timeout = False if self.handshake_timed_out(): raise EOFError() try: x = self.__socket.recv(n) if len(x) == 0: > raise EOFError() E EOFError ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/packet.py:303: EOFError ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=bionic os=ubuntu release=bionic Detected image: image_id=bionic os=ubuntu release=bionic Detected image: image_id=bionic os=ubuntu release=bionic Detected image: image_id=bionic os=ubuntu release=bionic Settings: CLOUD_INIT_SOURCE=cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb COLLECT_LOGS=ON_ERROR EXISTING_INSTANCE_ID=None GCE_PROJECT=None GCE_REGION=us-central1 GCE_ZONE=a INSTANCE_TYPE=None KEEP_IMAGE=False KEEP_INSTANCE=False KEYPAIR_NAME=canonical LOCAL_LOG_PATH=/tmp/cloud_init_test_logs OCI_COMPARTMENT_ID=None OS_IMAGE=bionic PLATFORM=ec2 PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False Settings: CLOUD_INIT_SOURCE=cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb COLLECT_LOGS=ON_ERROR EXISTING_INSTANCE_ID=None GCE_PROJECT=None GCE_REGION=us-central1 GCE_ZONE=a INSTANCE_TYPE=None KEEP_IMAGE=False KEEP_INSTANCE=False KEYPAIR_NAME=canonical LOCAL_LOG_PATH=/tmp/cloud_init_test_logs OCI_COMPARTMENT_ID=None OS_IMAGE=bionic PLATFORM=ec2 PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:18:21 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:21 INFO botocore.credentials:credentials.py:1262 Credentials found in config file: ~/.aws/config 2021-01-18 19:18:21 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:30 INFO integration_testing:clouds.py:113 Settings: CLOUD_INIT_SOURCE=cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb COLLECT_LOGS=ON_ERROR EXISTING_INSTANCE_ID=None GCE_PROJECT=None GCE_REGION=us-central1 GCE_ZONE=a INSTANCE_TYPE=None KEEP_IMAGE=False KEEP_INSTANCE=False KEYPAIR_NAME=canonical LOCAL_LOG_PATH=/tmp/cloud_init_test_logs OCI_COMPARTMENT_ID=None OS_IMAGE=bionic PLATFORM=ec2 PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False ----------------------------- Captured stdout call ----------------------------- Detected image: image_id=bionic os=ubuntu release=bionic Detected image: image_id=bionic os=ubuntu release=bionic Detected image: image_id=bionic os=ubuntu release=bionic Detected image: image_id=bionic os=ubuntu release=bionic Launching instance with launch_kwargs: image_id=ami-0b9e262a1824338ec user_data=#cloud-config hostname: SRU-worked wait=False Launching instance with launch_kwargs: image_id=ami-0b9e262a1824338ec user_data=#cloud-config hostname: SRU-worked wait=False Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-03e9d0e4f5162828d')) Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-03e9d0e4f5162828d')) cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~18.04.2 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~18.04.2 Installing deb package Installing deb package Installed cloud-init version: 20.4.1-0ubuntu1~18.04.1 Installed cloud-init version: 20.4.1-0ubuntu1~18.04.1 Instance restarted; waiting for boot Instance restarted; waiting for boot ------------------------------ Captured log call ------------------------------- 2021-01-18 19:18:31 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:40 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:18:40 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0b9e262a1824338ec user_data=#cloud-config hostname: SRU-worked wait=False 2021-01-18 19:19:28 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:19:28 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:19:31 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 52.51.158.86 Retrying ssh connection 60 more time(s) to ubuntu@52.51.158.86:22 2021-01-18 19:19:42 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:19:42 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:19:43 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:19:44 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:19:47 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:19:50 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-03e9d0e4f5162828d')) 2021-01-18 19:19:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:19:51 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~18.04.2 2021-01-18 19:19:51 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c hostname 2021-01-18 19:19:51 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg-query --show cloud-init' 2021-01-18 19:19:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /run/cloud-init/result.json' 2021-01-18 19:19:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init init' 2021-01-18 19:19:53 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'grep Trace /var/log/cloud-init.log' 2021-01-18 19:19:54 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c cloud-id 2021-01-18 19:19:54 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/netplan/50-cloud-init.yaml' 2021-01-18 19:19:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c systemd-analyze 2021-01-18 19:19:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'systemd-analyze blame' 2021-01-18 19:19:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze show' 2021-01-18 19:19:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze blame' 2021-01-18 19:19:57 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 19:19:58 INFO paramiko.transport.sftp:sftp.py:158 [chan 15] Opened sftp connection (server version 3) 2021-01-18 19:19:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/7df5b812-c7b1-490d-a1de-04a575615c75.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb' 2021-01-18 19:19:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg -i /var/tmp/cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb' 2021-01-18 19:20:03 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 19:20:04 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~18.04.1 2021-01-18 19:20:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 19:20:05 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 19:20:05 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'hostname something-else' 2021-01-18 19:20:06 INFO integration_testing:instances.py:67 Instance restarted; waiting for boot 2021-01-18 19:20:07 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:20:08 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' ________ TestLogPermissionsNotResetOnReboot.test_permissions_unchanged _________ self = client = def test_permissions_unchanged(self, client): # Confirm that the current permissions aren't 600 assert "644" == _get_log_perms(client) # Set permissions to 600 and confirm our assertion passes pre-reboot client.execute("chmod 600 /var/log/cloud-init.log") assert "600" == _get_log_perms(client) # Reboot > client.restart(raise_on_cloudinit_failure=True) tests/integration_tests/bugs/test_lp1900837.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration_tests/instances.py:68: in restart self.instance.wait( ../../dev/pycloudlib/pycloudlib/instance.py:103: in wait self._wait_for_cloudinit(raise_on_failure=raise_on_cloudinit_failure) ../../dev/pycloudlib/pycloudlib/instance.py:426: in _wait_for_cloudinit result = self.execute(cmd, description='waiting for start') ../../dev/pycloudlib/pycloudlib/instance.py:172: in execute return self._run_command(command, stdin, **kwargs) ../../dev/pycloudlib/pycloudlib/instance.py:140: in _run_command return self._ssh(list(command), stdin=stdin) ../../dev/pycloudlib/pycloudlib/instance.py:271: in _ssh fp_in, fp_out, fp_err = client.exec_command(cmd) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/client.py:514: in exec_command chan.exec_command(command) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/channel.py:72: in _check return func(self, *args, **kwds) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/channel.py:257: in exec_command self._wait_for_event() ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/channel.py:1226: in _wait_for_event raise e ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/transport.py:2055: in run ptype, m = self.packetizer.read_message() ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/packet.py:459: in read_message header = self.read_all(self.__block_size_in, check_rekey=True) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , n = 16 check_rekey = True def read_all(self, n, check_rekey=False): """ Read as close to N bytes as possible, blocking as long as necessary. :param int n: number of bytes to read :return: the data read, as a `str` :raises: ``EOFError`` -- if the socket was closed before all the bytes could be read """ out = bytes() # handle over-reading from reading the banner line if len(self.__remainder) > 0: out = self.__remainder[:n] self.__remainder = self.__remainder[n:] n -= len(out) while n > 0: got_timeout = False if self.handshake_timed_out(): raise EOFError() try: x = self.__socket.recv(n) if len(x) == 0: > raise EOFError() E EOFError ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/packet.py:303: EOFError ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=bionic os=ubuntu release=bionic Detected image: image_id=bionic os=ubuntu release=bionic Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=None wait=False Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=None wait=False Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0614653392c4f5b76')) Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0614653392c4f5b76')) cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:29:02 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 19:29:02 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-09abeebf42065dd52 user_data=None wait=False 2021-01-18 19:29:34 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:29:34 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:29:42 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.249.87.35 Retrying ssh connection 60 more time(s) to ubuntu@3.249.87.35:22 2021-01-18 19:29:52 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:29:53 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:29:53 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:29:54 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:29:55 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:29:56 INFO integration_testing:clouds.py:168 Launched instance: EC2Instance(key_pair=KeyPair(/home/daniel/.ssh/id_rsa.canonical, /home/daniel/.ssh/id_rsa.canonical.pub, name=canonical), client=, instance=ec2.Instance(id='i-0614653392c4f5b76')) 2021-01-18 19:29:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:29:57 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 ----------------------------- Captured stdout call ----------------------------- Instance restarted; waiting for boot Instance restarted; waiting for boot ------------------------------ Captured log call ------------------------------- 2021-01-18 19:29:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'stat -c %a /var/log/cloud-init.log' 2021-01-18 19:29:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'chmod 600 /var/log/cloud-init.log' 2021-01-18 19:29:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'stat -c %a /var/log/cloud-init.log' 2021-01-18 19:29:58 INFO integration_testing:instances.py:67 Instance restarted; waiting for boot 2021-01-18 19:29:58 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:29:59 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:29:59 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long --------------------------- Captured stdout teardown --------------------------- Writing logs to /tmp/cloud_init_test_logs/210118141821/tests/integration_tests/bugs/test_lp1900837/TestLogPermissionsNotResetOnReboot/test_permissions_unchanged Writing logs to /tmp/cloud_init_test_logs/210118141821/tests/integration_tests/bugs/test_lp1900837/TestLogPermissionsNotResetOnReboot/test_permissions_unchanged ---------------------------- Captured log teardown ----------------------------- 2021-01-18 19:30:00 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init collect-logs -u -t /var/tmp/cloud-init.tar.gz' 2021-01-18 19:30:00 WARNING pycloudlib.instance:instance.py:311 The specified key (/home/daniel/.ssh/id_rsa.canonical) requires a passphrase. If you have not added this key to a running SSH agent, you will see failures to connect after a long timeout. 2021-01-18 19:30:00 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.249.87.35 Retrying ssh connection 60 more time(s) to ubuntu@3.249.87.35:22 2021-01-18 19:31:11 INFO pycloudlib.instance:instance.py:336 timed out Retrying ssh connection 59 more time(s) to ubuntu@3.249.87.35:22 2021-01-18 19:31:22 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 19:31:23 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 19:31:23 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:31:25 INFO integration_testing:conftest.py:177 Writing logs to /tmp/cloud_init_test_logs/210118141821/tests/integration_tests/bugs/test_lp1900837/TestLogPermissionsNotResetOnReboot/test_permissions_unchanged 2021-01-18 19:31:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cp /var/tmp/cloud-init.tar.gz /var/tmp/4f338e23-ceb0-4550-bfdc-91130f3573ab.tmp' 2021-01-18 19:31:26 INFO paramiko.transport.sftp:sftp.py:158 [chan 2] Opened sftp connection (server version 3) =============================== warnings summary =============================== tests/integration_tests/test_upgrade.py::test_upgrade tests/integration_tests/test_upgrade.py::test_upgrade /home/daniel/.virtualenvs/cloud-init/lib/python3.8/site-packages/simplestreams/mirrors/__init__.py:206: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead LOG.warn("got ENOENT for (%s, %s), trying with trailing /", -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ FAILED tests/integration_tests/test_upgrade.py::test_upgrade - EOFError FAILED tests/integration_tests/bugs/test_lp1900837.py::TestLogPermissionsNotResetOnReboot::test_permissions_unchanged = 2 failed, 70 passed, 12 skipped, 1 deselected, 2 warnings in 2973.92s (0:49:33) =