Skip to content
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

Question about Deprovisioning #81

Open
kbrowns opened this issue Jul 26, 2016 · 1 comment
Open

Question about Deprovisioning #81

kbrowns opened this issue Jul 26, 2016 · 1 comment

Comments

@kbrowns
Copy link

kbrowns commented Jul 26, 2016

We're currently using knife-vsphere and looking to move Chef Provisioning VSphere for a number of reasons with Test Kitchen support being one of the bigger ones. We use a series of knife-vsphere commands to deprovision machines in certain areas of the company where we're using a blue/green deployment model. One lesson we learned in doing this was that ip addresses handed out by via DHCP needed to be explicitly released prior to physically deleting the VM - otherwise the VLAN would leak addresses. We accomplished this by using "knife vsphere vm execute" on the guest.

Does the chef provisioning vsphere kitchen driver handle this in some way during it's destroy stage? I come from the app dev side of the house so networking details isn't my wheelhouse - is there a better way to solve this or avoid the leaking behavior?

Outside of kitchen destroy does Chef Provisioning VSphere support any form of deprovisioning of machines? Assuming no, would this be a desirable feature from a PR perspective?

@bradwilliamson
Copy link

bradwilliamson commented Mar 3, 2017

Looks like there is a method in the driver.rb for this. I haven't tested it yet. I I may use a restricted account within vCenter & attempt it. But it looks doable.

https://github.com/CenturyLinkCloud/chef-provisioning-vsphere/blob/master/lib/chef/provisioning/vsphere_driver/driver.rb#L400

Have you attempted destroying/deleting & did it work?

jjlimepoint pushed a commit to jjlimepoint/chef-provisioning-vsphere that referenced this issue Mar 9, 2018
Handle IPv6 address returned by VM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants