Comment 4 for bug 1643990

Revision history for this message
Scott Moser (smoser) wrote :

$ lxc launch ubuntu-daily:yakkety y1
$ sleep 10
$ lxc exec y1 /bin/bash

% head -n 1 /var/log/cloud-init.log
Jan 20 15:17:35 y1 [CLOUDINIT] util.py[DEBUG]: Cloud-init v. 0.7.8 running 'modules:config' at Fri, 20 Jan 2017 15:17:34 +0000. Up 11.0 seconds.

% dpkg-query --show cloud-init
cloud-init 0.7.8-49-g9e904bb-0ubuntu1~16.10.1

% cat /etc/cloud/build.info
build_name: server
serial: 20170114

% m=http://archive.ubuntu.com/ubuntu
% echo "deb $m $(lsb_release -sc)-proposed main" > /etc/apt/sources.list.d/proposed.list

% apt update -q
% apt install cloud-init
% dpkg-query --show cloud-init
cloud-init 0.7.8-68-gca3ae67-0ubuntu1~16.10.1

# keep seed dir for lxd datasource
% ( cd /var/lib/cloud && for d in *; do [ "$d" = "seed" ] && continue; rm -Rf "$d"; done )
% rm -Rf /var/log/cloud*

% reboot

$ lxc exec y1 /bin/bash
% head -n 1 /var/log/cloud-init.log
2017-01-20 15:23:16,213 - util.py[DEBUG]: Cloud-init v. 0.7.8 running 'init-local' at Fri, 20 Jan 2017 15:23:16 +0000. Up 1.0 seconds.