[Openstack] Can't delete instances with "error" status.

Craig Vyvial cp16net at gmail.com
Thu Mar 22 06:19:31 UTC 2012


My understanding is that you would not always want a user to delete an
instance in an error state. So an operations person can figure out what
went wrong. I think the instances that are in error state do not count
against the quota but i agree that they clutter up the API calls to list
servers.

I have noticed this with my team and written code around this case to force
the instance into an 'active' state before sending nova the delete call if
the instance was in an 'error' or 'suspended' state.

-Craig

On Thu, Mar 22, 2012 at 1:02 AM, Gabe Westmaas
<gabe.westmaas at rackspace.com>wrote:

>  Instances in deleted status can normally be deleted, but there is
> definitely a bug to file here somewhere ¨C possibly more than one.  A common
> reason I have seen is that the node the instance lives on is no longer
> operating correctly, so the compute manager never gets the delete request,
> so it doesn¡¯t finish.  If we can narrow the cases where this happens, we
> can file bugs and decide how to resolve them ¨C although there may be some
> additional work beyond just a developer picking up the bug and working on
> it to decide what should happen!****
>
> ** **
>
> Do you know how to reliably reproduce an instance in ERROR state that
> cannot be deleted?****
>
> ** **
>
> Gabe****
>
> ** **
>
> *From:* openstack-bounces+gabe.westmaas=rackspace.com at lists.launchpad.net[mailto:
> openstack-bounces+gabe.westmaas=rackspace.com at lists.launchpad.net] *On
> Behalf Of *Yong Sheng Gong
> *Sent:* Thursday, March 22, 2012 12:58 AM
>
> *To:* Openstack Mail List
> *Subject:* Re: [Openstack] Can't delete instances with "error" status.****
>
>  ** **
>
> why not allow "nova delete" and "euca-terminate " to delete the instance
> with "error" status?****
>
>
> Yong Sheng Gong****
>
> ** **
>
> -----openstack-bounces+gongysh=cn.ibm.com at lists.launchpad.net wrote: -----
> ****
>
> To: Guilherme Birk <guibirk at hotmail.com> <guibirk at hotmail.com>, Openstack
> Mail List <openstack at lists.launchpad.net> <openstack at lists.launchpad.net>
> From: Mandar Vaze <mandar.vaze at vertex.co.in> <mandar.vaze at vertex.co.in>
> Sent by: openstack-bounces+gongysh=cn.ibm.com at lists.launchpad.net
> Date: 03/22/2012 12:26PM
> Subject: Re: [Openstack] Can't delete instances with "error" status.****
>
> I agree user shouldn¡¯t have to update DB. ****
>
> There needs to be some periodic *cleanup* task that ¡°fixes¡± the
> vm_state/task_state for ¡°stuck¡± instances.****
>
>  ****
>
> -Mandar****
>
>  ****
>
> *From:* openstack-bounces+mandar.vaze=vertex.co.in at lists.launchpad.net [
> mailto:openstack-bounces+mandar.vaze=vertex.co.in at lists.launchpad.net<openstack-bounces+mandar.vaze=vertex.co.in at lists.launchpad.net>]
> *On Behalf Of *Guilherme Birk
> *Sent:* Wednesday, March 21, 2012 6:05 PM
> *To:* Openstack Mail List
> *Subject:* Re: [Openstack] Can't delete instances with "error" status.****
>
>  ****
>
> This is the only option? I've already done that, but it's kind "strange" I
> update the database row everytime the script identifies a VM with error.**
> **
>  ------------------------------
>
> Date: Wed, 21 Mar 2012 09:39:03 +0800
> Subject: Re: [Openstack] Can't delete instances with "error" status.
> From: mwjpiero at gmail.com
> To: guibirk at hotmail.com****
>
> update "instances" table in "nova" db, set the vm_status of  the instance
> which you want to delete "active" and set the task_status=NULL. ****
>
> After that, try to use euca-terminate ****
>
>  ****
>
> On Wed, Mar 21, 2012 at 1:24 AM, Guilherme Birk <guibirk at hotmail.com>
> wrote:****
>
> I'm attempting to make a python script that controls all my virtual
> machines. Sometimes, when the script identifies that exists an instance
> with status of "error", he creates a new instance and tries to delete the
> old one with curl commands, but I'm not getting any response and the VM
> isn't deleted. When I execute euca-terminate instance <i-name> I got
> nothing too. How I should delete instances with error status ? I didn't
> found any way using nova-manage too. ****
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp****
>
>
>
>
> --
> ·Çµ­±¡ÎÞÒÔÃ÷Ö¾£¬·ÇÄþ¾²ÎÞÒÔÖÂÔ¶****
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp****
>
> ** **
>
> ** **
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120322/3c4d2e01/attachment.html>


More information about the Openstack mailing list