problem with unregistering a box which was already removed from vagrant
Closed this issue · 1 comments
Ashalynd commented
How to reproduce:
- Start prudentia, register and provision an instance in vagrant. Quit.
- Destroy an instance by ID in vagrant.
- Start prudentia, try to destroy an instance which was just deleted in vagrant. It complains that there is no ID so nothing is removed.
- Try to register another instance with the same playbook (and the same name as the deleted instance). An alternative name is offered, because the original instance is still assumed to exist. Forcing the instance name doesn't help either. (Current workaround: remove the entry from ~/prudentia/envs/vagrant/boxes.json )
TizianoPerrucci commented
@Ashalynd sorry for the little delay, the solution is to simply use unregister
. Using the unregister
action is more convenient to use then the destroy
action directly (unless you only want to destroy the local vm) because it will ask you to destroy the instance as well. Hope this helps.