Comment 5 for bug 1583837

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

lxc-proposed-snapshot is
  https://git.launchpad.net/~smoser/cloud-init/+git/sru-info/tree/bin/lxc-proposed-snapshot
It publishes an image to lxd with proposed enabled and cloud-init upgraded.

$ for r in xenial yakkety; do
   lxc-proposed-snapshot --proposed --publish $r sm0413-$r-proposed; done

$ mycfg=$(cat <<EOF
#cloud-config
chef:
  install_type: omnibus
  server_url: "http://example.com/"
  validation_name: "my-validation-name"
EOF
)

$ lxc launch sm0413-yakkety-proposed y1583837 "--config=user.user-data=$mycfg"
$ lxc launch sm0413-xenial-proposed x1583837 "--config=user.user-data=$mycfg"
$ sleep 30

$ for n in x1583837 y1583837; do
   echo === $n ===;
   lxc exec $n -- dpkg-query --show cloud-init;
   lxc exec $n cat /run/cloud-init/result.json;
   lxc exec $n -- grep WARN /var/log/cloud-init.log || echo no warn;
   lxc exec $n -- grep Setting /var/log/cloud-init-output.log ; done
=== x1583837 ===
cloud-init 0.7.9-90-g61eb03fe-0ubuntu1~16.04.1
{
 "v1": {
  "datasource": "DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]",
  "errors": []
 }
}
no warn
Setting up chef (13.0.118-1) ...
=== y1583837 ===
cloud-init 0.7.9-90-g61eb03fe-0ubuntu1~16.10.1
{
 "v1": {
  "datasource": "DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]",
  "errors": []
 }
}
no warn
Setting up chef (13.0.118-1) ...