Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Dev

[nova] VM stucks in deleting task state

 

 

OpenStack dev RSS feed   Index | Next | Previous | View Threaded


phanquochien at gmail

Jul 12, 2012, 10:05 AM

Post #1 of 4 (546 views)
Permalink
[nova] VM stucks in deleting task state

Hello list,

I've just installed Openstack Essex on Ubuntu 12.04. Everything works well
except one problem I just faced:
When I try terminate VM in dashboard. It stuck in deleting ask for few
hours until now. I can not connect VM. I try reboot using nova command and
error :

root [at] openstack-node0:~# nova reboot hien-vm02
ERROR: Cannot 'reboot' while instance is in task_state deleting (HTTP 409)
root [at] openstack-node0:~# nova reboot hien-vm01
ERROR: Cannot 'reboot' while instance is in task_state deleting (HTTP 409)
root [at] openstack-node0:~# nova list
+--------------------------------------+-----------+--------+-------------------------------------+
| ID | Name | Status |
Networks |
+--------------------------------------+-----------+--------+-------------------------------------+
| b924a325-b07f-480b-9a31-3049736fbfde | hien-vm02 | ACTIVE |
private=172.16.1.35, 192.168.255.34 |
| e7908096-83e6-480d-9131-efa4ea73ca0d | hien-vm01 | ACTIVE |
private=172.16.1.34, 192.168.255.33 |
+--------------------------------------+-----------+--------+-------------------------------------+



Openstack Dashboard screenshot image: http://i.imgur.com/7e4cf.png

How i can delete VMs completely ?
Thanks in advance.
--
Best regards,
Phan Quoc Hien

<http://www.mrhien.info>


litong01 at us

Jul 12, 2012, 11:34 AM

Post #2 of 4 (548 views)
Permalink
Re: [nova] VM stucks in deleting task state [In reply to]

Hi, Hien,
I had same problem. The only way that I can get rid of it is to
remove the record for that instance from the following 3 mysql db tables in
the following order.

security_group_instance_association
instance_info_caches
instances

hope that helps.

Tong Li
Emerging Technologies & Standards



From: Hien Phan <phanquochien [at] gmail>
To: openstack [at] lists
Date: 07/12/2012 02:08 PM
Subject: [Openstack] [nova] VM stucks in deleting task state
Sent by: openstack-bounces+litong01=us.ibm.com [at] lists



Hello list,

I've just installed Openstack Essex on Ubuntu 12.04. Everything works well
except one problem I just faced:
When I try terminate VM in dashboard. It stuck in deleting ask for few
hours until now. I can not connect VM. I try reboot using nova command and
error :

root [at] openstack-node0:~# nova reboot hien-vm02
ERROR: Cannot 'reboot' while instance is in task_state deleting (HTTP 409)
root [at] openstack-node0:~# nova reboot hien-vm01
ERROR: Cannot 'reboot' while instance is in task_state deleting (HTTP 409)
root [at] openstack-node0:~# nova list
+--------------------------------------+-----------+--------+-------------------------------------+

|                  ID                  |    Name   | Status |
Networks              |
+--------------------------------------+-----------+--------+-------------------------------------+

| b924a325-b07f-480b-9a31-3049736fbfde | hien-vm02 | ACTIVE |
private=172.16.1.35, 192.168.255.34 |
| e7908096-83e6-480d-9131-efa4ea73ca0d | hien-vm01 | ACTIVE |
private=172.16.1.34, 192.168.255.33 |
+--------------------------------------+-----------+--------+-------------------------------------+




Openstack Dashboard screenshot image: http://i.imgur.com/7e4cf.png

How i can delete VMs completely ?
Thanks in advance.
--
Best regards,
Phan Quoc Hien


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Attachments: graycol.gif (0.10 KB)


han.sebastien at gmail

Jul 12, 2012, 12:48 PM

Post #3 of 4 (540 views)
Permalink
Re: [nova] VM stucks in deleting task state [In reply to]

http://www.sebastien-han.fr/blog/2012/07/10/delete-a-vm-in-an-error-state/


On Thu, Jul 12, 2012 at 8:34 PM, Tong Li <litong01 [at] us> wrote:

> Hi, Hien,
> I had same problem. The only way that I can get rid of it is to remove
> the record for that instance from the following 3 mysql db tables in the
> following order.
>
> security_group_instance_association
> instance_info_caches
> instances
>
> hope that helps.
>
> Tong Li
> Emerging Technologies & Standards
>
> [.image: Inactive hide details for Hien Phan ---07/12/2012 02:08:58
> PM---Hello list, I've just installed Openstack Essex on Ubuntu 12.04]Hien
> Phan ---07/12/2012 02:08:58 PM---Hello list, I've just installed Openstack
> Essex on Ubuntu 12.04. Everything works well
>
> From: Hien Phan <phanquochien [at] gmail>
> To: openstack [at] lists
> Date: 07/12/2012 02:08 PM
> Subject: [Openstack] [nova] VM stucks in deleting task state
> Sent by: openstack-bounces+litong01=us.ibm.com [at] lists
> ------------------------------
>
>
>
> Hello list,
>
> I've just installed Openstack Essex on Ubuntu 12.04. Everything works well
> except one problem I just faced:
> When I try terminate VM in dashboard. It stuck in deleting ask for few
> hours until now. I can not connect VM. I try reboot using nova command and
> error :
>
> root [at] openstack-node0:~# nova reboot hien-vm02
> ERROR: Cannot 'reboot' while instance is in task_state deleting (HTTP 409)
> root [at] openstack-node0:~# nova reboot hien-vm01
> ERROR: Cannot 'reboot' while instance is in task_state deleting (HTTP 409)
> root [at] openstack-node0:~# nova list
>
> +--------------------------------------+-----------+--------+-------------------------------------+
> | ID | Name | Status
> | Networks |
>
> +--------------------------------------+-----------+--------+-------------------------------------+
> | b924a325-b07f-480b-9a31-3049736fbfde | hien-vm02 | ACTIVE |
> private=172.16.1.35, 192.168.255.34 |
> | e7908096-83e6-480d-9131-efa4ea73ca0d | hien-vm01 | ACTIVE |
> private=172.16.1.34, 192.168.255.33 |
>
> +--------------------------------------+-----------+--------+-------------------------------------+
>
>
>
> Openstack Dashboard screenshot image: *http://i.imgur.com/7e4cf.png*<http://i.imgur.com/7e4cf.png>
>
> How i can delete VMs completely ?
> Thanks in advance.
> --
> Best regards,
> Phan Quoc Hien
> *
> * <http://www.mrhien.info/>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>


stefano at openstack

Jul 13, 2012, 11:31 AM

Post #4 of 4 (533 views)
Permalink
Re: [nova] VM stucks in deleting task state [In reply to]

Larsk Kellogg-Stedman shared a few weeks ago the tool he uses to clean
up OpenStack database after messing with it:

http://markmail.org/message/gygnjvdy3njwfrtg

maybe it's useful for others, too.

Cheers,
stef

On 07/12/2012 12:48 PM, Sébastien Han wrote:
> http://www.sebastien-han.fr/blog/2012/07/10/delete-a-vm-in-an-error-state/
>
>
> On Thu, Jul 12, 2012 at 8:34 PM, Tong Li <litong01 [at] us
> <mailto:litong01 [at] us>> wrote:
>
> Hi, Hien,
> I had same problem. The only way that I can get rid of it is to
> remove the record for that instance from the following 3 mysql db
> tables in the following order.
>
> security_group_instance_association
> instance_info_caches
> instances
>
> hope that helps.
>
> Tong Li
> Emerging Technologies & Standards
>
> Inactive hide details for Hien Phan ---07/12/2012 02:08:58
> PM---Hello list, I've just installed Openstack Essex on Ubuntu
> 12.04Hien Phan ---07/12/2012 02:08:58 PM---Hello list, I've just
> installed Openstack Essex on Ubuntu 12.04. Everything works well
>
> From: Hien Phan <phanquochien [at] gmail <mailto:phanquochien [at] gmail>>
> To: openstack [at] lists <mailto:openstack [at] lists>
> Date: 07/12/2012 02:08 PM
> Subject: [Openstack] [nova] VM stucks in deleting task state
> Sent by: openstack-bounces+litong01=us.ibm.com [at] lists
> <mailto:us.ibm.com [at] lists>
>
> ------------------------------------------------------------------------
>
>
>
> Hello list,
>
> I've just installed Openstack Essex on Ubuntu 12.04. Everything
> works well except one problem I just faced:
> When I try terminate VM in dashboard. It stuck in deleting ask for
> few hours until now. I can not connect VM. I try reboot using nova
> command and error :
>
> root [at] openstack-node0:~# nova reboot hien-vm02
> ERROR: Cannot 'reboot' while instance is in task_state deleting
> (HTTP 409)
> root [at] openstack-node0:~# nova reboot hien-vm01
> ERROR: Cannot 'reboot' while instance is in task_state deleting
> (HTTP 409)
> root [at] openstack-node0:~# nova list
> +--------------------------------------+-----------+--------+-------------------------------------+
> | ID | Name | Status
> | Networks |
> +--------------------------------------+-----------+--------+-------------------------------------+
> | b924a325-b07f-480b-9a31-3049736fbfde | hien-vm02 | ACTIVE |
> private=172.16.1.35, 192.168.255.34 |
> | e7908096-83e6-480d-9131-efa4ea73ca0d | hien-vm01 | ACTIVE |
> private=172.16.1.34, 192.168.255.33 |
> +--------------------------------------+-----------+--------+-------------------------------------+
>
>
>
> Openstack Dashboard screenshot image: _http://i.imgur.com/7e4cf.png_
>
> How i can delete VMs completely ?
> Thanks in advance.
> --
> Best regards,
> Phan Quoc Hien
> _
> _<http://www.mrhien.info/>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> <mailto:openstack [at] lists>
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> <mailto:openstack [at] lists>
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp

OpenStack dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.