power state get fails with "Error: 'NoneType' object has no attribute 'IloClient'"

Bug #1751872 reported by Bob Fournier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
proliantutils
Invalid
Undecided
Unassigned

Bug Description

When importing nodes, the provision state is stuck in enroll because there is an error to get the powerstate using pxe_ilo:
~~~
2018-02-19 12:36:42.629 2934 ERROR ironic.conductor.manager [req-db0b1334-0529-4bab-9e56-65741d5f9ee4 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Failed to get power state for node f2aa6d54-d8e5-4a27-a565-5d42a35ec261. Error: 'NoneType' object has no attribute 'IloClient'
2018-02-19 12:36:42.629 2934 DEBUG ironic.common.states [req-db0b1334-0529-4bab-9e56-65741d5f9ee4 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Exiting old state 'verifying' in response to event 'fail' on_exit /usr/lib/python2.7/site-packages/ironic/common/states.py:228
2018-02-19 12:36:42.630 2934 DEBUG ironic.common.states [req-db0b1334-0529-4bab-9e56-65741d5f9ee4 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Entering new state 'enroll' in response to event 'fail' on_enter /usr/lib/python2.7/site-packages/ironic/common/states.py:234
~~~

Version-Release number of selected component (if applicable):
* python-proliantutils-2.4.0-2
* openstack-ironic-conductor-7.0.3-2

How reproducible:
always

Steps to Reproduce:
1. seen on
Proliant DL360 Gen9
Proliant BL460C Gen8
Proliant DL380 Gen9
ProliantSL450 Gen8

2.$ cat templates/instackenv-compute.json
{
  "nodes": [
    {
      "pm_user": "ilouser",
      "mac": [
        "48:df:37:01:a2:1d",
        "48:df:37:01:d2:5d"
      ],
      "pm_type": "pxe_ilo",
      "pm_password": "ilopassword",
      "pm_addr": "x.x.x.x",
      "capabilities": "profile:compute",
      "name": "overcloud-compute01"
    },
    ....

3. $ openstack overcloud node import ~/instackenv.json

4. $ openstack baremetal node list
=> provision state stays in enroll

5. checking the log we see the error in get power state

Actual results:
2018-02-19 12:36:42.629 2934 ERROR ironic.conductor.manager [req-db0b1334-0529-4bab-9e56-65741d5f9ee4 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Failed to get power state for node f2aa6d54-d8e5-4a27-a565-5d42a35ec261. Error: 'NoneType' object has no attribute 'IloClient'

Expected results:
no issue in get power state

Additional info:
It works when downgrade to python-proliantutils-2.2.0-2.el7ost.noarch

Revision history for this message
Bob Fournier (bfournie) wrote :

Some more logs from ironic-conductor.log...

2018-02-19 12:36:42.380 2934 DEBUG ironic.common.states [req-158e2d93-9cb7-4238-9dde-1267f0bc64cf 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Entering new state 'verifying' in response to event 'manage' on_enter /usr/lib/python2.7/site-packages/ironic/common/states.py:234
2018-02-19 12:36:42.392 2934 INFO ironic.conductor.task_manager [req-158e2d93-9cb7-4238-9dde-1267f0bc64cf 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Node 3977a22d-b96a-4612-8c07-84fa82ed6a54 moved to provision state "verifying" from state "enroll"; target provision state is "manageable"
2018-02-19 12:36:42.394 2934 DEBUG ironic.conductor.manager [req-158e2d93-9cb7-4238-9dde-1267f0bc64cf 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Starting power credentials verification for node 3977a22d-b96a-4612-8c07-84fa82ed6a54 _do_node_verify /usr/lib/python2.7/site-packages/ironic/conductor/manager.py:1053
2018-02-19 12:36:42.395 2934 ERROR ironic.conductor.manager [req-158e2d93-9cb7-4238-9dde-1267f0bc64cf 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Failed to get power state for node 3977a22d-b96a-4612-8c07-84fa82ed6a54. Error: 'NoneType' object has no attribute 'IloClient'
2018-02-19 12:36:42.395 2934 DEBUG ironic.common.states [req-158e2d93-9cb7-4238-9dde-1267f0bc64cf 439aa070f6f84f648c64b6bcb56ec033 812a7ce661644e57be0b8bcd1925feb1 - - -] Exiting old state 'verifying' in response to event 'fail' on_exit /usr/lib/python2.7/site-packages/ironic/common/states.py:228

Revision history for this message
Bob Fournier (bfournie) wrote :
Revision history for this message
Bob Fournier (bfournie) wrote :
Revision history for this message
Bob Fournier (bfournie) wrote :

Problem appears to be a downstream build issue. Closing.

Changed in proliantutils:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.