============================= 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 17:45:20 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:45:24 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 17:45:24 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:45:34 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=gce PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False -------------------------------- live log call --------------------------------- 2021-01-18 17:45:34 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:45:44 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:45:44 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-os-cloud-devel/global/images/daily-ubuntu-2010-groovy-v20210114 user_data=#cloud-config hostname: SRU-worked wait=False 2021-01-18 17:46:03 INFO pycloudlib.cloud:cloud.py:222 35.238.117.241 2021-01-18 17:46:05 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 17:46:07 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:46: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 17:46:23 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.238.117.241 Retrying ssh connection 60 more time(s) to ubuntu@35.238.117.241:22 2021-01-18 17:46:33 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 17:46:35 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 17:46:38 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 17:46:39 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 17:46:40 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=6194485442770401189) 2021-01-18 17:46:40 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 17:46:41 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~20.10.2 2021-01-18 17:46:41 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c hostname 2021-01-18 17:46:42 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg-query --show cloud-init' 2021-01-18 17:46:42 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /run/cloud-init/result.json' 2021-01-18 17:46:43 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init init' 2021-01-18 17:46:44 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'grep Trace /var/log/cloud-init.log' 2021-01-18 17:46:45 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c cloud-id 2021-01-18 17:46:46 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/netplan/50-cloud-init.yaml' 2021-01-18 17:46:47 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c systemd-analyze 2021-01-18 17:46:48 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'systemd-analyze blame' 2021-01-18 17:46:49 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze show' 2021-01-18 17:46:50 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze blame' 2021-01-18 17:46:51 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 17:46:53 INFO paramiko.transport.sftp:sftp.py:158 [chan 15] Opened sftp connection (server version 3) 2021-01-18 17:47:00 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/5092e5af-3d9d-43bf-b56d-325a703a1f38.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~20.10.1_all.deb' 2021-01-18 17:47:01 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 17:47:05 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 17:47:06 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~20.10.1 2021-01-18 17:47:06 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 17:47:07 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 17:47:08 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'hostname something-else' 2021-01-18 17:48:01 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:48:01 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 17:48:17 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 104.197.106.7 Retrying ssh connection 60 more time(s) to ubuntu@104.197.106.7:22 2021-01-18 17:48:43 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 17:48:44 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 17:48:46 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 17:48:47 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 17:48:48 INFO integration_testing:instances.py:67 Instance restarted; waiting for boot 2021-01-18 17:48:48 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:48:49 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 17:48:50 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 17:48:51 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c hostname 2021-01-18 17:48:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'dpkg-query --show cloud-init' 2021-01-18 17:48:53 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /run/cloud-init/result.json' 2021-01-18 17:48:53 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init init' 2021-01-18 17:48:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'grep Trace /var/log/cloud-init.log' 2021-01-18 17:48:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c cloud-id 2021-01-18 17:48:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/netplan/50-cloud-init.yaml' 2021-01-18 17:48:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c systemd-analyze 2021-01-18 17:48:58 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'systemd-analyze blame' 2021-01-18 17:48:59 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze show' 2021-01-18 17:49:00 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init analyze blame' 2021-01-18 17:49:24 INFO integration_testing:test_upgrade.py:99 Wrote upgrade test logs to /tmp/cloud_init_test_logs/test_upgrade_gce_groovy_before_210118124520.log and /tmp/cloud_init_test_logs/test_upgrade_gce_groovy_after_210118124520.log PASSED [ 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 17:49:24 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:49:24 INFO integration_testing:conftest.py:141 Setting up environment for gce 2021-01-18 17:49:24 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-os-cloud-devel/global/images/daily-ubuntu-2010-groovy-v20210114 user_data=None wait=False 2021-01-18 17:49:32 INFO pycloudlib.cloud:cloud.py:222 35.193.99.196 2021-01-18 17:49:34 INFO paramiko.transport.sftp:sftp.py:158 [chan 15] sftp session closed. 2021-01-18 17:49:35 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 17:49:37 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:49:37 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 17:50:09 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 17:50:10 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 17:50:12 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 17:50:13 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 17:50:14 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=2955550218586191051) 2021-01-18 17:50:14 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 17:50:15 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~20.10.2 2021-01-18 17:50:15 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 17:50:16 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 17:50:20 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/43592313-eb35-439d-811f-02ff67e8a396.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~20.10.1_all.deb' 2021-01-18 17:50:20 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 17:50:24 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 17:50:25 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~20.10.1 2021-01-18 17:50:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 17:50:27 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 17:51:43 INFO integration_testing:instances.py:117 Created new image: projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 2021-01-18 17:51:49 INFO integration_testing:conftest.py:147 Done with environment setup 2021-01-18 17:51:49 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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 17:52:08 INFO pycloudlib.cloud:cloud.py:222 35.222.202.110 2021-01-18 17:52:10 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 17:52:12 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:52:12 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 17:52:44 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 17:52:45 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 17:52:49 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 17:52:51 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 17:52:57 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=5296399547724493913) 2021-01-18 17:52:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 17:52:58 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 17:52:58 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' PASSED [ 8%] ------------------------------ live log teardown ------------------------------- 2021-01-18 17:53:19 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] sftp session closed. tests/integration_tests/bugs/test_lp1886531.py::TestLp1886531::test_lp1886531 -------------------------------- live log setup -------------------------------- 2021-01-18 17:53:19 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:53:19 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config bootcmd: - rm -f /etc/fstab wait=False 2021-01-18 17:53:26 INFO pycloudlib.cloud:cloud.py:222 35.224.154.89 2021-01-18 17:53:29 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 17:53:31 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:53: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 17:54:03 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 17:54:04 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 17:54:06 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 17:54:07 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 17:54:08 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=161323896868992511) 2021-01-18 17:54:08 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 17:54:10 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 17:54:10 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 17:54:32 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:54:32 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config bootcmd: - echo 'whoops' > /usr/bin/fallocate swap: filename: /swap.img size: 10000000 maxsize: 10000000 wait=False 2021-01-18 17:54:40 INFO pycloudlib.cloud:cloud.py:222 146.148.53.204 2021-01-18 17:54:42 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 17:54:44 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:54:44 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 17:55:16 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 17:55:19 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 17:55:22 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' ERROR [ 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 18:55:22 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 18:55:22 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=None wait=False 2021-01-18 18:55:33 INFO pycloudlib.cloud:cloud.py:222 34.70.21.229 2021-01-18 18:55:35 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 18:55:35 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 18:55:35 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 18:56:07 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 18:56:08 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 18:56:11 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 18:56:12 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 18:56:13 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=8947009964210677620) 2021-01-18 18:56:13 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 18:56:13 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 18:56:13 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'stat -c %a /var/log/cloud-init.log' 2021-01-18 18:56:14 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'chmod 600 /var/log/cloud-init.log' 2021-01-18 18:56:14 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'stat -c %a /var/log/cloud-init.log' 2021-01-18 18:56:45 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 18:56:45 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 18:57:17 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.224.154.89 Retrying ssh connection 60 more time(s) to ubuntu@35.224.154.89:22 2021-01-18 18:57:27 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 18:57:28 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 18:57:31 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 18:57:32 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 18:57:32 INFO integration_testing:instances.py:67 Instance restarted; waiting for boot 2021-01-18 18:57:33 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 18:57:33 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 18:57:33 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 18:57:34 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'stat -c %a /var/log/cloud-init.log' PASSED [ 13%] 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 18:57:53 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 18:57:53 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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 18:58:01 INFO pycloudlib.cloud:cloud.py:222 35.238.117.241 2021-01-18 18:58:02 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 18:58:03 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 18:58:03 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 18:58:35 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 18:58:37 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 18:58:41 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 18:58:42 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 18:58:44 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=4914438304975840478) 2021-01-18 18:58:44 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 18:58:45 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 18:58:45 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 18:59:07 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 18:59:07 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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 18:59:13 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 18:59:14 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 18:59:15 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 18:59: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 18:59:46 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 104.197.106.7 Retrying ssh connection 60 more time(s) to ubuntu@104.197.106.7:22 2021-01-18 18:59:56 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 18:59:57 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:00:00 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:00:01 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:00:01 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=5335974909693158548) 2021-01-18 19:00:01 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:00:02 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:00:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- ls -1 /etc/ssl/certs 2021-01-18 19:00:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- readlink /etc/ssl/certs/a535c1f3.0 2021-01-18 19:00:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- readlink /etc/ssl/certs/ca-certificates.crt 2021-01-18 19:00:02 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:00:03 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:00:03 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:00:22 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:00:22 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config runcmd: - echo 'hi' > /var/tmp/test wait=False 2021-01-18 19:00:28 INFO pycloudlib.cloud:cloud.py:222 104.155.174.210 2021-01-18 19:00:29 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:00:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:00: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:01:01 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 104.155.174.210 Retrying ssh connection 60 more time(s) to ubuntu@104.155.174.210:22 2021-01-18 19:01:12 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:01:12 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:01:15 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:01:16 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:01:17 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=762842617953674281) 2021-01-18 19:01:17 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:01:17 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:01:17 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:01:39 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:01:39 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=runcmd: - echo 'hi' > /var/tmp/test wait=False 2021-01-18 19:01:47 INFO pycloudlib.cloud:cloud.py:222 35.193.99.196 2021-01-18 19:01:48 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:01:49 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:01:49 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:02:20 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:02:21 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:02:24 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:02:25 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:02:25 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=8120233995295811067) 2021-01-18 19:02:25 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:02:26 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:02: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:02:47 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:02:47 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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:02:53 INFO pycloudlib.cloud:cloud.py:222 34.70.21.229 2021-01-18 19:02:55 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:02:55 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:02:55 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:03:27 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.70.21.229 Retrying ssh connection 60 more time(s) to ubuntu@34.70.21.229:22 2021-01-18 19:03:37 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:03:37 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:03:43 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:03:44 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:03:51 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=7518120610219189687) 2021-01-18 19:03:51 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:03:51 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:03:51 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:03:52 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:03:52 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:03:52 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:03:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' 2021-01-18 19:03:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'ip addr show lxdbr0' 2021-01-18 19:03:52 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:04:11 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:04:11 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config ntp: ntp_client: ntp servers: - 172.16.15.14 - 172.16.17.18 wait=False 2021-01-18 19:04:19 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 19:04:20 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:04:20 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:04:20 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:04:52 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:04:52 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:04:56 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:04:57 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:05:20 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=6253559762989376835) 2021-01-18 19:05:20 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:05:21 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:05:21 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:05:21 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:05:21 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:05:21 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:05:21 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:05:21 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:05:21 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:05:42 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:05:42 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config packages: - sl - tree package_update: true package_upgrade: true wait=False 2021-01-18 19:05:49 INFO pycloudlib.cloud:cloud.py:222 34.70.69.108 2021-01-18 19:05:51 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:05:52 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:05: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:06:24 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.70.69.108 Retrying ssh connection 60 more time(s) to ubuntu@34.70.69.108:22 2021-01-18 19:06:34 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:06:34 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:06:38 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:06:39 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:07:16 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=6018282317802922729) 2021-01-18 19:07:16 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:07:17 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:07:17 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:07:17 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:07:17 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:07:18 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:07:18 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:07:40 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:07:40 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config runcmd: - echo cloud-init run cmd test > /var/tmp/run_cmd wait=False 2021-01-18 19:07:50 INFO pycloudlib.cloud:cloud.py:222 35.193.99.196 2021-01-18 19:07:52 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:07:52 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:07: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:08:24 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:08:24 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:08:28 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:08:28 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:08:29 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=4637120775003333266) 2021-01-18 19:08:29 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:08:30 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:08:30 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:08:52 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:08:52 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False 2021-01-18 19:08:59 INFO pycloudlib.cloud:cloud.py:222 35.239.93.143 ERROR [ 39%] tests/integration_tests/modules/test_set_hostname.py::TestHostname::test_hostname -------------------------------- live log setup -------------------------------- 2021-01-18 19:09:10 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:09:10 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config hostname: cloudinit2 wait=False 2021-01-18 19:09:18 INFO pycloudlib.cloud:cloud.py:222 34.70.21.229 2021-01-18 19:09:20 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:09:20 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:09:20 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:09:52 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:09:52 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:09:56 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:09:56 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:09:57 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=201253920057090616) 2021-01-18 19:09:57 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:09:58 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:09:58 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:10:19 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:10:19 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config manage_etc_hosts: true hostname: cloudinit1 fqdn: cloudinit2.i9n.cloud-init.io wait=False 2021-01-18 19:10:28 INFO pycloudlib.cloud:cloud.py:222 35.238.117.241 2021-01-18 19:10:30 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:10:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:10: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:11:02 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:11:02 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:11:06 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:11:06 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:11:07 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=3670803710938211316) 2021-01-18 19:11:07 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:11:08 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:11:08 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c hostname 2021-01-18 19:11:08 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'hostname --fqdn' 2021-01-18 19:11:08 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:11:28 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:11:28 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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:11:36 INFO pycloudlib.cloud:cloud.py:222 35.224.154.89 2021-01-18 19:11:37 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:11:38 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:11: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:12:10 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:12:10 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:12:14 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:12:15 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:12:16 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=6078685341989495694) 2021-01-18 19:12:16 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:12:17 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:12:17 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:12:17 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:12:17 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:12:17 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:12:17 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:12:17 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:12:17 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:12:18 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:12:18 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:12:18 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:12:18 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:12:18 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:12:18 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:12:38 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:12:38 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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:12:44 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 19:12:46 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:12:47 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:12:47 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:13:19 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 104.197.106.7 Retrying ssh connection 60 more time(s) to ubuntu@104.197.106.7:22 2021-01-18 19:13:29 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:13:29 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:13:33 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:13:33 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:13:34 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=8197240319371666248) 2021-01-18 19:13:34 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:13:34 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:13:34 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:13:35 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:13:35 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:13:35 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:13:35 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:13:35 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:13:35 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:13:35 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:13:35 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:13:36 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:13:36 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:13:36 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:13:36 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/sshd_config' PASSED [ 58%] tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_sshd_config ERROR [ 58%] tests/integration_tests/modules/test_snap.py::TestSnap::test_snap -------------------------------- live log setup -------------------------------- 2021-01-18 19:14:21 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:14:21 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config package_update: true snap: squashfuse_in_container: true commands: - snap install hello-world wait=False 2021-01-18 19:14:30 INFO pycloudlib.cloud:cloud.py:222 34.70.69.108 2021-01-18 19:14:32 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:14:32 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:14: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:15:04 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:15:04 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:15:07 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:15:08 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:15:35 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=5020621256721457377) 2021-01-18 19:15:35 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:15:36 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:15:36 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:15:58 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:15:58 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config no_ssh_fingerprints: true wait=False 2021-01-18 19:16:05 INFO pycloudlib.cloud:cloud.py:222 104.155.174.210 2021-01-18 19:16:07 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:16:08 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:16:08 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:16:39 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:16:40 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:16:43 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:16:44 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:16:44 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=4582743538393440385) 2021-01-18 19:16:44 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:16:45 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:16:45 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:17:08 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:17:08 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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:17:16 INFO pycloudlib.cloud:cloud.py:222 35.193.99.196 2021-01-18 19:17:18 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:17:18 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:17: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:17:50 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:17:51 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:17:54 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:17:55 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:17:56 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=6820062302904541275) 2021-01-18 19:17:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:17:57 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:17:57 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:18:20 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:18:20 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config ssh_genkeytypes: - ecdsa - ed25519 authkey_hash: sha512 wait=False 2021-01-18 19:18:28 INFO pycloudlib.cloud:cloud.py:222 34.70.21.229 2021-01-18 19:18:30 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:18:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:18: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:19:02 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:19:03 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:19:04 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:19:05 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:19:07 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=5740785198067900435) 2021-01-18 19:19:07 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:19:08 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:19:08 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:19:08 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:19:08 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:19:09 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:19:09 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:19:09 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:19:09 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:19:09 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:19:09 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:19:10 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:19:10 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:19:10 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:19:10 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:19:10 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:19:10 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:19:30 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:19:30 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False 2021-01-18 19:19:38 INFO pycloudlib.cloud:cloud.py:222 35.238.117.241 2021-01-18 19:19:39 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:19:40 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:19: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:20:11 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.238.117.241 Retrying ssh connection 60 more time(s) to ubuntu@35.238.117.241:22 2021-01-18 19:20:22 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:20:22 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:20:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:20:26 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:20:26 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=2177795640588263853) 2021-01-18 19:20:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:20:27 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:20:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /home/ubuntu/.ssh/authorized_keys' PASSED [ 72%] tests/integration_tests/modules/test_ssh_import_id.py::TestSshImportId::test_ssh_import_id ERROR [ 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 19:21:06 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:21:06 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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 19:21:14 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 19:21:15 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:21:16 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:21: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:21:47 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:21:48 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:21:51 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:21:52 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:21:53 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=822623541897224525) 2021-01-18 19:21:53 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:21:53 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:21:53 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 19:21:54 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:54 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 19:21:54 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:54 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 19:21:54 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:54 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 19:21:54 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:54 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 19:21:54 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:54 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 19:21:54 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:54 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 19:21:55 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:55 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 19:21:55 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:55 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 19:21:55 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:21:55 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 19:22:17 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:22:17 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config timezone: US/Aleutian wait=False 2021-01-18 19:22:23 INFO pycloudlib.cloud:cloud.py:222 35.193.99.196 2021-01-18 19:22:24 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:22:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:22: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:22:56 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:22:57 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:23:00 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:23:01 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:23:01 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=6026930651065245958) 2021-01-18 19:23:01 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:23:02 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:23:02 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 19:23:21 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:23:21 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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 19:23:30 INFO pycloudlib.cloud:cloud.py:222 34.70.21.229 2021-01-18 19:23:31 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:23:32 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:23: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:24:04 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.70.21.229 Retrying ssh connection 60 more time(s) to ubuntu@34.70.21.229:22 2021-01-18 19:24:14 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:24:14 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:24:16 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:24:17 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:24:17 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=3925747124178280134) 2021-01-18 19:24:17 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:24:18 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:24:18 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 19:24:18 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:24:18 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 19:24:18 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:24:18 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 19:24:19 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:24:19 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 19:24:19 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:24:19 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 19:24:19 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:24:19 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 19:24:19 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy -------------------------------- live log call --------------------------------- 2021-01-18 19:24:19 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'groups root' PASSED [ 94%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_user_root_in_secret ERROR [ 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 19:24:58 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:24:58 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image 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 19:25:07 INFO pycloudlib.cloud:cloud.py:222 35.238.117.241 2021-01-18 19:25:08 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:25:09 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19: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 19:25:40 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.238.117.241 Retrying ssh connection 60 more time(s) to ubuntu@35.238.117.241:22 2021-01-18 19:25:51 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:25:51 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:25:55 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:25:56 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:25:56 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=7767546906039311973) 2021-01-18 19:25:56 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:25:57 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:25:57 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 > fixture_utils = session_cloud = setup_image = None @pytest.yield_fixture def client(request, fixture_utils, session_cloud, setup_image): """Provide a client that runs for every test.""" > with _client(request, fixture_utils, session_cloud) as client: tests/integration_tests/conftest.py:222: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/contextlib.py:113: in __enter__ return next(self.gen) tests/integration_tests/conftest.py:210: in _client with session_cloud.launch( tests/integration_tests/clouds.py:167: in launch pycloudlib_instance.wait(raise_on_cloudinit_failure=False) ../../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:508: in exec_command chan = self._transport.open_session(timeout=timeout) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/transport.py:875: in open_session return self.open_channel( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = kind = 'session', dest_addr = None, src_addr = None, window_size = 2097152 max_packet_size = 32768, timeout = 3600 def open_channel( self, kind, dest_addr=None, src_addr=None, window_size=None, max_packet_size=None, timeout=None, ): """ Request a new channel to the server. `Channels <.Channel>` are socket-like objects used for the actual transfer of data across the session. You may only request a channel after negotiating encryption (using `connect` or `start_client`) and authenticating. .. note:: Modifying the the window and packet sizes might have adverse effects on the channel created. The default values are the same as in the OpenSSH code base and have been battle tested. :param str kind: the kind of channel requested (usually ``"session"``, ``"forwarded-tcpip"``, ``"direct-tcpip"``, or ``"x11"``) :param tuple dest_addr: the destination address (address + port tuple) of this port forwarding, if ``kind`` is ``"forwarded-tcpip"`` or ``"direct-tcpip"`` (ignored for other channel types) :param src_addr: the source address of this port forwarding, if ``kind`` is ``"forwarded-tcpip"``, ``"direct-tcpip"``, or ``"x11"`` :param int window_size: optional window size for this session. :param int max_packet_size: optional max packet size for this session. :param float timeout: optional timeout opening a channel, default 3600s (1h) :return: a new `.Channel` on success :raises: `.SSHException` -- if the request is rejected, the session ends prematurely or there is a timeout openning a channel .. versionchanged:: 1.15 Added the ``window_size`` and ``max_packet_size`` arguments. """ if not self.active: raise SSHException("SSH session not active") timeout = 3600 if timeout is None else timeout self.lock.acquire() try: window_size = self._sanitize_window_size(window_size) max_packet_size = self._sanitize_packet_size(max_packet_size) chanid = self._next_channel() m = Message() m.add_byte(cMSG_CHANNEL_OPEN) m.add_string(kind) m.add_int(chanid) m.add_int(window_size) m.add_int(max_packet_size) if (kind == "forwarded-tcpip") or (kind == "direct-tcpip"): m.add_string(dest_addr[0]) m.add_int(dest_addr[1]) m.add_string(src_addr[0]) m.add_int(src_addr[1]) elif kind == "x11": m.add_string(src_addr[0]) m.add_int(src_addr[1]) chan = Channel(chanid) self._channels.put(chanid, chan) self.channel_events[chanid] = event = threading.Event() self.channels_seen[chanid] = True chan._set_transport(self) chan._set_window(window_size, max_packet_size) finally: self.lock.release() self._send_user_message(m) start_ts = time.time() while True: event.wait(0.1) if not self.active: e = self.get_exception() if e is None: e = SSHException("Unable to open channel.") raise e if event.is_set(): break elif start_ts + timeout < time.time(): > raise SSHException("Timeout opening channel.") E paramiko.ssh_exception.SSHException: Timeout opening channel. ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/paramiko/transport.py:1010: SSHException ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=groovy os=ubuntu release=groovy Detected image: image_id=groovy os=ubuntu release=groovy Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config bootcmd: - echo 'whoops' > /usr/bin/fallocate swap: filename: /swap.img size: 10000000 maxsize: 10000000 wait=False Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config bootcmd: - echo 'whoops' > /usr/bin/fallocate swap: filename: /swap.img size: 10000000 maxsize: 10000000 wait=False ------------------------------ Captured log setup ------------------------------ 2021-01-18 17:54:32 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 17:54:32 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config bootcmd: - echo 'whoops' > /usr/bin/fallocate swap: filename: /swap.img size: 10000000 maxsize: 10000000 wait=False 2021-01-18 17:54:40 INFO pycloudlib.cloud:cloud.py:222 146.148.53.204 2021-01-18 17:54:42 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 17:54:44 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 17:54:44 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 17:55:16 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 17:55:19 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 17:55:22 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' __________ ERROR at setup of TestSeedRandomData.test_seed_random_data __________ request = > fixture_utils = session_cloud = setup_image = None @pytest.yield_fixture def client(request, fixture_utils, session_cloud, setup_image): """Provide a client that runs for every test.""" > with _client(request, fixture_utils, session_cloud) as client: tests/integration_tests/conftest.py:222: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/contextlib.py:113: in __enter__ return next(self.gen) tests/integration_tests/conftest.py:210: in _client with session_cloud.launch( tests/integration_tests/clouds.py:165: in launch pycloudlib_instance = self._perform_launch(kwargs) tests/integration_tests/clouds.py:135: in _perform_launch pycloudlib_instance = self.cloud_instance.launch(**launch_kwargs) ../../dev/pycloudlib/pycloudlib/gce/cloud.py:226: in launch return self.get_instance(result['id'], name=result['name']) ../../dev/pycloudlib/pycloudlib/gce/cloud.py:157: in get_instance return GceInstance(self.key_pair, instance_id, ../../dev/pycloudlib/pycloudlib/gce/instance.py:36: in __init__ self.instance = googleapiclient.discovery.build( ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/googleapiclient/_helpers.py:130: in positional_wrapper return wrapped(*args, **kwargs) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/googleapiclient/discovery.py:221: in build content = _retrieve_discovery_doc( ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/googleapiclient/discovery.py:272: in _retrieve_discovery_doc resp, content = http.request(actual_url) ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1985: in request (response, content) = self._request( ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1650: in _request (response, content) = self._conn_request( ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1557: in _conn_request conn.connect() ../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1326: in connect self.sock = self._context.wrap_socket(sock, server_hostname=self.host) /usr/lib/python3.8/ssl.py:500: in wrap_socket return self.sslsocket_class._create( /usr/lib/python3.8/ssl.py:1040: in _create self.do_handshake() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = block = False @_sslcopydoc def do_handshake(self, block=False): self._check_connected() timeout = self.gettimeout() try: if timeout == 0.0 and block: self.settimeout(None) > self._sslobj.do_handshake() E ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1124) /usr/lib/python3.8/ssl.py:1309: SSLEOFError ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=groovy os=ubuntu release=groovy Detected image: image_id=groovy os=ubuntu release=groovy Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:08:52 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:08:52 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False 2021-01-18 19:08:59 INFO pycloudlib.cloud:cloud.py:222 35.239.93.143 _________ ERROR at teardown of TestPasswordListString.test_sshd_config _________ request = > fixture_utils = session_cloud = setup_image = None @pytest.yield_fixture(scope='class') def class_client(request, fixture_utils, session_cloud, setup_image): """Provide a client that runs once per class.""" with _client(request, fixture_utils, session_cloud) as client: > yield client tests/integration_tests/conftest.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/contextlib.py:120: in __exit__ next(self.gen) tests/integration_tests/conftest.py:216: in _client _collect_logs(instance, request.node.nodeid, test_failed) tests/integration_tests/instances.py:179: in __exit__ self.destroy() tests/integration_tests/instances.py:57: in destroy self.instance.delete() ../../dev/pycloudlib/pycloudlib/gce/instance.py:97: in delete self.wait_for_delete() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = GceInstance(instance_id=8197240319371666248), sleep_seconds = 300 def wait_for_delete(self, sleep_seconds=300): """Wait for instance to be deleted.""" # Once instance is deleted, URL just 404s for _ in range(sleep_seconds): try: self.instance.get( project=self.project, zone=self.zone, instance=self.instance_id ).execute() except HttpError as e: if e.resp.status == 404: break raise e else: > raise Exception( 'Instance not terminated after {} seconds. ' 'Check GCE console.'.format(sleep_seconds) ) E Exception: Instance not terminated after 300 seconds. Check GCE console. ../../dev/pycloudlib/pycloudlib/gce/instance.py:158: Exception ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=groovy os=ubuntu release=groovy Detected image: image_id=groovy os=ubuntu release=groovy ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:13:36 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy ------------------------------ Captured log call ------------------------------- 2021-01-18 19:13:36 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/sshd_config' ___________ ERROR at teardown of TestSshImportId.test_ssh_import_id ____________ request = > fixture_utils = session_cloud = setup_image = None @pytest.yield_fixture def client(request, fixture_utils, session_cloud, setup_image): """Provide a client that runs for every test.""" with _client(request, fixture_utils, session_cloud) as client: > yield client tests/integration_tests/conftest.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/contextlib.py:120: in __exit__ next(self.gen) tests/integration_tests/conftest.py:216: in _client _collect_logs(instance, request.node.nodeid, test_failed) tests/integration_tests/instances.py:179: in __exit__ self.destroy() tests/integration_tests/instances.py:57: in destroy self.instance.delete() ../../dev/pycloudlib/pycloudlib/gce/instance.py:97: in delete self.wait_for_delete() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = GceInstance(instance_id=2177795640588263853), sleep_seconds = 300 def wait_for_delete(self, sleep_seconds=300): """Wait for instance to be deleted.""" # Once instance is deleted, URL just 404s for _ in range(sleep_seconds): try: self.instance.get( project=self.project, zone=self.zone, instance=self.instance_id ).execute() except HttpError as e: if e.resp.status == 404: break raise e else: > raise Exception( 'Instance not terminated after {} seconds. ' 'Check GCE console.'.format(sleep_seconds) ) E Exception: Instance not terminated after 300 seconds. Check GCE console. ../../dev/pycloudlib/pycloudlib/gce/instance.py:158: Exception ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=groovy os=ubuntu release=groovy Detected image: image_id=groovy os=ubuntu release=groovy Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False Launched instance: GceInstance(instance_id=2177795640588263853) Launched instance: GceInstance(instance_id=2177795640588263853) cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:19:30 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:19:30 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i1-gce-integration-test-0118-124520-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False 2021-01-18 19:19:38 INFO pycloudlib.cloud:cloud.py:222 35.238.117.241 2021-01-18 19:19:39 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:19:40 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:19: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:20:11 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.238.117.241 Retrying ssh connection 60 more time(s) to ubuntu@35.238.117.241:22 2021-01-18 19:20:22 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:20:22 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:20:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:20:26 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:20:26 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=2177795640588263853) 2021-01-18 19:20:26 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:20:27 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 ------------------------------ Captured log call ------------------------------- 2021-01-18 19:20:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /home/ubuntu/.ssh/authorized_keys' ________ ERROR at teardown of TestUsersGroups.test_user_root_in_secret _________ request = > fixture_utils = session_cloud = setup_image = None @pytest.yield_fixture(scope='class') def class_client(request, fixture_utils, session_cloud, setup_image): """Provide a client that runs once per class.""" with _client(request, fixture_utils, session_cloud) as client: > yield client tests/integration_tests/conftest.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/contextlib.py:120: in __exit__ next(self.gen) tests/integration_tests/conftest.py:216: in _client _collect_logs(instance, request.node.nodeid, test_failed) tests/integration_tests/instances.py:179: in __exit__ self.destroy() tests/integration_tests/instances.py:57: in destroy self.instance.delete() ../../dev/pycloudlib/pycloudlib/gce/instance.py:97: in delete self.wait_for_delete() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = GceInstance(instance_id=3925747124178280134), sleep_seconds = 300 def wait_for_delete(self, sleep_seconds=300): """Wait for instance to be deleted.""" # Once instance is deleted, URL just 404s for _ in range(sleep_seconds): try: self.instance.get( project=self.project, zone=self.zone, instance=self.instance_id ).execute() except HttpError as e: if e.resp.status == 404: break raise e else: > raise Exception( 'Instance not terminated after {} seconds. ' 'Check GCE console.'.format(sleep_seconds) ) E Exception: Instance not terminated after 300 seconds. Check GCE console. ../../dev/pycloudlib/pycloudlib/gce/instance.py:158: Exception ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=groovy os=ubuntu release=groovy Detected image: image_id=groovy os=ubuntu release=groovy ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:24:19 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy ------------------------------ Captured log call ------------------------------- 2021-01-18 19:24:19 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'groups root' =============================== 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 ============================ ERROR tests/integration_tests/bugs/test_lp1897099.py::test_fallocate_fallback ERROR tests/integration_tests/modules/test_seed_random_data.py::TestSeedRandomData::test_seed_random_data ERROR tests/integration_tests/modules/test_set_password.py::TestPasswordListString::test_sshd_config ERROR tests/integration_tests/modules/test_ssh_import_id.py::TestSshImportId::test_ssh_import_id ERROR tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_user_root_in_secret = 70 passed, 12 skipped, 1 deselected, 2 warnings, 5 errors in 6058.54s (1:40:58) = ============================= 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 / 79 deselected / 6 selected tests/integration_tests/bugs/test_lp1897099.py::test_fallocate_fallback -------------------------------- live log setup -------------------------------- 2021-01-18 19:29:57 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:29:59 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:29:59 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:30:05 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=gce PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False 2021-01-18 19:30:05 INFO integration_testing:conftest.py:141 Setting up environment for gce 2021-01-18 19:30:05 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-os-cloud-devel/global/images/daily-ubuntu-2010-groovy-v20210114 user_data=None wait=False 2021-01-18 19:30:43 INFO pycloudlib.cloud:cloud.py:222 34.70.21.229 2021-01-18 19:30:44 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:30:44 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:30:44 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:31:00 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.70.21.229 Retrying ssh connection 60 more time(s) to ubuntu@34.70.21.229:22 2021-01-18 19:31:10 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.70.21.229 Retrying ssh connection 59 more time(s) to ubuntu@34.70.21.229:22 2021-01-18 19:31:20 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:31:20 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:31:22 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:31:23 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:31:23 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=8392703688307138386) 2021-01-18 19:31:23 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:31:24 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~20.10.2 2021-01-18 19:31:24 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 19:31:24 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 19:31:25 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/ee2c43e6-55fb-46c8-9123-38d769000707.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~20.10.1_all.deb' 2021-01-18 19:31:25 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 19:31:28 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 19:31:29 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~20.10.1 2021-01-18 19:31:29 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 19:31:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 19:32:48 INFO integration_testing:instances.py:117 Created new image: projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image 2021-01-18 19:32:53 INFO integration_testing:conftest.py:147 Done with environment setup 2021-01-18 19:32:53 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config bootcmd: - echo 'whoops' > /usr/bin/fallocate swap: filename: /swap.img size: 10000000 maxsize: 10000000 wait=False 2021-01-18 19:33:12 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 19:33:13 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:33:13 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:33: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 19:33:45 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 104.197.106.7 Retrying ssh connection 60 more time(s) to ubuntu@104.197.106.7:22 2021-01-18 19:33:55 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:33:56 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:34:00 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:34:00 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:34:01 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=6130057772234464393) 2021-01-18 19:34:01 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:34:01 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:34:01 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /var/log/cloud-init.log' 2021-01-18 19:34:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /proc/swaps' 2021-01-18 19:34:02 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/fstab' PASSED [ 16%] tests/integration_tests/modules/test_seed_random_data.py::TestSeedRandomData::test_seed_random_data -------------------------------- live log setup -------------------------------- 2021-01-18 19:34:21 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:34:21 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False 2021-01-18 19:34:28 INFO pycloudlib.cloud:cloud.py:222 35.193.99.196 2021-01-18 19:34:29 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:34:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:34: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:35:02 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.193.99.196 Retrying ssh connection 60 more time(s) to ubuntu@35.193.99.196:22 2021-01-18 19:35:12 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:35:12 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:35:15 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:35:16 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:35:16 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=7652019960883469393) 2021-01-18 19:35:16 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:35:17 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:35:17 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /root/seed' PASSED [ 33%] ------------------------------ live log teardown ------------------------------- 2021-01-18 19:35:57 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] sftp session closed. tests/integration_tests/modules/test_seed_random_data.py::TestSeedRandomData::test_seed_random_data ERROR [ 33%] tests/integration_tests/modules/test_set_password.py::TestPasswordList::test_sshd_config -------------------------------- live log setup -------------------------------- 2021-01-18 19:35:57 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:35:57 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image 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:36:04 INFO pycloudlib.cloud:cloud.py:222 35.224.154.89 2021-01-18 19:36:05 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:36:05 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:36: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 19:36:37 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.224.154.89 Retrying ssh connection 60 more time(s) to ubuntu@35.224.154.89:22 2021-01-18 19:36:47 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:36:47 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:36:51 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:36:51 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:36:52 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=4825042945871207922) 2021-01-18 19:36:52 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:36:53 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:36:53 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_sshd_config -------------------------------- live log setup -------------------------------- 2021-01-18 19:37:14 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:37:14 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image 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:37:22 INFO pycloudlib.cloud:cloud.py:222 34.70.69.108 2021-01-18 19:37:24 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:37:25 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:37: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:37:56 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 34.70.69.108 Retrying ssh connection 60 more time(s) to ubuntu@34.70.69.108:22 2021-01-18 19:38:22 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:38:22 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:38:26 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:38:26 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:38:27 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=5631911621110029700) 2021-01-18 19:38:27 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:38:28 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:38:28 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /etc/ssh/sshd_config' PASSED [ 66%] tests/integration_tests/modules/test_ssh_import_id.py::TestSshImportId::test_ssh_import_id -------------------------------- live log setup -------------------------------- 2021-01-18 19:38:47 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:38:47 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False 2021-01-18 19:38:54 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 19:38:55 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:38:56 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:38:56 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:27 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:39:39 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:39:42 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:39:43 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:39:43 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=675425641044663592) 2021-01-18 19:39:43 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:39:44 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:39:44 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /home/ubuntu/.ssh/authorized_keys' PASSED [ 83%] tests/integration_tests/modules/test_ssh_import_id.py::TestSshImportId::test_ssh_import_id ERROR [ 83%] tests/integration_tests/modules/test_users_groups.py::TestUsersGroups::test_user_root_in_secret -------------------------------- live log setup -------------------------------- 2021-01-18 19:40:23 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:40:23 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image 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 19:40:30 INFO pycloudlib.cloud:cloud.py:222 34.71.244.98 2021-01-18 19:40:31 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 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:41:32 INFO pycloudlib.instance:instance.py:336 timed out Retrying ssh connection 60 more time(s) to ubuntu@34.71.244.98:22 2021-01-18 19:41:49 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:41:50 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:41:54 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:41:54 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:41:55 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=7280065914625088200) 2021-01-18 19:41:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:41:55 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:41:55 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'groups root' PASSED [100%] ------------------------------ live log teardown ------------------------------- 2021-01-18 19:42:16 INFO integration_testing:clouds.py:194 Deleting snapshot image created for this testrun: projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image ==================================== ERRORS ==================================== ________ ERROR at teardown of TestSeedRandomData.test_seed_random_data _________ request = > fixture_utils = session_cloud = setup_image = None @pytest.yield_fixture def client(request, fixture_utils, session_cloud, setup_image): """Provide a client that runs for every test.""" with _client(request, fixture_utils, session_cloud) as client: > yield client tests/integration_tests/conftest.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/contextlib.py:120: in __exit__ next(self.gen) tests/integration_tests/conftest.py:216: in _client _collect_logs(instance, request.node.nodeid, test_failed) tests/integration_tests/instances.py:179: in __exit__ self.destroy() tests/integration_tests/instances.py:57: in destroy self.instance.delete() ../../dev/pycloudlib/pycloudlib/gce/instance.py:97: in delete self.wait_for_delete() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = GceInstance(instance_id=7652019960883469393), sleep_seconds = 300 def wait_for_delete(self, sleep_seconds=300): """Wait for instance to be deleted.""" # Once instance is deleted, URL just 404s for _ in range(sleep_seconds): try: self.instance.get( project=self.project, zone=self.zone, instance=self.instance_id ).execute() except HttpError as e: if e.resp.status == 404: break raise e else: > raise Exception( 'Instance not terminated after {} seconds. ' 'Check GCE console.'.format(sleep_seconds) ) E Exception: Instance not terminated after 300 seconds. Check GCE console. ../../dev/pycloudlib/pycloudlib/gce/instance.py:158: Exception ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=groovy os=ubuntu release=groovy Detected image: image_id=groovy os=ubuntu release=groovy Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False Launched instance: GceInstance(instance_id=7652019960883469393) Launched instance: GceInstance(instance_id=7652019960883469393) cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:34:21 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:34:21 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False 2021-01-18 19:34:28 INFO pycloudlib.cloud:cloud.py:222 35.193.99.196 2021-01-18 19:34:29 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:34:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:34: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:35:02 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.193.99.196 Retrying ssh connection 60 more time(s) to ubuntu@35.193.99.196:22 2021-01-18 19:35:12 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:35:12 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:35:15 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:35:16 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:35:16 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=7652019960883469393) 2021-01-18 19:35:16 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:35:17 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 ------------------------------ Captured log call ------------------------------- 2021-01-18 19:35:17 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /root/seed' ___________ ERROR at teardown of TestSshImportId.test_ssh_import_id ____________ request = > fixture_utils = session_cloud = setup_image = None @pytest.yield_fixture def client(request, fixture_utils, session_cloud, setup_image): """Provide a client that runs for every test.""" with _client(request, fixture_utils, session_cloud) as client: > yield client tests/integration_tests/conftest.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.8/contextlib.py:120: in __exit__ next(self.gen) tests/integration_tests/conftest.py:216: in _client _collect_logs(instance, request.node.nodeid, test_failed) tests/integration_tests/instances.py:179: in __exit__ self.destroy() tests/integration_tests/instances.py:57: in destroy self.instance.delete() ../../dev/pycloudlib/pycloudlib/gce/instance.py:97: in delete self.wait_for_delete() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = GceInstance(instance_id=675425641044663592), sleep_seconds = 300 def wait_for_delete(self, sleep_seconds=300): """Wait for instance to be deleted.""" # Once instance is deleted, URL just 404s for _ in range(sleep_seconds): try: self.instance.get( project=self.project, zone=self.zone, instance=self.instance_id ).execute() except HttpError as e: if e.resp.status == 404: break raise e else: > raise Exception( 'Instance not terminated after {} seconds. ' 'Check GCE console.'.format(sleep_seconds) ) E Exception: Instance not terminated after 300 seconds. Check GCE console. ../../dev/pycloudlib/pycloudlib/gce/instance.py:158: Exception ---------------------------- Captured stdout setup ----------------------------- Detected image: image_id=groovy os=ubuntu release=groovy Detected image: image_id=groovy os=ubuntu release=groovy Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False Launched instance: GceInstance(instance_id=675425641044663592) Launched instance: GceInstance(instance_id=675425641044663592) cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 ------------------------------ Captured log setup ------------------------------ 2021-01-18 19:38:47 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:38:47 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-142957-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False 2021-01-18 19:38:54 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 19:38:55 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:38:56 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:38:56 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:27 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:39:39 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:39:42 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:39:43 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:39:43 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=675425641044663592) 2021-01-18 19:39:43 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:39:44 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 ------------------------------ Captured log call ------------------------------- 2021-01-18 19:39:44 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /home/ubuntu/.ssh/authorized_keys' =============================== warnings summary =============================== tests/integration_tests/bugs/test_lp1897099.py::test_fallocate_fallback /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 ============================ ERROR tests/integration_tests/modules/test_seed_random_data.py::TestSeedRandomData::test_seed_random_data ERROR tests/integration_tests/modules/test_ssh_import_id.py::TestSshImportId::test_ssh_import_id ====== 6 passed, 79 deselected, 1 warning, 2 errors in 739.46s (0:12:19) ======= ============================= 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 / 83 deselected / 2 selected tests/integration_tests/modules/test_seed_random_data.py::TestSeedRandomData::test_seed_random_data -------------------------------- live log setup -------------------------------- 2021-01-18 19:51:11 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:51:13 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:51:13 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:51:18 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=gce PUBLIC_SSH_KEY=/home/daniel/.ssh/id_rsa.canonical.pub RUN_UNSTABLE=False 2021-01-18 19:51:18 INFO integration_testing:conftest.py:141 Setting up environment for gce 2021-01-18 19:51:18 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-os-cloud-devel/global/images/daily-ubuntu-2010-groovy-v20210114 user_data=None wait=False 2021-01-18 19:51:26 INFO pycloudlib.cloud:cloud.py:222 35.238.117.241 2021-01-18 19:51:27 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:51:27 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:51: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:51:43 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.238.117.241 Retrying ssh connection 60 more time(s) to ubuntu@35.238.117.241:22 2021-01-18 19:51:53 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 35.238.117.241 Retrying ssh connection 59 more time(s) to ubuntu@35.238.117.241:22 2021-01-18 19:52:03 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:52:03 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:52:06 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:52:06 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:52:07 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=8213020050692003928) 2021-01-18 19:52:07 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:52:08 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4-0ubuntu1~20.10.2 2021-01-18 19:52:08 INFO integration_testing:instances.py:164 Installing deb package 2021-01-18 19:52:08 INFO paramiko.transport.sftp:sftp.py:158 [chan 4] Opened sftp connection (server version 3) 2021-01-18 19:52:08 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'mv /var/tmp/ae89475c-5532-4d59-be60-d1acb0cf794b.tmp /var/tmp/cloud-init_20.4.1-0ubuntu1~20.10.1_all.deb' 2021-01-18 19:52:08 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 19:52:12 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init -v' 2021-01-18 19:52:13 INFO integration_testing:instances.py:137 Installed cloud-init version: 20.4.1-0ubuntu1~20.10.1 2021-01-18 19:52:13 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo cloud-init clean --logs' 2021-01-18 19:52:14 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'sudo rm -rf /var/log/syslog' 2021-01-18 19:53:01 INFO integration_testing:instances.py:117 Created new image: projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-145111-image 2021-01-18 19:53:06 INFO integration_testing:conftest.py:147 Done with environment setup 2021-01-18 19:53:06 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-145111-image user_data=#cloud-config random_seed: data: 'MYUb34023nD:LFDK10913jk;dfnk:Df' encoding: raw file: /root/seed wait=False 2021-01-18 19:53:27 INFO pycloudlib.cloud:cloud.py:222 104.155.174.210 2021-01-18 19:53:28 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:53:28 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:53: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:54:00 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 104.155.174.210 Retrying ssh connection 60 more time(s) to ubuntu@104.155.174.210:22 2021-01-18 19:54:10 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:54:11 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:54:14 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:54:15 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:54:15 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=8336644057172826573) 2021-01-18 19:54:15 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:54:16 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:54:16 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /root/seed' PASSED [ 50%] tests/integration_tests/modules/test_ssh_import_id.py::TestSshImportId::test_ssh_import_id -------------------------------- live log setup -------------------------------- 2021-01-18 19:54:36 INFO integration_testing:clouds.py:73 Detected image: image_id=groovy os=ubuntu release=groovy 2021-01-18 19:54:36 INFO integration_testing:clouds.py:159 Launching instance with launch_kwargs: image_id=projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-145111-image user_data=#cloud-config ssh_import_id: - gh:powersj - lp:smoser wait=False 2021-01-18 19:54:43 INFO pycloudlib.cloud:cloud.py:222 104.197.106.7 2021-01-18 19:54:44 WARNING google.auth._default:_default.py:346 No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable 2021-01-18 19:54:45 INFO pycloudlib.instance:instance.py:166 executing: sh -c whoami 2021-01-18 19:54:45 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:16 INFO pycloudlib.instance:instance.py:336 [Errno None] Unable to connect to port 22 on 104.197.106.7 Retrying ssh connection 60 more time(s) to ubuntu@104.197.106.7:22 2021-01-18 19:55:27 INFO paramiko.transport:transport.py:1819 Connected (version 2.0, client OpenSSH_8.3p1) 2021-01-18 19:55:27 INFO paramiko.transport:transport.py:1819 Authentication (publickey) successful! 2021-01-18 19:55:30 INFO pycloudlib.instance:instance.py:166 executing: sh -c 'cloud-init status --help' 2021-01-18 19:55:31 INFO pycloudlib.instance:instance.py:166 executing: cloud-init status --wait --long 2021-01-18 19:55:31 INFO integration_testing:clouds.py:168 Launched instance: GceInstance(instance_id=4285736190413920659) 2021-01-18 19:55:31 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cloud-init --version' 2021-01-18 19:55:32 INFO integration_testing:clouds.py:172 cloud-init version: /usr/bin/cloud-init 20.4.1-0ubuntu1~20.10.1 -------------------------------- live log call --------------------------------- 2021-01-18 19:55:32 INFO pycloudlib.instance:instance.py:166 executing: sudo -- sh -c 'cat /home/ubuntu/.ssh/authorized_keys' PASSED [100%] ------------------------------ live log teardown ------------------------------- 2021-01-18 19:55:52 INFO integration_testing:clouds.py:194 Deleting snapshot image created for this testrun: projects/ubuntu-oddbloke/global/images/i0-gce-integration-test-0118-145111-image =============================== warnings summary =============================== tests/integration_tests/modules/test_seed_random_data.py::TestSeedRandomData::test_seed_random_data /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 =========== 2 passed, 83 deselected, 1 warning in 281.98s (0:04:41) ============