$ 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) ...
$ mycfg=$(cat <<EOF example. com/" name"
#cloud-config
chef:
install_type: omnibus
server_url: "http://
validation_name: "my-validation-
EOF
)
$ lxc launch ubuntu-daily:zesty z1 "--config= user.user- data=$mycfg" log/cloud- init.log - | grep WARN config. cc_chef' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_chef. py'>) failed
$ sleep 10
$ lxc file pull z1/var/
2017-03-13 18:17:20,193 - util.py[WARNING]: Running module chef (<module 'cloudinit.
After the fix, we do not see any WARN in the log and also log/cloud- init-output. log - | grep -i Setting
$ lxc file pull z1/var/
Setting up chef (12.19.36-1) ...