No administrative way to delete an instance in state 'soft-delete'

Bug #1915194 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)
New
Undecided
Unassigned

Bug Description

As an operator of openstack, if an instance is soft-deleted there's no way to forcefully remove a soft-deleted VM other than wait the appropriate amount of time before the VM is REALLY deleted. Until then it just sits on the hypervisor waiting for its own demise.

I wish there was a command

$ openstack server delete <UUID> --force

or equivalent to REALLY get rid of it from taking up space on a hypervisor.

```
openstack server list --all --deleted | grep SOFT
| 3b7760fe-6eab-4e09-830b-5b45f202dfc1 | launchpad-test1 | SOFT_DELETED | ubuntu-net=10.0.89.76 | Ubuntu-20.04 | takes-up-alot-of-space |

os server show 3b7760fe-6eab-4e09-830b-5b45f202dfc1
+-------------------------------------+-----------------------------------------------------------------+
| Field | Value |
+-------------------------------------+-----------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | rack3 |
| OS-EXT-SRV-ATTR:host | my-pc |
| OS-EXT-SRV-ATTR:hypervisor_hostname | my-pc.maas |
| OS-EXT-SRV-ATTR:instance_name | instance-00000d51 |
| OS-EXT-STS:power_state | Shutdown |
| OS-EXT-STS:task_state | None |
| OS-EXT-STS:vm_state | soft-delete |
| OS-SRV-USG:launched_at | 2021-02-04T22:45:02.000000 |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | ubuntu-net=10.0.89.76 |
| config_drive | |
| created | 2021-02-04T22:44:26Z |
| flavor | takes-up-alot-of-space (462106cc-2452-4f21-a64d-7bb133440c09) |
| hostId | d706bd270e8211b623453d360a184d06c2de991125d27f3c934ef430 |
| id | 3b7760fe-6eab-4e09-830b-5b45f202dfc1 |
| image | Ubuntu-20.04 (6df2db60-b3e4-4fa2-a379-218b7e6fce7d) |
| key_name | None |
| name | sf290221-test1 |
| project_id | 83698d9807c54503bb534625d968ced7 |
| properties | |
| status | SOFT_DELETED |
| updated | 2021-02-09T05:40:03Z |
| user_id | 83fd6e4c5a464305b2a9e53ac46faae4 |
| volumes_attached | |
+-------------------------------------+-----------------------------------------------------------------+

```

Adam Dyess (addyess)
no longer affects: charm-nova-compute
Revision history for this message
Adam Dyess (addyess) wrote :

workaround:

$ nova force-delete <instance>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.