Tested the version we will update to 17.2 on GCE and Amazon:
---- EC2 BEGIN --------------------------------------- csmith@downtown:~$ ssh [email protected] Welcome to Ubuntu Bionic Beaver (development branch) (GNU/Linux 4.13.0-17-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 0 packages can be updated. 0 updates are security updates. Last login: Thu Dec 14 18:24:25 2017 from 67.174.121.94 ubuntu@ip-10-41-41-200:~$ dpkg-query --show cloud-init cloud-init 17.1-60-ga30a3bb5-0ubuntu1 ubuntu@ip-10-41-41-200:~$ cat /run/cloud-init/result.json { "v1": { "datasource": "DataSourceEc2Local", "errors": [] } } ubuntu@ip-10-41-41-200:~$ grep Trace /var/log/cloud-init* ubuntu@ip-10-41-41-200:~$ sudo dpkg -i cloud-init_17.2-0-gc87588bf-1~bddeb_all.deb (Reading database ... 57064 files and directories currently installed.) Preparing to unpack cloud-init_17.2-0-gc87588bf-1~bddeb_all.deb ... Unpacking cloud-init (17.2-0-gc87588bf-1~bddeb) over (17.1-60-ga30a3bb5-0ubuntu1) ... Setting up cloud-init (17.2-0-gc87588bf-1~bddeb) ... Processing triggers for rsyslog (8.16.0-1ubuntu10) ... ubuntu@ip-10-41-41-200:~$ echo $? 0 ubuntu@ip-10-41-41-200:~$ sudo systemctl restart cloud-init ubuntu@ip-10-41-41-200:~$ echo $? 0 ubuntu@ip-10-41-41-200:~$ # remove artifacts and reboot for fresh cloud-init test ubuntu@ip-10-41-41-200:~$ sudo rm -rf /var/log/cloud-init* /var/lib/cloud/; sudo reboot Connection to ec2-18-217-153-55.us-east-2.compute.amazonaws.com closed by remote host. Connection to ec2-18-217-153-55.us-east-2.compute.amazonaws.com closed. csmith@downtown:~$ ssh-keygen -f "/home/csmith/.ssh/known_hosts" -R "ec2-18-217-153-55.us-east-2.compute.amazonaws.com" # Host ec2-18-217-153-55.us-east-2.compute.amazonaws.com found: line 1174 /home/csmith/.ssh/known_hosts updated. Original contents retained as /home/csmith/.ssh/known_hosts.old csmith@downtown:~$ ssh [email protected] The authenticity of host 'ec2-18-217-153-55.us-east-2.compute.amazonaws.com (18.217.153.55)' can't be established. ECDSA key fingerprint is SHA256:KtYG6dJAdQ0JptyoQycgOuegd1xfbpDwjVeq7jIaAPI. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'ec2-18-217-153-55.us-east-2.compute.amazonaws.com,18.217.153.55' (ECDSA) to the list of known hosts. Welcome to Ubuntu Bionic Beaver (development branch) (GNU/Linux 4.13.0-17-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 0 packages can be updated. 0 updates are security updates. Last login: Thu Dec 14 18:31:33 2017 from 67.174.121.94 ubuntu@ip-10-41-41-200:~$ cat /run/cloud-init/result.json cat: /run/cloud-init/result.json: No such file or directory ubuntu@ip-10-41-41-200:~$ cat /run/cloud-init/result.json { "v1": { "datasource": "DataSourceEc2Local", "errors": [] } } ubuntu@ip-10-41-41-200:~$ grep Trace /var/log/cloud-init* ubuntu@ip-10-41-41-200:~$ dpkg-query --show cloud-init cloud-init 17.2-0-gc87588bf-1~bddeb ubuntu@ip-10-41-41-200:~$ ---- EC2 END --------------------------------------- ---- GCE BEGIN --------------------------------------- root@publishing:~# cat <<EOF > allowme.yaml #cloud-config ssh_import_id: - chad.smith > EOF root@publishing:~# gcloud compute instances create bionic-17-2-test --zone=us-central1-b --image daily-ubuntu-1804-bionic-v20171213 --image-project ubuntu-os-cloud-devel --metadata-from-file user-data=allowme.yaml Created [https://www.googleapis.com/compute/v1/projects/cloud-init-testing/zones/us-central1-b/instances/bionic-17-2-test]. NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS bionic-17-2-test us-central1-b n1-standard-1 10.128.0.3 35.226.142.124 RUNNING root@publishing:~# ssh [email protected] The authenticity of host '35.226.142.124 (35.226.142.124)' can't be established. ECDSA key fingerprint is SHA256:9cIpsS/iqDveibLZEXEy1Aki492oBDcyW771mckKtLQ. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '35.226.142.124' (ECDSA) to the list of known hosts. Enter passphrase for key '/root/.ssh/id_rsa': Welcome to Ubuntu Bionic Beaver (development branch) (GNU/Linux 4.13.0-17-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 0 packages can be updated. 0 updates are security updates. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@bionic-17-2-test:~$ dpkg-query --show cloud-init cloud-init 17.1-60-ga30a3bb5-0ubuntu1 ubuntu@bionic-17-2-test:~$ cat /run/cloud-init/result.json { "v1": { "datasource": "DataSourceGCE", "errors": [] } } ubuntu@bionic-17-2-test:~$ grep CODE /etc/os-release VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic ubuntu@bionic-17-2-test:~$ grep Trace /var/log/cloud-init* ubuntu@bionic-17-2-test:~$ sudo dpkg -i cloud-init_17.2-0-gc87588bf-1~bddeb_all.deb (Reading database ... 68595 files and directories currently installed.) Preparing to unpack cloud-init_17.2-0-gc87588bf-1~bddeb_all.deb ... Unpacking cloud-init (17.2-0-gc87588bf-1~bddeb) over (17.1-60-ga30a3bb5-0ubuntu1) ... Setting up cloud-init (17.2-0-gc87588bf-1~bddeb) ... Processing triggers for rsyslog (8.16.0-1ubuntu10) ... ubuntu@bionic-17-2-test:~$ sudo systemctl restart cloud-init ubuntu@bionic-17-2-test:~$ echo $? 0 ubuntu@bionic-17-2-test:~$ # remove artifacts to test fresh cloud-init install ubuntu@bionic-17-2-test:~$ sudo rm -rf /var/log/cloud-init* /var/lib/cloud/; sudo reboot Connection to 35.226.142.124 closed by remote host. Connection to 35.226.142.124 closed. root@publishing:~# ssh [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ... root@publishing:~# ssh-keygen -f "/root/.ssh/known_hosts" -R "35.226.142.124" # Host 35.226.142.124 found: line 17 /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old root@publishing:~# ssh [email protected] The authenticity of host '35.226.142.124 (35.226.142.124)' can't be established. ECDSA key fingerprint is SHA256:++MVQIMIZs2zYWJPLTvjUBZBQHolcCu1v0Ije3FwaAw. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '35.226.142.124' (ECDSA) to the list of known hosts. Enter passphrase for key '/root/.ssh/id_rsa': Welcome to Ubuntu Bionic Beaver (development branch) (GNU/Linux 4.13.0-17-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage * Ubuntu is participating in Google Code-in, a contest to introduce students from 13 to 17 years old to free software. You can join as a student or as a mentor: - https://ubu.one/UcodeIn Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud 0 packages can be updated. 0 updates are security updates. Last login: Thu Dec 14 18:24:16 2017 from 67.174.121.94 ubuntu@bionic-17-2-test:~$ cat /run/cloud-init/result.json { "v1": { "datasource": "DataSourceGCE", "errors": [] } } ubuntu@bionic-17-2-test:~$ grep Trace /var/log/cloud-init* ubuntu@bionic-17-2-test:~$ dpkg-query --show cloud-init cloud-init 17.2-0-gc87588bf-1~bddeb ubuntu@bionic-17-2-test:~$ sudo cloud-init analyze show -- Boot Record 01 -- ... Total Time: 15.13600 seconds 1 boot records analyzed ---- GCE END --------------------------------------- -- https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/335233 Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:release/17.2 into cloud-init:master. _______________________________________________ Mailing list: https://launchpad.net/~cloud-init-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~cloud-init-dev More help : https://help.launchpad.net/ListHelp

