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) ...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1583837

Title:
  cc_chef fails when using omnibus installer because UrlResponse doesn't
  have an 'encode' method

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1583837/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to