[openstack-dev] [qa] How to delete a VM which is in ERROR state?

Danny Choi (dannchoi) dannchoi at cisco.com
Tue Dec 9 02:43:18 UTC 2014


Both “delete” and “force-delete” did not work for me; they failed to remove the VM.

Danny


Date: Sun, 7 Dec 2014 21:17:30 +0530
From: foss geek <thefossgeek at gmail.com<mailto:thefossgeek at gmail.com>>
To: "OpenStack Development Mailing List (not for usage questions)"
<openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Subject: Re: [openstack-dev] [qa] How to delete a VM which is in ERROR
state?
Message-ID:
<CADXhYnXTVaKcG58s2_YM5KoOzM6yuFK9URok7wxtceYA7OAixQ at mail.gmail.com<mailto:CADXhYnXTVaKcG58s2_YM5KoOzM6yuFK9URok7wxtceYA7OAixQ at mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Also try with nova force-delete after reset:

$ nova help force-delete
usage: nova force-delete <server>

Force delete a server.

Positional arguments:
  <server>  Name or ID of server.

--
Thanks & Regards
E-Mail: thefossgeek at gmail.com<mailto:thefossgeek at gmail.com>
IRC: neophy
Blog : http://lmohanphy.livejournal.com/


On Sun, Dec 7, 2014 at 9:10 PM, foss geek <thefossgeek at gmail.com<mailto:thefossgeek at gmail.com>> wrote:

Have you tried to delete after reset?

# nova reset-state --active  <Name or ID of server>

#  nova delete <Name or ID of server>

It works well for me if the VM state is error state.


--
Thanks & Regards
E-Mail: thefossgeek at gmail.com<mailto:thefossgeek at gmail.com>
IRC: neophy
Blog : http://lmohanphy.livejournal.com/



On Sun, Dec 7, 2014 at 7:17 PM, Danny Choi (dannchoi) <dannchoi at cisco.com<mailto:dannchoi at cisco.com>>
wrote:

  That does not work.

  It put the VM in ACTIVE Status, but in NOSTATE Power State.

  Subsequent delete still won?t remove the VM.


+--------------------------------------+----------------------------------------------+--------+------------+-------------+--------------------+

| ID                                   | Name
             | Status | Task State | Power State | Networks           |


+--------------------------------------+----------------------------------------------+--------+------------+-------------+--------------------+
| 1cb5bf96-619c-4174-baae-dd0d8c3d40c5 |
cirros--1cb5bf96-619c-4174-baae-dd0d8c3d40c5 | ACTIVE | -          |
NOSTATE     |                    |


  Regards,
Danny

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141209/07474aa4/attachment.html>


More information about the OpenStack-dev mailing list