Validated against Xenial and Artful, while IBMCloud doesn't have any
publicly available artful images, we've contrived an example upgrade
from public xenial instance to artful to ensure it doesn't break.
Abridged validation logs below
=== BEGIN SRU Validation Xenial ===
root@publishing:~# cat > runcmd.yaml <<EOF
> #cloud-config
> hostname: SRU-worked
> runcmd:
> - [sh, '-c', 'cat /proc/uptime > /run/runcmd-ran.txt']
> EOF
root@publishing:~# VM_IP=`launch-softlayer --pubkey-file ~/.ssh/id_rsa.pub -u
runcmd.yaml -i xenial | awk '/primary ip/{printf "root@%s", $3}'`
Destroy instance with:
slcli virtual cancel 54555262
root@publishing:~# ssh $VM_IP -- cat /run/cloud-init/result.json
{
"v1": {
"datasource": "DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive]",
"errors": []
}
}
root@publishing:~# ssh $VM_IP -- cloud-init analyze show;
-- Boot Record 01 --
The total time elapsed since completing an event is printed after the "@"
character.
The time the event takes is printed after the "+" character.
Starting stage: init-local
|`->no cache found @00.01600s +00.00000s
|`->found local data from DataSourceConfigDrive @00.05300s +00.00500s
Finished stage: (init-local) 00.24200 seconds
Starting stage: init-network
|`->restored from cache with run check: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @01.00900s +00.00500s
|`->reading and applying user-data @01.10100s +00.00500s
|`->reading and applying vendor-data @01.10600s +00.00000s
|`->config-migrator ran successfully @01.42800s +00.00000s
|`->config-seed_random ran successfully @01.42900s +00.00500s
|`->config-bootcmd ran successfully @01.43400s +00.00100s
|`->config-write-files ran successfully @01.43500s +00.00100s
|`->config-growpart ran successfully @01.43700s +00.24800s
|`->config-resizefs ran successfully @01.68600s +00.04900s
|`->config-disk_setup ran successfully @01.73500s +00.00200s
|`->config-mounts ran successfully @01.73700s +00.22200s
|`->config-set_hostname ran successfully @01.96000s +00.01500s
|`->config-update_hostname ran successfully @01.97600s +00.00200s
|`->config-update_etc_hosts ran successfully @01.97800s +00.00200s
|`->config-ca-certs ran successfully @01.98000s +00.00100s
|`->config-rsyslog ran successfully @01.98200s +00.00100s
|`->config-users-groups ran successfully @01.98300s +00.06100s
|`->config-ssh ran successfully @02.04400s +00.58000s
Finished stage: (init-network) 01.64600 seconds
Starting stage: modules-config
|`->config-emit_upstart ran successfully @05.04800s +00.00000s
|`->config-snap_config ran successfully @05.04800s +00.00100s
|`->config-ssh-import-id ran successfully @05.05000s +00.00100s
|`->config-locale ran successfully @05.05100s +01.30800s
|`->config-set-passwords ran successfully @06.36000s +00.08500s
|`->config-grub-dpkg ran successfully @06.44500s +00.50100s
|`->config-apt-pipelining ran successfully @06.94600s +00.00400s
|`->config-apt-configure ran successfully @06.95000s +00.19600s
|`->config-ntp ran successfully @07.14700s +00.00100s
|`->config-timezone ran successfully @07.14900s +00.00100s
|`->config-disable-ec2-metadata ran successfully @07.15000s +00.00000s
|`->config-runcmd ran successfully @07.15100s +00.00200s
|`->config-byobu ran successfully @07.15300s +00.00100s
Finished stage: (modules-config) 02.16900 seconds
Starting stage: modules-final
|`->config-snappy ran successfully @26.36800s +00.00300s
|`->config-package-update-upgrade-install ran successfully @26.37100s +00.00100s
|`->config-fan ran successfully @26.37200s +00.00100s
|`->config-landscape ran successfully @26.37400s +00.00100s
|`->config-lxd ran successfully @26.37500s +00.00100s
|`->config-puppet ran successfully @26.37600s +00.00100s
|`->config-chef ran successfully @26.37700s +00.00100s
|`->config-salt-minion ran successfully @26.37900s +00.00100s
|`->config-mcollective ran successfully @26.38000s +00.00100s
|`->config-rightscale_userdata ran successfully @26.38100s +00.00100s
|`->config-scripts-vendor ran successfully @26.38300s +00.00000s
|`->config-scripts-per-once ran successfully @26.38400s +00.00100s
|`->config-scripts-per-boot ran successfully @26.38500s +00.00000s
|`->config-scripts-per-instance ran successfully @26.38600s +00.00100s
|`->config-scripts-user ran successfully @26.38700s +00.00700s
|`->config-ssh-authkey-fingerprints ran successfully @26.39500s +00.01500s
|`->config-keys-to-console ran successfully @26.41100s +00.09900s
|`->config-phone-home ran successfully @26.51100s +00.00200s
|`->config-final-message ran successfully @26.51300s +00.00600s
|`->config-power-state-change ran successfully @26.51900s +00.00100s
Finished stage: (modules-final) 00.21400 seconds
Total Time: 4.27100 seconds
-- Boot Record 02 --
The total time elapsed since completing an event is printed after the "@"
character.
The time the event takes is printed after the "+" character.
Starting stage: init-local
|`->restored from checked cache: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @00.01700s +00.02400s
Finished stage: (init-local) 00.14000 seconds
Starting stage: init-network
|`->restored from cache with run check: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @00.88800s +00.00600s
|`->reading and applying user-data @00.97600s +00.00600s
|`->reading and applying vendor-data @00.98200s +00.00100s
|`->config-migrator ran successfully @01.19600s +00.00700s
|`->config-seed_random previously ran @01.20300s +00.00000s
|`->config-bootcmd ran successfully @01.20400s +00.00000s
|`->config-write-files previously ran @01.20500s +00.00000s
|`->config-growpart ran successfully @01.20500s +00.14500s
|`->config-resizefs ran successfully @01.35100s +00.05200s
|`->config-disk_setup previously ran @01.40300s +00.00100s
|`->config-mounts previously ran @01.40400s +00.00000s
|`->config-set_hostname previously ran @01.40500s +00.00000s
|`->config-update_hostname ran successfully @01.40500s +00.00700s
|`->config-update_etc_hosts ran successfully @01.41300s +00.00000s
|`->config-ca-certs previously ran @01.41300s +00.00100s
|`->config-rsyslog previously ran @01.41400s +00.00000s
|`->config-users-groups previously ran @01.41500s +00.00000s
|`->config-ssh previously ran @01.41500s +00.00000s
Finished stage: (init-network) 00.55300 seconds
Starting stage: modules-config
|`->config-emit_upstart ran successfully @03.51600s +00.00100s
|`->config-snap_config previously ran @03.51800s +00.00000s
|`->config-ssh-import-id previously ran @03.51800s +00.00000s
|`->config-locale previously ran @03.51900s +00.00000s
|`->config-set-passwords previously ran @03.51900s +00.00000s
|`->config-grub-dpkg previously ran @03.52200s +00.00000s
|`->config-apt-pipelining previously ran @03.52200s +00.00100s
|`->config-apt-configure previously ran @03.52300s +00.00000s
|`->config-ntp previously ran @03.52400s +00.00000s
|`->config-timezone previously ran @03.52400s +00.00000s
|`->config-disable-ec2-metadata ran successfully @03.52500s +00.00000s
|`->config-runcmd previously ran @03.52500s +00.00100s
|`->config-byobu previously ran @03.52600s +00.00000s
Finished stage: (modules-config) 00.06800 seconds
Starting stage: modules-final
|`->config-snappy previously ran @04.74600s +00.00100s
|`->config-package-update-upgrade-install previously ran @04.74700s +00.00000s
|`->config-fan previously ran @04.74800s +00.00000s
|`->config-landscape previously ran @04.74800s +00.00100s
|`->config-lxd previously ran @04.74900s +00.00000s
|`->config-puppet previously ran @04.74900s +00.00100s
|`->config-chef previously ran @04.75000s +00.00000s
|`->config-salt-minion previously ran @04.75100s +00.00000s
|`->config-mcollective previously ran @04.75100s +00.00000s
|`->config-rightscale_userdata previously ran @04.75200s +00.00000s
|`->config-scripts-vendor previously ran @04.75200s +00.00000s
|`->config-scripts-per-once previously ran @04.75300s +00.00000s
|`->config-scripts-per-boot ran successfully @04.75300s +00.00100s
|`->config-scripts-per-instance previously ran @04.75500s +00.00000s
|`->config-scripts-user previously ran @04.75500s +00.00000s
|`->config-ssh-authkey-fingerprints previously ran @04.75600s +00.00000s
|`->config-keys-to-console previously ran @04.75600s +00.00000s
|`->config-phone-home previously ran @04.75700s +00.00000s
|`->config-final-message ran successfully @04.75700s +00.00500s
|`->config-power-state-change previously ran @04.76300s +00.00000s
Finished stage: (modules-final) 00.10200 seconds
Starting stage: single
Total Time: 0.86300 seconds
2 boot records analyzed
# upgrade to xenial-proposed
root@publishing:~# ssh $VM_IP -- sh -c '
> mirror=http://archive.ubuntu.com/ubuntu
> echo deb $mirror $(lsb_release -sc)-proposed main | tee
> /etc/apt/sources.list.d/proposed.list
> apt-get update -q
> apt-get install -qy cloud-init';
The authenticity of host '75.126.3.99 (75.126.3.99)' can't be established.
ECDSA key fingerprint is SHA256:ayc9jHESzNpI9fzU940Kv1/KfCCRgBvRmE/vJ2o9vR4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '75.126.3.99' (ECDSA) to the list of known hosts.
Enter passphrase for key '/root/.ssh/id_rsa':
sh: 0: -c requires an argument
deb http://archive.ubuntu.com/ubuntu xenial-proposed main
...
The following packages will be upgraded:
cloud-init
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 cloud-init
all 18.2-4-g05926e48-0ubuntu1~16.04.2 [355 kB]
root@publishing:~# ssh $VM_IP -- dpkg-query --show cloud-init;
cloud-init 18.2-4-g05926e48-0ubuntu1~16.04.2
# provisioning messages aren't fielded on stock xenial because IBMCloud
datasource is not configured in these images.
root@publishing:~# ssh $VM_IP -- DEBUG_LEVEL=2 DI_LOG=stderr
/usr/lib/cloud-init/ds-identify --force 2>&1 | grep provision
root@publishing:~# ssh $VM_IP -- cat /run/runcmd-ran.txt;
cat: /run/runcmd-ran.txt: No such file or directory
root@publishing:~# ssh $VM_IP -- hostname
SRU-worked
# Reboot of system should not re-detect a different datasource
root@publishing:~# ssh $VM_IP -- reboot;
Connection to 75.126.3.99 closed by remote host.
root@publishing:~# ssh $VM_IP -- cloud-init status --long;
status: done
time: Thu, 03 May 2018 02:27:22 +0000
detail:
DataSourceConfigDrive [net,ver=2][source=/var/lib/cloud/seed/config_drive]
# clean reboot should not detect a different datasource than ConfigDrive
root@publishing:~# ssh $VM_IP -- cloud-init clean --logs --reboot;
Connection to 75.126.3.99 closed by remote host.
root@publishing:~# ssh $VM_IP -- cloud-init status --long;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:eAzDOPLjq9OJkoF82/PH7iG6EAPBl8C/VgQQipFslM0.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:71
remove with:
ssh-keygen -f "/root/.ssh/known_hosts" -R "75.126.3.99"
ECDSA host key for 75.126.3.99 has changed and you have requested strict
checking.
Host key verification failed.
root@publishing:~# ssh-keygen -f "/root/.ssh/known_hosts" -R "75.126.3.99"
# Host 75.126.3.99 found: line 71
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
root@publishing:~# ssh $VM_IP -- cloud-init status --long;
The authenticity of host '75.126.3.99 (75.126.3.99)' can't be established.
ECDSA key fingerprint is SHA256:eAzDOPLjq9OJkoF82/PH7iG6EAPBl8C/VgQQipFslM0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '75.126.3.99' (ECDSA) to the list of known hosts.
status: done
time: Thu, 03 May 2018 02:28:47 +0000
detail:
DataSourceConfigDrive [net,ver=2][source=/var/lib/cloud/seed/config_drive]
root@publishing:~# ssh $VM_IP -- egrep 'provisioning' /var/log/cloud-init.log
root@publishing:~# ssh $VM_IP -- grep provision /run/cloud-init/ds-identify.log
root@publishing:~# ssh $VM_IP -- hostname
SRU-worked
root@publishing:~# ssh $VM_IP -- cloud-init analyze show;
-- Boot Record 01 --
The total time elapsed since completing an event is printed after the "@"
character.
The time the event takes is printed after the "+" character.
Starting stage: init-local
|`->no cache found @00.00700s +00.00000s
|`->found local data from DataSourceConfigDrive @00.03100s +00.00700s
Finished stage: (init-local) 00.13900 seconds
Starting stage: init-network
|`->restored from cache with run check: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @00.86600s +00.00500s
|`->reading and applying user-data @00.95500s +00.00500s
|`->reading and applying vendor-data @00.96000s +00.00100s
|`->config-migrator ran successfully @01.13500s +00.00000s
|`->config-seed_random ran successfully @01.13600s +00.00100s
|`->config-bootcmd ran successfully @01.13700s +00.00000s
|`->config-write-files ran successfully @01.13800s +00.00500s
|`->config-growpart ran successfully @01.14400s +00.13400s
|`->config-resizefs ran successfully @01.28300s +00.05600s
|`->config-disk_setup ran successfully @01.33900s +00.00200s
|`->config-mounts ran successfully @01.34100s +00.09700s
|`->config-set_hostname ran successfully @01.44200s +00.01400s
|`->config-update_hostname ran successfully @01.45700s +00.00600s
|`->config-update_etc_hosts ran successfully @01.46400s +00.00000s
|`->config-ca-certs ran successfully @01.46500s +00.00100s
|`->config-rsyslog ran successfully @01.47100s +00.00100s
|`->config-users-groups ran successfully @01.47200s +00.03700s
|`->config-ssh ran successfully @01.51000s +00.15900s
Finished stage: (init-network) 00.82800 seconds
Starting stage: modules-config
|`->config-emit_upstart ran successfully @03.81200s +00.00100s
|`->config-snap ran successfully @03.81300s +00.00100s
|`->config-snap_config ran successfully @03.81400s +00.00100s
|`->config-ssh-import-id ran successfully @03.81600s +00.00100s
|`->config-locale ran successfully @03.81700s +00.00200s
|`->config-set-passwords ran successfully @03.81900s +00.07300s
|`->config-grub-dpkg ran successfully @03.89200s +00.34800s
|`->config-apt-pipelining ran successfully @04.24100s +00.00300s
|`->config-apt-configure ran successfully @04.24500s +00.22300s
|`->config-ubuntu-advantage ran successfully @04.46900s +00.00100s
|`->config-ntp ran successfully @04.47100s +00.00100s
|`->config-timezone ran successfully @04.47200s +00.00100s
|`->config-disable-ec2-metadata ran successfully @04.47300s +00.00100s
|`->config-runcmd ran successfully @04.47400s +00.00200s
|`->config-byobu ran successfully @04.47700s +00.00100s
Finished stage: (modules-config) 00.72500 seconds
Starting stage: modules-final
|`->config-snappy ran successfully @05.03400s +00.00300s
|`->config-package-update-upgrade-install ran successfully @05.03700s +00.00100s
|`->config-fan ran successfully @05.03800s +00.00100s
|`->config-landscape ran successfully @05.04000s +00.00100s
|`->config-lxd ran successfully @05.04100s +00.00100s
|`->config-puppet ran successfully @05.04200s +00.00100s
|`->config-chef ran successfully @05.04400s +00.00100s
|`->config-mcollective ran successfully @05.04500s +00.00100s
|`->config-salt-minion ran successfully @05.04600s +00.00100s
|`->config-rightscale_userdata ran successfully @05.04700s +00.00100s
|`->config-scripts-vendor ran successfully @05.04900s +00.00100s
|`->config-scripts-per-once ran successfully @05.05000s +00.00100s
|`->config-scripts-per-boot ran successfully @05.05100s +00.00100s
|`->config-scripts-per-instance ran successfully @05.05200s +00.00100s
|`->config-scripts-user ran successfully @05.05300s +00.00700s
|`->config-ssh-authkey-fingerprints ran successfully @05.06100s +00.02000s
|`->config-keys-to-console ran successfully @05.08200s +00.15900s
|`->config-phone-home ran successfully @05.24200s +00.00100s
|`->config-final-message ran successfully @05.24400s +00.00600s
|`->config-power-state-change ran successfully @05.25000s +00.00100s
Finished stage: (modules-final) 00.27900 seconds
Total Time: 1.97100 seconds
1 boot records analyzed
# No significant negative impact to cloud-init startup cost after upgrade
root@publishing:~# # End Xenial validation
=== END SRU Validation Xenial ===
=== BEGIN SRU Validation Artful ===
IBM Cloud only provides Ubuntu at LTS versions, so there is no
artful image that we can launch. Thus, this test is a bit contrived
and the bug is quite unlikely to affect a user there.
VM_IP=`launch-softlayer --pubkey-file ~/.ssh/id_rsa.pub -u runcmd.yaml -i
xenial | awk '/primary ip/{printf "root@%s", $3}'`;
ssh $VM_IP -- apt-get update -qy;
ssh $VM_IP -- apt-get -qy dist-upgrade;
ssh $VM_IP "sed -i 's,xenial,artful,g' /etc/apt/sources.list";
ssh $VM_IP -- apt-get -qy update;
ssh $VM_IP -- apt-get dist-upgrade -qy;
ssh $VM_IP -- apt-get -qy autoremove;
CHAD
root@publishing:~# VM_IP=`launch-softlayer --pubkey-file ~/.ssh/id_rsa.pub -u
runcmd.yaml -i xenial | awk '/primary ip/{printf "root@%s", $3}'`
Destroy instance with:
slcli virtual cancel 54654556
root@publishing:~# ssh $VM_IP -- apt-get update -qy;The authenticity of host
'75.126.220.124 (75.126.220.124)' can't be established.
ECDSA key fingerprint is SHA256:QjjHTKCL4Z0d7JSZEvqy59+nXfBfgB0WwBfjcc6WM8E.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '75.126.220.124' (ECDSA) to the list of known hosts.
Get:1 http://mirrors.service.networklayer.com/ubuntu xenial InRelease [247 kB]
...
root@publishing:~# ssh $VM_IP "sed -i 's,xenial,artful,g'
/etc/apt/sources.list";
root@publishing:~# ssh $VM_IP -- apt-get -qy update;
Get:1 http://mirrors.service.networklayer.com/ubuntu artful InRelease [237 kB]
Get:2 http://mirrors.service.networklayer.com/ubuntu artful-updates InRelease
[88.7 kB]
...
Get:475 http://mirrors.service.networklayer.com/ubuntu artful/main amd64
zerofree amd64 1.0.4-1 [8,112 B]
...
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
root@publishing:~# ssh $VM_IP -- hostname BOGUS
root@publishing:~# ssh $VM_IP -- dpkg-query --show cloud-init
cloud-init 18.2-4-g05926e48-0ubuntu1~17.10.1
root@publishing:~# ssh $VM_IP -- cloud-init status --long
status: done
time: Thu, 03 May 2018 21:17:40 +0000
detail:
DataSourceConfigDrive [net,ver=2][source=/var/lib/cloud/seed/config_drive]
root@publishing:~# ssh $VM_IP cloud-init analyze show
-- Boot Record 01 --
The total time elapsed since completing an event is printed after the "@"
character.
The time the event takes is printed after the "+" character.
Starting stage: init-local
|`->no cache found @00.00600s +00.00000s
|`->found local data from DataSourceConfigDrive @00.02300s +00.00500s
Finished stage: (init-local) 00.11900 seconds
Starting stage: init-network
|`->restored from cache with run check: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @00.66900s +00.00400s
|`->reading and applying user-data @00.75000s +00.00400s
|`->reading and applying vendor-data @00.75400s +00.00000s
|`->config-migrator ran successfully @00.95200s +00.00000s
|`->config-seed_random ran successfully @00.95300s +00.00100s
|`->config-bootcmd ran successfully @00.95400s +00.00000s
|`->config-write-files ran successfully @00.95500s +00.00100s
|`->config-growpart ran successfully @00.96000s +00.10200s
|`->config-resizefs ran successfully @01.06200s +00.10100s
|`->config-disk_setup ran successfully @01.16300s +00.00200s
|`->config-mounts ran successfully @01.16500s +00.12100s
|`->config-set_hostname ran successfully @01.28700s +00.01100s
|`->config-update_hostname ran successfully @01.29800s +00.00200s
|`->config-update_etc_hosts ran successfully @01.30000s +00.00100s
|`->config-ca-certs ran successfully @01.30200s +00.00100s
|`->config-rsyslog ran successfully @01.30300s +00.00100s
|`->config-users-groups ran successfully @01.30400s +00.04900s
|`->config-ssh ran successfully @01.35300s +00.20200s
Finished stage: (init-network) 00.90600 seconds
Starting stage: modules-config
|`->config-emit_upstart ran successfully @03.32200s +00.00100s
|`->config-snap_config ran successfully @03.32300s +00.00100s
|`->config-ssh-import-id ran successfully @03.32400s +00.00100s
|`->config-locale ran successfully @03.32600s +01.29900s
|`->config-set-passwords ran successfully @04.62500s +00.05200s
|`->config-grub-dpkg ran successfully @04.67700s +00.47800s
|`->config-apt-pipelining ran successfully @05.15500s +00.00400s
|`->config-apt-configure ran successfully @05.15900s +00.11400s
|`->config-ntp ran successfully @05.27400s +00.00100s
|`->config-timezone ran successfully @05.27500s +00.00100s
|`->config-disable-ec2-metadata ran successfully @05.27700s +00.00000s
|`->config-runcmd ran successfully @05.27700s +00.00200s
|`->config-byobu ran successfully @05.28000s +00.00000s
Finished stage: (modules-config) 02.01300 seconds
Starting stage: modules-final
|`->config-snappy ran successfully @25.05300s +00.00200s
|`->config-package-update-upgrade-install ran successfully @25.05500s +00.00100s
|`->config-fan ran successfully @25.05700s +00.00100s
|`->config-landscape ran successfully @25.05800s +00.00100s
|`->config-lxd ran successfully @25.05900s +00.00100s
|`->config-puppet ran successfully @25.06100s +00.00000s
|`->config-chef ran successfully @25.06200s +00.00000s
|`->config-salt-minion ran successfully @25.06300s +00.00100s
|`->config-mcollective ran successfully @25.06400s +00.00100s
|`->config-rightscale_userdata ran successfully @25.06500s +00.00100s
|`->config-scripts-vendor ran successfully @25.06600s +00.00100s
|`->config-scripts-per-once ran successfully @25.06800s +00.00000s
|`->config-scripts-per-boot ran successfully @25.06900s +00.00000s
|`->config-scripts-per-instance ran successfully @25.06900s +00.00100s
|`->config-scripts-user ran successfully @25.07000s +00.00400s
|`->config-ssh-authkey-fingerprints ran successfully @25.07500s +00.01000s
|`->config-keys-to-console ran successfully @25.08500s +00.07200s
|`->config-phone-home ran successfully @25.15700s +00.00100s
|`->config-final-message ran successfully @25.15900s +00.00400s
|`->config-power-state-change ran successfully @25.16400s +00.00100s
Finished stage: (modules-final) 00.16700 seconds
Total Time: 3.20500 seconds
-- Boot Record 02 --
The total time elapsed since completing an event is printed after the "@"
character.
The time the event takes is printed after the "+" character.
Starting stage: init-local
|`->restored from checked cache: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @00.01500s +00.01600s
Finished stage: (init-local) 00.11800 seconds
Starting stage: init-network
|`->restored from cache with run check: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @00.68600s +00.00400s
|`->reading and applying user-data @00.77000s +00.00500s
|`->reading and applying vendor-data @00.77500s +00.00000s
|`->config-migrator ran successfully @00.95300s +00.00400s
|`->config-seed_random previously ran @00.95800s +00.00000s
|`->config-bootcmd ran successfully @00.95800s +00.00100s
|`->config-write-files previously ran @00.95900s +00.00000s
|`->config-growpart ran successfully @00.96000s +00.07700s
|`->config-resizefs ran successfully @01.04100s +00.02700s
|`->config-disk_setup previously ran @01.06800s +00.00000s
|`->config-mounts previously ran @01.06900s +00.00300s
|`->config-set_hostname previously ran @01.07200s +00.00000s
|`->config-update_hostname ran successfully @01.07300s +00.00400s
|`->config-update_etc_hosts ran successfully @01.07800s +00.00000s
|`->config-ca-certs previously ran @01.07900s +00.00000s
|`->config-rsyslog previously ran @01.07900s +00.00000s
|`->config-users-groups previously ran @01.08000s +00.00000s
|`->config-ssh previously ran @01.08000s +00.00000s
Finished stage: (init-network) 00.41600 seconds
Starting stage: modules-config
|`->config-emit_upstart ran successfully @02.59500s +00.00000s
|`->config-snap_config previously ran @02.59600s +00.00000s
|`->config-ssh-import-id previously ran @02.59600s +00.00000s
|`->config-locale previously ran @02.59700s +00.00000s
|`->config-set-passwords previously ran @02.59700s +00.00000s
|`->config-grub-dpkg previously ran @02.59800s +00.00000s
|`->config-apt-pipelining previously ran @02.59800s +00.00000s
|`->config-apt-configure previously ran @02.59900s +00.00000s
|`->config-ntp previously ran @02.59900s +00.00000s
|`->config-timezone previously ran @02.60000s +00.00000s
|`->config-disable-ec2-metadata ran successfully @02.60000s +00.00100s
|`->config-runcmd previously ran @02.60100s +00.00000s
|`->config-byobu previously ran @02.60200s +00.00000s
Finished stage: (modules-config) 00.05900 seconds
Starting stage: modules-final
|`->config-snappy previously ran @03.73700s +00.00000s
|`->config-package-update-upgrade-install previously ran @03.73800s +00.00000s
|`->config-fan previously ran @03.73800s +00.00100s
|`->config-landscape previously ran @03.73900s +00.00000s
|`->config-lxd previously ran @03.74000s +00.00000s
|`->config-puppet previously ran @03.74000s +00.00000s
|`->config-chef previously ran @03.74100s +00.00000s
|`->config-salt-minion previously ran @03.74100s +00.00000s
|`->config-mcollective previously ran @03.74200s +00.00000s
|`->config-rightscale_userdata previously ran @03.74200s +00.00000s
|`->config-scripts-vendor previously ran @03.74300s +00.00000s
|`->config-scripts-per-once previously ran @03.74300s +00.00100s
|`->config-scripts-per-boot ran successfully @03.74400s +00.00100s
|`->config-scripts-per-instance previously ran @03.74500s +00.00000s
|`->config-scripts-user previously ran @03.74600s +00.00000s
|`->config-ssh-authkey-fingerprints previously ran @03.74600s +00.00000s
|`->config-keys-to-console previously ran @03.74700s +00.00000s
|`->config-phone-home previously ran @03.74700s +00.00000s
|`->config-final-message ran successfully @03.74800s +00.00400s
|`->config-power-state-change previously ran @03.75200s +00.00100s
Finished stage: (modules-final) 00.07400 seconds
Starting stage: single
Total Time: 0.66700 seconds
2 boot records analyzed
# Upgrade to artful-proposed cloud-init
root@publishing:~# ssh $VM_IP -- sh -c '
> mirror=http://archive.ubuntu.com/ubuntu
> echo deb $mirror $(lsb_release -sc)-proposed main | tee
> /etc/apt/sources.list.d/proposed.list
> apt-get update -q
> apt-get install -qy cloud-init';
sh: 0: -c requires an argument
deb http://archive.ubuntu.com/ubuntu artful-proposed main
Hit:1 http://mirrors.service.networklayer.com/ubuntu artful InRelease
Hit:2 http://mirrors.service.networklayer.com/ubuntu artful-updates InRelease
Hit:3 http://mirrors.service.networklayer.com/ubuntu artful-backports InRelease
Hit:4 http://mirrors.service.networklayer.com/ubuntu artful-security InRelease
Get:5 http://archive.ubuntu.com/ubuntu artful-proposed InRelease [240 kB]
Get:6 http://archive.ubuntu.com/ubuntu artful-proposed/main amd64 Packages
[23.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu artful-proposed/main Translation-en
[11.2 kB]
Fetched 274 kB in 1s (260 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
cloud-init
1 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 353 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu artful-proposed/main amd64 cloud-init
all 18.2-4-g05926e48-0ubuntu1~17.10.2 [353 kB]
...
root@publishing:~# ssh $VM_IP -- dpkg-query --show cloud-init;
cloud-init 18.2-4-g05926e48-0ubuntu1~17.10.2 # <-- upgraded to 17.10.2
# No provisioning logic from ds-identify should fire because IBMCloud is not in
datasource_list config in Artful images
root@publishing:~# ssh $VM_IP -- DEBUG_LEVEL=2 DI_LOG=stderr
/usr/lib/cloud-init/ds-identify --force 2>&1 | grep provision
root@publishing:~# ssh $VM_IP -- DEBUG_LEVEL=2 DI_LOG=stderr
/usr/lib/cloud-init/ds-identify --force 2>&1
[up 16067.07s] ds-identify --force # Look to see ConfigDrive detected
policy loaded: mode=search report=false found=all maybe=all notfound=disabled
/etc/cloud/cloud.cfg.d/99_networklayer_common.cfg set datasource_list: [
ConfigDrive, NoCloud ]
DMI_PRODUCT_NAME=HVM domU
DMI_SYS_VENDOR=Xen
DMI_PRODUCT_SERIAL=90ef2826-b3c4-e8ca-a176-b06f229cfdba
DMI_PRODUCT_UUID=90EF2826-B3C4-E8CA-A176-B06F229CFDBA
PID_1_PRODUCT_NAME=unavailable
DMI_CHASSIS_ASSET_TAG=
FS_LABELS=SWAP-xvdb1,cloudimg-bootfs,cloudimg-rootfs,METADATA
ISO9660_DEVS=
KERNEL_CMDLINE=BOOT_IMAGE=/vmlinuz-4.4.0-112-generic
root=UUID=0e81df04-5844-485b-9c04-57ff59c98e79 ro earlyprintk
VIRT=xen
UNAME_KERNEL_NAME=Linux
UNAME_KERNEL_RELEASE=4.4.0-112-generic
UNAME_KERNEL_VERSION=#135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018
UNAME_MACHINE=x86_64
UNAME_NODENAME=BOGUS
UNAME_OPERATING_SYSTEM=GNU/Linux
DSNAME=
DSLIST=ConfigDrive NoCloud
MODE=search
ON_FOUND=all
ON_MAYBE=all
ON_NOTFOUND=disabled
pid=21000 ppid=20935
is_container=false
Checking for datasource 'ConfigDrive' via 'dscheck_ConfigDrive'
config drive seeded directory had only 'latest'
check for 'ConfigDrive' returned found
Checking for datasource 'NoCloud' via 'dscheck_NoCloud'
check for 'NoCloud' returned found
found=ConfigDrive NoCloud maybe=
Found 2 datasources found=all: ConfigDrive NoCloud # Success!!! FOUND
ConfigDrive
[up 16067.08s] returning 0
root@publishing:~# ssh $VM_IP -- reboot;
Connection to 75.126.220.124 closed by remote host.
root@publishing:~# ssh $VM_IP -- cloud-init status --long; # Should still be
configdrive
status: done
time: Fri, 04 May 2018 01:45:53 +0000
detail:
DataSourceConfigDrive [net,ver=2][source=/var/lib/cloud/seed/config_drive]
root@publishing:~# ssh $VM_IP -- cloud-init clean --logs
root@publishing:~# ssh $VM_IP -- systemctl restart cloud-init-local.service
root@publishing:~# ssh $VM_IP -- systemctl restart cloud-init.service
root@publishing:~# ssh $VM_IP -- cloud-init status --long
status: running
time: Fri, 04 May 2018 01:49:18 +0000
detail:
DataSourceConfigDrive [net,ver=2][source=/var/lib/cloud/seed/config_drive]
root@publishing:~# ssh $VM_IP -- egrep 'provisioning' /var/log/cloud-init.log
# Expect nothing
The authenticity of host '75.126.220.124 (75.126.220.124)' can't be established.
ECDSA key fingerprint is SHA256:k0wOj6gQoCfMjoFY3Nkxsoj9lceOT+6YBsVzyw4bmDE.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '75.126.220.124' (ECDSA) to the list of known hosts.
root@publishing:~# ssh $VM_IP -- grep provision /run/cloud-init/ds-identify.log
# Expect nothing
root@publishing:~# ssh $VM_IP -- hostname;
SRU-worked
root@publishing:~# ssh $VM_IP -- cloud-init analyze show;
-- Boot Record 01 --
The total time elapsed since completing an event is printed after the "@"
character.
The time the event takes is printed after the "+" character.
Starting stage: init-local
|`->no cache found @00.00700s +00.00000s
|`->found local data from DataSourceConfigDrive @00.03000s +00.01400s
Finished stage: (init-local) 00.14600 seconds
Starting stage: init-network
|`->restored from cache with run check: DataSourceConfigDrive
[net,ver=2][source=/var/lib/cloud/seed/config_drive] @08.92900s +00.00500s
|`->reading and applying user-data @09.01600s +00.00500s
|`->reading and applying vendor-data @09.02100s +00.00000s
|`->config-migrator ran successfully @09.29900s +00.00000s
|`->config-seed_random ran successfully @09.30000s +00.00100s
|`->config-bootcmd ran successfully @09.30100s +00.00100s
|`->config-write-files ran successfully @09.30200s +00.00100s
|`->config-growpart ran successfully @09.30300s +00.03400s
|`->config-resizefs ran successfully @09.33700s +00.02300s
|`->config-disk_setup ran successfully @09.36100s +00.00100s
|`->config-mounts ran successfully @09.36300s +00.01700s
|`->config-set_hostname ran successfully @09.38100s +00.00600s
|`->config-update_hostname ran successfully @09.38700s +00.00200s
|`->config-update_etc_hosts ran successfully @09.38900s +00.00100s
|`->config-ca-certs ran successfully @09.39000s +00.00100s
|`->config-rsyslog ran successfully @09.39100s +00.00100s
|`->config-users-groups ran successfully @09.39300s +00.01600s
|`->config-ssh ran successfully @09.41000s +00.21700s
Finished stage: (init-network) 00.71300 seconds
Total Time: 0.85900 seconds
1 boot records analyzed
=== END SRU Validation Artful ===
** Tags removed: verification-needed verification-needed-artful
verification-needed-xenial
** Tags added: verification-done verification-done-artful
verification-done-xenial
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1767166
Title:
IBMCloud datasource does not recognize provisioning in debug mode.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1767166/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs