[Bug 1915194] Re: No administrative way to delete an instance in state 'soft-delete'

Adam Dyess 1915194 at bugs.launchpad.net
Tue Feb 9 20:11:40 UTC 2021


** Also affects: python-openstackclient (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: charm-nova-compute

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1915194

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

Status in python-openstackclient package in Ubuntu:
  New

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                    |                                                                 |
  +-------------------------------------+-----------------------------------------------------------------+

  
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1915194/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list