-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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.delete_node and chef.delete_client does not work (1.7.2) #5154
Comments
Hi @jfbibeau, Could you please run that command in debug mode and gist the output? How is Chef installed on your local system? |
@sethvargo Here's the relevant part at debug level: https://gist.github.com/jfbibeau/0aea9448bda47f780828 Looking at it quickly.... Is the "knife" command being run on the vagrant VM, or is it being run on the host machine? It's looking to me like it's trying to run on the host machine? Is it a requirement to have chef installed on the host system for this clean up to work? I was under the impression the chef provisioner only had to exist on the guest VM, and perform it's own cleanup... Otherwise anyone who runs vagrant with a chef-provisioned VM would have to install Chef also on the host machine? Am I making sense? |
@jfbibeau ah yes 😄. You must have Chef (either the Chef Client or ChefDK) installed on your host operating system to process the cleanup tasks in the current Chef implementation. Leaving this open to see if we can potentially move that operation onto the guest. |
@sethvargo Thanks for the prompt reply! It would indeed be a nice enhancement, otherwise vagrant-butcher plugin does a good job of it. Cheers. |
This is actually a duplicate of #2476. Let's track that issue since it's older and has more history 😄 |
Looks like #5021 was fixed in Vagrant 1.7.2. However Vagrant still fails to clean up the node and client off the Chef Server.
The two lines in my Vagrantfile:
Log from trying to destroy a VM:
/etc/chef/client.pem definitely does exist before the VM gets destroyed.
Maybe some more insight as to how the cleanup works can help figure out why this doesn't work. I'd really like to stop using the vagrant-butcher plugin to achieve this functionality. Thanks!
The text was updated successfully, but these errors were encountered: