/srv/irclogs.ubuntu.com/2020/01/11/#cloud-init.txt

amansi26Hi.. can anyone tell me what difference does it make if cloud init status returning running and cloud init status returning done?06:16
meenacloud-init is a oneshot service. so if you're asking systemd for a status while it's actively doing stuff, it'll say running, otherwise, done08:51
amansi26meena: For rhel and sles when I install cloud-init package, the status shows done (by default) but for ubuntu it is showing disabled (by-default)08:53
meenaamansi26: you probably have to enable it in /etc/default/cloud*08:54
meenai say, not having used cloud-init on Linux in almost two years08:55
meenaon *BSD we have /etc/rc.conf for the same purposes, but no one has even looked at my patch! https://github.com/canonical/cloud-init/pull/16108:56
amansi26When we install cloud-init on a system. What ll be the default value for cloud-init status?16:42
amansi26How to change cloud-init status from running to done?16:48
blackboxswamansi26: status starts as 'not run'16:56
amansi26But in my case it is coming as disabled16:57
blackboxswIt expects to see all cloudinit stages completing in /run/cloud-init/satus.json17:00
blackboxswhttps://github.com/canonical/cloud-init/blob/master/cloudinit/cmd/status.py#L10117:00
blackboxswAnd if disabled itll report that17:00
blackboxswhttps://github.com/canonical/cloud-init/blob/master/cloudinit/cmd/status.py#L7317:00
blackboxswamansi26: running cloud-init status --long  will tell you why disabled17:02
=== meena9 is now known as meena
amansi26blackboxsw: It says "Cloud-init disabled by cloud-init-generator" . But then I checked for /etc/cloud/cloud-init.disabled (it doesnot exists) and /proc/cmdline (doesnot contain cloud-init=disabled)17:08
blackboxswamansi26: so this is a fresh pkg install, cloudinits generator hasn't run yet to create init files which will run cloudinit on next boot.17:29
blackboxswGenet17:29
blackboxswGenerator is at /lib/systemd/system-generaties17:30
blackboxswOops /lib/systemd/system-generators/cloud-init-generator is what enables cloud init17:31
amansi26blackboxsw: There is no such file on the system17:36
blackboxswamansi26: what distibution again?17:47
blackboxswubuntu?17:48
amansi26blackboxsw: yes17:48
blackboxswif that ubuntu image didn't have cloud-init already installed, it is probably not a certified cloud image from ubuntu from https://cloud-images.ubuntu.com/17:50
amansi26blackboxsw: I can tell you the steps I performed. 1.Took an iso from http://old-releases.ubuntu.com/releases/16.04.4/ubuntu-16.04-server-ppc64el.iso and installed the ubuntu system. 2. I have a custom cloud-init debian package, I tried installing that. It got installed. But the status is disabled(by-default, as discussed).17:53
blackboxswif I `lxc launch ubuntu-daily:bionic mybionic; lxc exec mybionic ls /lib/systemd/system-generators/` I can see cloud-init-generator file there17:54
blackboxswamansi26: if you are trying to boot cloud-image with cloud-init you really should source from official cloud-image isos17:54
blackboxswhttps://cloud-images.ubuntu.com/xenial/current/17:55
amansi26But there is no iso file out there17:56
amansi26blackboxsw: When will this file /lib/systemd/system-generators/cloud-init-generator get generated?18:23
blackboxswamansi26: it should be part of the deb package built19:08
blackboxswpackages/bddeb could help with that19:09
blackboxswit defaults to systemd init system type which s what packages the cloud-init-generator from systemd/*.tmpl19:10
blackboxsw'./tools/run-container' could also perform a build of your custom cloud-init dir in an lxc container on centos/debian/ubuntu and emit a built binary package to your $CWD19:11

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!