-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chef-client provisioner fails with knife usage message #1100
Comments
Packer JSON is here: https://gist.github.com/bklang/99f836c58eb7fdc0c5c8 |
I re-ran this with PACKER_LOG=1. Here is the output: https://gist.github.com/bklang/5735c72bae56a7d6c2e8 |
Fixed |
Unfortunately I'm still getting this error. Though this time my build failed due to a chef error, the knife cleanup still failed with a similar usage message:
|
Also, this is still happening on a successful chef-client run:
|
Digging into this further, I'm finding that the |
I've finally realized the problem, and it was already documented:
So first, my apologies for not noticing this before. But may I suggest that this field be made mandatory? Though the setting is described as "optional", because the knife cleanup fails after successful provisioning, the VM build is destroyed. This leads to confusion and (at least in my case) a lot of time wasted trying to figure out why the chef provision is working but the node cleanup is failing. If you want to keep the field optional, then the knife cleanup failure should not destroy the VM. Also, perhaps the default value could be "localhost", to match chef-client's default behavior? This way the knife cleanup won't fail if the name isn't specified. |
See #1525 |
The chef-client provisioner successfully creates and provisions the VM, but then fails to clean up with the knife usage message being printed to stdout:
The text was updated successfully, but these errors were encountered: