← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1570471] [NEW] reset-state on shelve-offloaded server makes it unusable

 

Public bug reported:

shelve_offloading a server, and then resetting it state, makes it
unavailable for any command:

shoham@ubuntu:~/devstack$ nova list
nova s+--------------------------------------+------+--------+------------+-------------+------------------+
| ID                                   | Name | Status | Task State | Power State | Networks         |
+--------------------------------------+------+--------+------------+-------------+------------------+
| 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | ACTIVE | -          | Running     | private=10.0.0.2 |
+--------------------------------------+------+--------+------------+-------------+------------------+
shoham@ubuntu:~/devstack$ nova shelve b 
shoham@ubuntu:~/devstack$ nova list
+--------------------------------------+------+-------------------+------------+-------------+------------------+
| ID                                   | Name | Status            | Task State | Power State | Networks         |
+--------------------------------------+------+-------------------+------------+-------------+------------------+
| 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | SHELVED_OFFLOADED | -          | Shutdown    | private=10.0.0.2 |
+--------------------------------------+------+-------------------+------------+-------------+------------------+
shoham@ubuntu:~/devstack$ nova reset-state --active b
Reset state for server b succeeded; new state is active
shoham@ubuntu:~/devstack$ nova list
+--------------------------------------+------+--------+------------+-------------+------------------+
| ID                                   | Name | Status | Task State | Power State | Networks         |
+--------------------------------------+------+--------+------------+-------------+------------------+
| 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | ACTIVE | -          | Shutdown    | private=10.0.0.2 |
+--------------------------------------+------+--------+------------+-------------+------------------+
shoham@ubuntu:~/devstack$ nova stop b
Instance 1abddec6-06a3-4e91-bf47-899a0b76c1dd is not ready (HTTP 409) (Request-ID: req-35fbdc75-9465-48dc-a2b6-321568d953cd)
ERROR (CommandError): Unable to stop the specified server(s).
shoham@ubuntu:~/devstack$ nova list
+--------------------------------------+------+--------+------------+-------------+------------------+
| ID                                   | Name | Status | Task State | Power State | Networks         |
+--------------------------------------+------+--------+------------+-------------+------------------+
| 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | ACTIVE | -          | Shutdown    | private=10.0.0.2 |
+--------------------------------------+------+--------+------------+-------------+------------------+
shoham@ubuntu:~/devstack$ nova shelve b
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'nova.exception.NovaException'> (HTTP 500) (Request-ID: req-d019cdc2-e02c-42ec-a8f7-a6ce85087ff3)

nova version is 13.0.0.0b3.dev169

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1570471

Title:
  reset-state on shelve-offloaded server makes it unusable

Status in OpenStack Compute (nova):
  New

Bug description:
  shelve_offloading a server, and then resetting it state, makes it
  unavailable for any command:

  shoham@ubuntu:~/devstack$ nova list
  nova s+--------------------------------------+------+--------+------------+-------------+------------------+
  | ID                                   | Name | Status | Task State | Power State | Networks         |
  +--------------------------------------+------+--------+------------+-------------+------------------+
  | 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | ACTIVE | -          | Running     | private=10.0.0.2 |
  +--------------------------------------+------+--------+------------+-------------+------------------+
  shoham@ubuntu:~/devstack$ nova shelve b 
  shoham@ubuntu:~/devstack$ nova list
  +--------------------------------------+------+-------------------+------------+-------------+------------------+
  | ID                                   | Name | Status            | Task State | Power State | Networks         |
  +--------------------------------------+------+-------------------+------------+-------------+------------------+
  | 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | SHELVED_OFFLOADED | -          | Shutdown    | private=10.0.0.2 |
  +--------------------------------------+------+-------------------+------------+-------------+------------------+
  shoham@ubuntu:~/devstack$ nova reset-state --active b
  Reset state for server b succeeded; new state is active
  shoham@ubuntu:~/devstack$ nova list
  +--------------------------------------+------+--------+------------+-------------+------------------+
  | ID                                   | Name | Status | Task State | Power State | Networks         |
  +--------------------------------------+------+--------+------------+-------------+------------------+
  | 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | ACTIVE | -          | Shutdown    | private=10.0.0.2 |
  +--------------------------------------+------+--------+------------+-------------+------------------+
  shoham@ubuntu:~/devstack$ nova stop b
  Instance 1abddec6-06a3-4e91-bf47-899a0b76c1dd is not ready (HTTP 409) (Request-ID: req-35fbdc75-9465-48dc-a2b6-321568d953cd)
  ERROR (CommandError): Unable to stop the specified server(s).
  shoham@ubuntu:~/devstack$ nova list
  +--------------------------------------+------+--------+------------+-------------+------------------+
  | ID                                   | Name | Status | Task State | Power State | Networks         |
  +--------------------------------------+------+--------+------------+-------------+------------------+
  | 1abddec6-06a3-4e91-bf47-899a0b76c1dd | b    | ACTIVE | -          | Shutdown    | private=10.0.0.2 |
  +--------------------------------------+------+--------+------------+-------------+------------------+
  shoham@ubuntu:~/devstack$ nova shelve b
  ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'nova.exception.NovaException'> (HTTP 500) (Request-ID: req-d019cdc2-e02c-42ec-a8f7-a6ce85087ff3)

  nova version is 13.0.0.0b3.dev169

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


Follow ups