Comment 1 for bug 1583837

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

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

$ lxc launch ubuntu-daily:zesty z1 "--config=user.user-data=$mycfg"
$ sleep 10
$ lxc file pull z1/var/log/cloud-init.log - | grep WARN
2017-03-13 18:17:20,193 - util.py[WARNING]: Running module chef (<module 'cloudinit.config.cc_chef' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_chef.py'>) failed

After the fix, we do not see any WARN in the log and also
$ lxc file pull z1/var/log/cloud-init-output.log - | grep -i Setting
Setting up chef (12.19.36-1) ...