delete vm after shelve vm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Description
===========
I delete vm after I have done shelve action for vm.
Notes: I set reclaim_
Steps to reproduce
==================
It's very important to set reclaim_
Then do steps as followed:
$ nova boot --flavor <flavor-id> --image <image-id> --nic net-id=<net-id> <name>
$ nova shelve <vm-id>
$ nova delete <vm-id>
$ nova force-delete <vm-id>
ERROR (CommandError): No server with a name or ID of '856407c6-
Expected result
===============
The vm can be force deleted correctly.
Actual result
=============
The vm can not be found.
Find the vm from the db as followed:
mysql> use nova_cell1;
mysql> select vm_state,
We will find that the 'deleted' field is not 0.
Environment
===========
Deploy with master of devstack.
Logs & Configs
==============
No error from log.
nova.conf config with reclaim_
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Why do you expect that after you delete the VM, the VM still can be force-deleted? I think the nova delete command already deleted the VM so there is nothing to be force-deleted.
Marking this as Invalid. Feel free to set it back to New if you disagree.