## Recreate failure
$ cat >user-data <<EOF
#cloud-config
salt_minion:
public_key: "foo public"
private_key: "foo private"
EOF
$ lxc delete --force $n
$ lxc launch ubuntu-daily:xenial $n "--config=user.user-data=$(cat user-data)"
sleep 30
$ lxc exec $n -- grep salt/pki/ /var/log/cloud-init.log </dev/null
$ lxc exec $n -- grep salt/pki/ /var/log/cloud-init.log </dev/null
Sep 17 02:30:03 ubuntu [CLOUDINIT] util.py[DEBUG]: Writing to
/etc/salt/pki/minion.pub - wb: [420] 10 bytes
Sep 17 02:30:03 ubuntu [CLOUDINIT] util.py[DEBUG]: Writing to
/etc/salt/pki/minion.pem - wb: [420] 11 bytes
## Note, that ubuntu's packaging actuall moves these files to their proper
## location, so checking the log is all we can do to show failure.
## Now update container, clean and reboot to show first boot
$ lxc exec $n -- sh -c '
p=/etc/apt/sources.list.d/proposed.list
echo deb http://archive.ubuntu.com/ubuntu xenial-proposed main > "$p" &&
apt-get update -q && apt-get -qy install cloud-init' </dev/null
$ lxc exec $n -- sh -c 'apt-get -qy --purge remove salt-minion && rm -Rf
/etc/salt' </dev/null
$ lxc exec $n -- sh -c '
cd /var/lib/cloud && for d in *; do [ "$d" = "seed" ] || rm -Rf "$d"; done
rm -Rf /var/log/cloud-init*'
$ lxc exec $n reboot
$ lxc exec $n -- grep salt/pki/ /var/log/cloud-init.log
Sep 17 02:31:17 x1 [CLOUDINIT] util.py[DEBUG]: Writing to
/etc/salt/pki/minion/minion.pub - wb: [420] 10 bytes
Sep 17 02:31:17 x1 [CLOUDINIT] util.py[DEBUG]: Writing to
/etc/salt/pki/minion/minion.pem - wb: [420] 11 bytes
$ lxc exec $n -- dpkg-query --show cloud-init
cloud-init 0.7.8-1-g3705bb5-0ubuntu1~16.04.1
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1621180
Title:
specifying apt_mirror of '' renders empty entries in
/etc/apt/sources.list for uri
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1621180/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs