← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1372812] [NEW] instance task status keep for long time when reboot

 

Public bug reported:


When doing reboot, the task status will be REBOOT_STARTED for
long time in some cases, it's better to add this status 
when polling the rebooting instances and try to trigger
reboot again.

[tagett@stack-01 devstack]$ nova list
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| ID                                   | Name      | Status | Task State     | Power State | Networks                          |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
| 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
[tagett@stack-01 devstack]$ nova reboot t2
ERROR (Conflict): Cannot 'reboot' while instance is in task_state reboot_started (HTTP 409) (Request-ID: req-9006c602-dd74-41ef-b154-2e5e0ed53d65)
[tagett@stack-01 devstack]$ date
2014年 09月 23日 星期二 16:11:54 CST
[tagett@stack-01 devstack]$ nova list
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| ID                                   | Name      | Status | Task State     | Power State | Networks                          |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
| 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
[tagett@stack-01 devstack]$ date
2014年 09月 23日 星期二 16:12:00 CST
[tagett@stack-01 devstack]$ nova list
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| ID                                   | Name      | Status | Task State     | Power State | Networks                          |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
| 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
[tagett@stack-01 devstack]$ nova list
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| ID                                   | Name      | Status | Task State     | Power State | Networks                          |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
| 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
[tagett@stack-01 devstack]$ date
2014年 09月 23日 星期二 16:12:08 CST
[tagett@stack-01 devstack]$ nova list
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| ID                                   | Name      | Status | Task State     | Power State | Networks                          |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
| 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
[tagett@stack-01 devstack]$ nova list
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| ID                                   | Name      | Status | Task State     | Power State | Networks                          |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
| bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
| 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
+--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+

** Affects: nova
     Importance: Undecided
     Assignee: Eli Qiao (taget-9)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1372812

Title:
  instance task status keep for long time when reboot

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  
  When doing reboot, the task status will be REBOOT_STARTED for
  long time in some cases, it's better to add this status 
  when polling the rebooting instances and try to trigger
  reboot again.

  [tagett@stack-01 devstack]$ nova list
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | ID                                   | Name      | Status | Task State     | Power State | Networks                          |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
  | 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  [tagett@stack-01 devstack]$ nova reboot t2
  ERROR (Conflict): Cannot 'reboot' while instance is in task_state reboot_started (HTTP 409) (Request-ID: req-9006c602-dd74-41ef-b154-2e5e0ed53d65)
  [tagett@stack-01 devstack]$ date
  2014年 09月 23日 星期二 16:11:54 CST
  [tagett@stack-01 devstack]$ nova list
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | ID                                   | Name      | Status | Task State     | Power State | Networks                          |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
  | 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  [tagett@stack-01 devstack]$ date
  2014年 09月 23日 星期二 16:12:00 CST
  [tagett@stack-01 devstack]$ nova list
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | ID                                   | Name      | Status | Task State     | Power State | Networks                          |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
  | 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  [tagett@stack-01 devstack]$ nova list
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | ID                                   | Name      | Status | Task State     | Power State | Networks                          |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
  | 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  [tagett@stack-01 devstack]$ date
  2014年 09月 23日 星期二 16:12:08 CST
  [tagett@stack-01 devstack]$ nova list
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | ID                                   | Name      | Status | Task State     | Power State | Networks                          |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
  | 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  [tagett@stack-01 devstack]$ nova list
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | ID                                   | Name      | Status | Task State     | Power State | Networks                          |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+
  | bb44fafb-7a63-4c93-974f-031a9cceeaa3 | instance0 | ACTIVE | -              | Running     | private=192.168.1.74, 172.24.4.41 |
  | 990a03e7-4487-4137-9b51-e8f20986ffcb | t2        | REBOOT | reboot_started | Running     | private=192.168.1.91              |
  +--------------------------------------+-----------+--------+----------------+-------------+-----------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1372812/+subscriptions


Follow ups

References