cloud-init-nonet causes waits for 120 seconds on reboots
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Fuel Sustaining | ||
8.0.x |
Confirmed
|
Medium
|
Fuel Sustaining | ||
Mitaka |
Invalid
|
Medium
|
Fuel Sustaining |
Bug Description
We addressed this as part of Bug 1442572 but the purged option causes issue with unit testing in Bug 1493985. We switch the cloud-init from purged to absent which is removing the package but unfortunately leaving the scripts in place so the 120 second boot delay is still there. We need to properly cleanup cloud-init after the installation of the node.
On 7.0 it was
/var/log/
Start-Date: 2015-10-05 22:24:32
Commandline: /usr/bin/apt-get -y -q remove --purge cloud-init
Purge: cloud-init:amd64 (0.7.5-0ubuntu1.12)
End-Date: 2015-10-05 22:24:32
On 8.0
/var/log/
Start-Date: 2016-03-16 13:59:51
Commandline: /usr/bin/apt-get -y -q remove cloud-init
Remove: cloud-init:amd64 (0.7.5-0ubuntu1.17)
End-Date: 2016-03-16 13:59:52
So on 8.0 cloud-init is actually present:
dpkg -L cloud-init
/etc
/etc/rsyslog.d
/etc/rsyslog.
/etc/profile.d
/etc/profile.
/etc/init
/etc/init/
/etc/init/
/etc/init/
/etc/init/
/etc/init/
/etc/init/
/etc/init/
...
And nodes are waiting for it on reboot... And if there is a metadata server in the network it may response with the script and, e.g. wipe disks on the node)
root@node-2:~# grep 'start on' /etc/init/cloud* cloud-config. conf:start on (filesystem and started rsyslog) cloud-final. conf:start on (stopped rc RUNLEVEL=[2345] and stopped cloud-config) cloud-init. conf:start on mounted MOUNTPOINT=/ and stopped cloud-init-nonet cloud-init- container. conf:start on container cloud-init- local.conf: start on mounted MOUNTPOINT=/ and mounted MOUNTPOINT=/run cloud-init- nonet.conf: start on mounted MOUNTPOINT=/ and stopped cloud-init-local cloud-log- shutdown. conf:start on runlevel PREVLEVEL=2
/etc/init/
/etc/init/
/etc/init/
/etc/init/
/etc/init/
/etc/init/
/etc/init/
root@node-2:~# rm /etc/init/cloud-*
Solved the problem for me.