power state get fails with "Error: 'NoneType' object has no attribute 'IloClient'"
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.
2018-02-19 12:36:42.629 2934 DEBUG ironic.
2018-02-19 12:36:42.630 2934 DEBUG ironic.
~~~
Version-Release number of selected component (if applicable):
* python-
* openstack-
How reproducible:
always
Steps to Reproduce:
1. seen on
Proliant DL360 Gen9
Proliant BL460C Gen8
Proliant DL380 Gen9
ProliantSL450 Gen8
2.$ cat templates/
{
"nodes": [
{
"pm_user": "ilouser",
"mac": [
],
"pm_type": "pxe_ilo",
"
"pm_addr": "x.x.x.x",
"
"name": "overcloud-
},
....
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.
Expected results:
no issue in get power state
Additional info:
It works when downgrade to python-
Some more logs from ironic- conductor. log...
2018-02-19 12:36:42.380 2934 DEBUG ironic. common. states [req-158e2d93- 9cb7-4238- 9dde-1267f0bc64 cf 439aa070f6f84f6 48c64b6bcb56ec0 33 812a7ce661644e5 7be0b8bcd1925fe b1 - - -] Entering new state 'verifying' in response to event 'manage' on_enter /usr/lib/ python2. 7/site- packages/ ironic/ common/ states. py:234 conductor. task_manager [req-158e2d93- 9cb7-4238- 9dde-1267f0bc64 cf 439aa070f6f84f6 48c64b6bcb56ec0 33 812a7ce661644e5 7be0b8bcd1925fe b1 - - -] Node 3977a22d- b96a-4612- 8c07-84fa82ed6a 54 moved to provision state "verifying" from state "enroll"; target provision state is "manageable" conductor. manager [req-158e2d93- 9cb7-4238- 9dde-1267f0bc64 cf 439aa070f6f84f6 48c64b6bcb56ec0 33 812a7ce661644e5 7be0b8bcd1925fe b1 - - -] Starting power credentials verification for node 3977a22d- b96a-4612- 8c07-84fa82ed6a 54 _do_node_verify /usr/lib/ python2. 7/site- packages/ ironic/ conductor/ manager. py:1053 conductor. manager [req-158e2d93- 9cb7-4238- 9dde-1267f0bc64 cf 439aa070f6f84f6 48c64b6bcb56ec0 33 812a7ce661644e5 7be0b8bcd1925fe b1 - - -] Failed to get power state for node 3977a22d- b96a-4612- 8c07-84fa82ed6a 54. Error: 'NoneType' object has no attribute 'IloClient' common. states [req-158e2d93- 9cb7-4238- 9dde-1267f0bc64 cf 439aa070f6f84f6 48c64b6bcb56ec0 33 812a7ce661644e5 7be0b8bcd1925fe b1 - - -] 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.392 2934 INFO ironic.
2018-02-19 12:36:42.394 2934 DEBUG ironic.
2018-02-19 12:36:42.395 2934 ERROR ironic.
2018-02-19 12:36:42.395 2934 DEBUG ironic.