← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1498756] Re: Power state inconsistence after using node-set-power-state

 

If it is an issue, that's an issue on Nova side of things (i.e. in
ironic driver). I'm not sure, however, it's a valid thing to do, but
I'll leave it up to Nova folks.

** Also affects: nova
   Importance: Undecided
       Status: New

** Changed in: ironic
       Status: New => Invalid

** Tags added: ironic

** Summary changed:

- Power state inconsistence after using node-set-power-state
+ Power state inconsistence after using Ironic node-set-power-state

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

Title:
  Power state inconsistence after using Ironic node-set-power-state

Status in Ironic:
  Invalid
Status in OpenStack Compute (nova):
  New

Bug description:
  Here is  the steps to reproduce. I use the devstack to setup ironic
  with pxe deployment.

  ubuntu@devstack:~/devstack$ ironic node-list
  +--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
  | UUID                                 | Name   | Instance UUID                        | Power State | Provisioning State | Maintenance |
  +--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
  | e5f9a29e-c50c-4c13-9b8c-c6b8a0767b0a | node-0 | e8e2b89c-530f-43d6-b4e7-965a7864417e | power on    | active             | False       |
  | e4aab274-077c-4238-a509-d17f6c5b767a | node-1 | None                                 | power on    | available          | False       |
  | 5d0db590-e9c3-46af-8b5b-7540d0a3faa7 | node-2 | 8da05834-2c43-430c-bba5-f136b6db872b | power on    | active             | False       |
  +--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
  ubuntu@devstack:~/devstack$ ironic node-set-power-state node-0 off
  ubuntu@devstack:~/devstack$ ironic node-list
  +--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
  | UUID                                 | Name   | Instance UUID                        | Power State | Provisioning State | Maintenance |
  +--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+
  | e5f9a29e-c50c-4c13-9b8c-c6b8a0767b0a | node-0 | e8e2b89c-530f-43d6-b4e7-965a7864417e | power off   | active             | False       |
  | e4aab274-077c-4238-a509-d17f6c5b767a | node-1 | None                                 | power on    | available          | False       |
  | 5d0db590-e9c3-46af-8b5b-7540d0a3faa7 | node-2 | 8da05834-2c43-430c-bba5-f136b6db872b | power on    | active             | False       |
  +--------------------------------------+--------+--------------------------------------+-------------+--------------------+-------------+

  The expected result is that I can see shutdown from 'nova list'. However, the result is as following.
  ubuntu@devstack:~/devstack$ nova list
  +--------------------------------------+------------+--------+------------+-------------+------------------------------------------------------+
  | ID                                   | Name       | Status | Task State | Power State | Networks                                             |
  +--------------------------------------+------------+--------+------------+-------------+------------------------------------------------------+
  | 8da05834-2c43-430c-bba5-f136b6db872b | testing-01 | ACTIVE | -          | Running     | private=10.1.0.5, fdc6:d93f:45dd:0:5054:ff:fe70:ffe4 |
  | e8e2b89c-530f-43d6-b4e7-965a7864417e | testing-02 | ACTIVE | -          | Running     | private=10.1.0.6, fdc6:d93f:45dd:0:5054:ff:fec5:254c |
  +--------------------------------------+------------+--------+------------+-------------+------------------------------------------------------+

  It doesn't not change the state immediately. After a while, it changes
  to shutdown in nova list.

  What confuse me is that when I change the power state from nova, it
  does change the state from ironic side.

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