============================= 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 1 item tests/integration_tests/test_1911680.py::test_test -------------------------------- live log setup -------------------------------- 2021-01-18 21:24:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 21:24:26 INFO botocore.credentials:credentials.py:1262 Credentials found in config file: ~/.aws/config 2021-01-18 21:24:26 INFO integration_testing:clouds.py:73 Detected image: image_id=bionic os=ubuntu release=bionic 2021-01-18 21:24:36 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 2021-01-18 21:24:36 INFO integration_testing:conftest.py:141 Setting up environment for ec2 2021-01-18 21:24:36 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0b9e262a1824338ec user_data=None wait=False 2021-01-18 21:25:09 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:25: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 21:25:16 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.248.250.212 Retrying ssh connection 60 more time(s) to ubuntu@3.248.250.212:22 2021-01-18 21:25:27 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 21:25:28 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:25:28 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:25:29 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:25:31 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:25:31 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-014bce6e8018e7609')) 2021-01-18 21:25:31 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:25:32 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~18.04.2 2021-01-18 21:25:32 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 21:25:33 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 21:25:34 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/fe0e8779-d35e-4403-8524-82168d189b25.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~18.04.1_all.deb' 2021-01-18 21:25:35 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 21:25:38 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 21:25:39 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~18.04.1 2021-01-18 21:25:39 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:25:40 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:25:40 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:25:41 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:27:16 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:27: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 21:27:24 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 54.78.84.134 Retrying ssh connection 60 more time(s) to ubuntu@54.78.84.134:22 2021-01-18 21:27:34 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 21:27:35 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:27:35 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:27:36 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:27:37 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:27:38 INFO integration_testing:instances.py:117 Created new image: ami-03f9c5e8d95fd0e34 2021-01-18 21:28:24 INFO integration_testing:conftest.py:147 Done with environment setup -------------------------------- live log call --------------------------------- 2021-01-18 21:28:24 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-03f9c5e8d95fd0e34 user_data=#cloud-config bootcmd: - sed -i "s,#AuthorizedKeysFile.*,AuthorizedKeysFile /etc/ssh/authorized_keys /etc/backdoor_keys," /etc/ssh/sshd_config runcmd: - | cat << EOF > /etc/backdoor_keys ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDes50i5YZ1QYVqii7L4wu5K1zAEBEYfA3vE1delFH9XQNXJ4oVNQNcsZMqMnE4Kad4VZo1SuRAa5X7tZiVpPF7WcsTm3HXhJmDjUT5FMmZ1c8NwtMETNOo2zAF9KEfJLQo99a9UZwhkiRudjZWA/FqBOJxBlnirSq7TOgrMin0/qlODQz8nrYoPj8mFGAuOiyKtqaLcH0C8Xl/DVCMgC6YLv5xDFTP1Jz5pLG59aqaAuc+3QKdYqoSTjT8IZEtpkNHuqTBaDkaopWogHEc3yjfc8VtkV4x/WVtvv9oqQQCqu8+JHm1/mFvDD/yL90wR+L261MdlN+ojojdmCP9jXFf canonical EOF wait=False 2021-01-18 21:28:57 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:28:57 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 21:29:05 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 52.18.205.2 Retrying ssh connection 60 more time(s) to ubuntu@52.18.205.2:22 2021-01-18 21:29:15 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.6p1) 2021-01-18 21:29:16 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:29:16 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:29:17 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:29:18 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:29:19 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-05b62e64f46687f53')) 2021-01-18 21:29:19 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:29:20 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~18.04.1 2021-01-18 21:29:20 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -f /etc/ssh/authorized_keys' PASSED [100%] ------------------------------ live log teardown ------------------------------- 2021-01-18 21:29:51 INFO integration_testing:clouds.py:194 Deleting snapshot image created for this testrun: ami-03f9c5e8d95fd0e34 =============================== warnings summary =============================== tests/integration_tests/test_1911680.py::test_test /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 =================== 1 passed, 1 warning in 326.73s (0:05:26) =================== ============================= 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 1 item tests/integration_tests/test_1911680.py::test_test -------------------------------- live log setup -------------------------------- 2021-01-18 21:23:45 INFO integration_testing:clouds.py:73 Detected image: image_id=focal os=ubuntu release=focal 2021-01-18 21:23:45 INFO botocore.credentials:credentials.py:1262 Credentials found in config file: ~/.aws/config 2021-01-18 21:23:45 INFO integration_testing:clouds.py:73 Detected image: image_id=focal os=ubuntu release=focal 2021-01-18 21:23:56 INFO integration_testing:clouds.py:113 Settings: CLOUD_INIT_SOURCE=cloud-init_20.4.1-0ubuntu1~20.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=focal PLATFORM=ec2 PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False 2021-01-18 21:23:56 INFO integration_testing:conftest.py:141 Setting up environment for ec2 2021-01-18 21:23:56 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-04ffbabc7935ec0e9 user_data=None wait=False 2021-01-18 21:24:28 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:24: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 21:24:29 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.251.143.115 Retrying ssh connection 60 more time(s) to ubuntu@34.251.143.115:22 2021-01-18 21:24:39 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.2p1) 2021-01-18 21:24:40 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:24:40 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:24:42 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:24:43 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:24: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-08457be634309bd28')) 2021-01-18 21:24:44 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:24:45 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~20.04.1 2021-01-18 21:24:45 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 21:24:45 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 21:24:47 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/d3ab5a55-3208-4bd3-9998-b0011311cc96.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~20.04.1_all.deb' 2021-01-18 21:24:47 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg -i /var/tmp/cloud-init_20.4.1-0ubuntu1~20.04.1_all.deb' 2021-01-18 21:24:54 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 21:24:59 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~20.04.1 2021-01-18 21:24:59 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:25:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:25:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:25:08 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:27:48 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:27:48 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 21:27:51 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.249.13.107 Retrying ssh connection 60 more time(s) to ubuntu@3.249.13.107:22 2021-01-18 21:28:02 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.2p1) 2021-01-18 21:28:03 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:28:03 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:28:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:28:05 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:28:06 INFO integration_testing:instances.py:117 Created new image: ami-06c1c35dfa5347a50 2021-01-18 21:28:52 INFO integration_testing:conftest.py:147 Done with environment setup -------------------------------- live log call --------------------------------- 2021-01-18 21:28:52 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-06c1c35dfa5347a50 user_data=#cloud-config bootcmd: - sed -i "s,#AuthorizedKeysFile.*,AuthorizedKeysFile /etc/ssh/authorized_keys /etc/backdoor_keys," /etc/ssh/sshd_config runcmd: - | cat << EOF > /etc/backdoor_keys ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDes50i5YZ1QYVqii7L4wu5K1zAEBEYfA3vE1delFH9XQNXJ4oVNQNcsZMqMnE4Kad4VZo1SuRAa5X7tZiVpPF7WcsTm3HXhJmDjUT5FMmZ1c8NwtMETNOo2zAF9KEfJLQo99a9UZwhkiRudjZWA/FqBOJxBlnirSq7TOgrMin0/qlODQz8nrYoPj8mFGAuOiyKtqaLcH0C8Xl/DVCMgC6YLv5xDFTP1Jz5pLG59aqaAuc+3QKdYqoSTjT8IZEtpkNHuqTBaDkaopWogHEc3yjfc8VtkV4x/WVtvv9oqQQCqu8+JHm1/mFvDD/yL90wR+L261MdlN+ojojdmCP9jXFf canonical EOF wait=False 2021-01-18 21:29:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:29: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 21:29:32 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.245.69.112 Retrying ssh connection 60 more time(s) to ubuntu@34.245.69.112:22 2021-01-18 21:29:43 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.2p1) 2021-01-18 21:29:44 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:29:44 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:29:45 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:29:46 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:29: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-095590746ced57fa1')) 2021-01-18 21:29:47 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:29:48 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.04.1 2021-01-18 21:29:48 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -f /etc/ssh/authorized_keys' PASSED [100%] ------------------------------ live log teardown ------------------------------- 2021-01-18 21:30:35 INFO integration_testing:clouds.py:194 Deleting snapshot image created for this testrun: ami-06c1c35dfa5347a50 =============================== warnings summary =============================== tests/integration_tests/test_1911680.py::test_test /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 =================== 1 passed, 1 warning in 412.63s (0:06:52) =================== ============================= 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 1 item tests/integration_tests/test_1911680.py::test_test -------------------------------- live log setup -------------------------------- 2021-01-18 21:23:30 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 21:23:30 INFO botocore.credentials:credentials.py:1262 Credentials found in config file: ~/.aws/config 2021-01-18 21:23:31 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 21:23:41 INFO integration_testing:clouds.py:113 Settings: CLOUD_INIT_SOURCE=cloud-init_20.4.1-0ubuntu1~20.10.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=groovy PLATFORM=ec2 PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False 2021-01-18 21:23:41 INFO integration_testing:conftest.py:141 Setting up environment for ec2 2021-01-18 21:23:41 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0c9f662873e10618e user_data=None wait=False 2021-01-18 21:24:13 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:24:13 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 21:24:14 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 3.249.59.216 Retrying ssh connection 60 more time(s) to ubuntu@3.249.59.216:22 2021-01-18 21:24:24 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 21:24:25 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:24:25 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:24:27 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:24:28 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:24:29 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-0fc6d387889072757')) 2021-01-18 21:24:29 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:24:29 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~20.10.1 2021-01-18 21:24:29 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 21:24:30 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 21:24:31 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/9a161e60-83b4-4f7e-bd77-e4fd07c284d8.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~20.10.1_all.deb' 2021-01-18 21:24:31 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg -i /var/tmp/cloud-init_20.4.1-0ubuntu1~20.10.1_all.deb' 2021-01-18 21:24:38 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 21:24:40 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~20.10.1 2021-01-18 21:24:40 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:24:45 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:24:46 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:24:51 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:27:57 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:27:57 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 21:27:58 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.243.25.89 Retrying ssh connection 60 more time(s) to ubuntu@34.243.25.89:22 2021-01-18 21:28:08 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 21:28:09 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:28:09 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:28:11 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:28:12 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:28:13 INFO integration_testing:instances.py:117 Created new image: ami-0e81b18b6f3785f86 2021-01-18 21:28:59 INFO integration_testing:conftest.py:147 Done with environment setup -------------------------------- live log call --------------------------------- 2021-01-18 21:28:59 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0e81b18b6f3785f86 user_data=#cloud-config bootcmd: - sed -i "s,#AuthorizedKeysFile.*,AuthorizedKeysFile /etc/ssh/authorized_keys /etc/backdoor_keys," /etc/ssh/sshd_config runcmd: - | cat << EOF > /etc/backdoor_keys ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDes50i5YZ1QYVqii7L4wu5K1zAEBEYfA3vE1delFH9XQNXJ4oVNQNcsZMqMnE4Kad4VZo1SuRAa5X7tZiVpPF7WcsTm3HXhJmDjUT5FMmZ1c8NwtMETNOo2zAF9KEfJLQo99a9UZwhkiRudjZWA/FqBOJxBlnirSq7TOgrMin0/qlODQz8nrYoPj8mFGAuOiyKtqaLcH0C8Xl/DVCMgC6YLv5xDFTP1Jz5pLG59aqaAuc+3QKdYqoSTjT8IZEtpkNHuqTBaDkaopWogHEc3yjfc8VtkV4x/WVtvv9oqQQCqu8+JHm1/mFvDD/yL90wR+L261MdlN+ojojdmCP9jXFf canonical EOF wait=False 2021-01-18 21:29:31 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:29: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 21:29:35 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 18.202.77.60 Retrying ssh connection 60 more time(s) to ubuntu@18.202.77.60:22 2021-01-18 21:29:45 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 21:29:46 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:29:46 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:29:48 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:29:48 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:29: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-0c1ef9cfae8b254bd')) 2021-01-18 21:29:49 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:29:50 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 2021-01-18 21:29:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -f /etc/ssh/authorized_keys' PASSED [100%] ------------------------------ live log teardown ------------------------------- 2021-01-18 21:30:37 INFO integration_testing:clouds.py:194 Deleting snapshot image created for this testrun: ami-0e81b18b6f3785f86 =============================== warnings summary =============================== tests/integration_tests/test_1911680.py::test_test /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 =================== 1 passed, 1 warning in 427.57s (0:07:07) =================== ============================= 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 1 item tests/integration_tests/test_1911680.py::test_test -------------------------------- live log setup -------------------------------- 2021-01-18 21:24:45 INFO integration_testing:clouds.py:73 Detected image: image_id=xenial os=ubuntu release=xenial 2021-01-18 21:24:45 INFO botocore.credentials:credentials.py:1262 Credentials found in config file: ~/.aws/config 2021-01-18 21:24:45 INFO integration_testing:clouds.py:73 Detected image: image_id=xenial os=ubuntu release=xenial 2021-01-18 21:24:55 INFO integration_testing:clouds.py:113 Settings: CLOUD_INIT_SOURCE=cloud-init_20.4.1-0ubuntu1~16.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=xenial PLATFORM=ec2 PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False 2021-01-18 21:24:55 INFO integration_testing:conftest.py:141 Setting up environment for ec2 2021-01-18 21:24:55 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0d67111dcacb4a14a user_data=None wait=False 2021-01-18 21:25:28 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:25: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 21:25:35 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.2p2) 2021-01-18 21:25:36 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:25:36 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:25:37 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:25:38 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:25: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-044737349f48fc8d5')) 2021-01-18 21:25:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:25:50 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.3-2-g371b392c-0ubuntu1~16.04.1 2021-01-18 21:25:50 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 21:25:51 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 21:25:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/4b8c6ece-63f1-4542-9d07-1d0a0769bcfe.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~16.04.1_all.deb' 2021-01-18 21:25:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg -i /var/tmp/cloud-init_20.4.1-0ubuntu1~16.04.1_all.deb' 2021-01-18 21:25:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 21:25:58 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~16.04.1 2021-01-18 21:25:58 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:26:01 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:26:01 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 21:26:05 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 21:28:57 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:28:57 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 21:28:57 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.2p2) 2021-01-18 21:28:58 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:28:58 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:28:59 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:29:00 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:29:01 INFO integration_testing:instances.py:117 Created new image: ami-0d2710ff568680bc8 2021-01-18 21:29:32 INFO integration_testing:conftest.py:147 Done with environment setup -------------------------------- live log call --------------------------------- 2021-01-18 21:29:32 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=ami-0d2710ff568680bc8 user_data=#cloud-config bootcmd: - sed -i "s,#AuthorizedKeysFile.*,AuthorizedKeysFile /etc/ssh/authorized_keys /etc/backdoor_keys," /etc/ssh/sshd_config runcmd: - | cat << EOF > /etc/backdoor_keys ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDes50i5YZ1QYVqii7L4wu5K1zAEBEYfA3vE1delFH9XQNXJ4oVNQNcsZMqMnE4Kad4VZo1SuRAa5X7tZiVpPF7WcsTm3HXhJmDjUT5FMmZ1c8NwtMETNOo2zAF9KEfJLQo99a9UZwhkiRudjZWA/FqBOJxBlnirSq7TOgrMin0/qlODQz8nrYoPj8mFGAuOiyKtqaLcH0C8Xl/DVCMgC6YLv5xDFTP1Jz5pLG59aqaAuc+3QKdYqoSTjT8IZEtpkNHuqTBaDkaopWogHEc3yjfc8VtkV4x/WVtvv9oqQQCqu8+JHm1/mFvDD/yL90wR+L261MdlN+ojojdmCP9jXFf canonical EOF wait=False 2021-01-18 21:30:05 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 21:30:05 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 21:30:07 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 18.203.68.95 Retrying ssh connection 60 more time(s) to ubuntu@18.203.68.95:22 2021-01-18 21:30:17 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_7.2p2) 2021-01-18 21:30:18 INFO paramiko.transport:transport.py:1819 Authentication (publickey) failed. 2021-01-18 21:30:19 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 21:30:19 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 21:30:20 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 21:30:20 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-018088a11a82ab094')) 2021-01-18 21:30:20 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 21:30:21 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~16.04.1 2021-01-18 21:30:21 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'test -f /etc/ssh/authorized_keys' PASSED [100%] ------------------------------ live log teardown ------------------------------- 2021-01-18 21:31:08 INFO integration_testing:clouds.py:194 Deleting snapshot image created for this testrun: ami-0d2710ff568680bc8 2021-01-18 21:31:09 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] sftp session closed. =============================== warnings summary =============================== tests/integration_tests/test_1911680.py::test_test /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 =================== 1 passed, 1 warning in 384.15s (0:06:24) ===================