Keystone failure while running standalone Ironic

Bug #1447658 reported by kejia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Undecided
Jim Rollenhagen

Bug Description

'Keystone API endpoint is missing' is reported while deploying with standalone Ironic with pxe_ipmitool driver. The command 'ironic node-set-provision-state $NODE active' completed without complaint, but error log was appeared in Ironic conductor log.

I was following the instructions in ../ironic/doc/source/deploy/install-guide.rst, and didn't really make much change on the steps.

The platform used was HP Moonshot with Ubuntu 14.10, and Kilo-stable Ironic was used. The ironic.conf file is attched.

The error trackback is:

2015-04-23 15:37:57.680 16981 DEBUG ironic.common.utils [-] Execution completed, command line is "env LC_ALL=C LANG=C qemu-img info /var/lib/ironic/images/b0a289a0-c959-41cb-9f4e-b959cd4f81ed/disk" execute /home/stack/ironic/ironic/common/utils.py:83
2015-04-23 15:37:57.681 16981 DEBUG ironic.common.utils [-] Command stdout is: "image: /var/lib/ironic/images/b0a289a0-c959-41cb-9f4e-b959cd4f81ed/disk
file format: raw
virtual size: 1.4G (1465450496 bytes)
disk size: 785M
" execute /home/stack/ironic/ironic/common/utils.py:84
2015-04-23 15:37:57.681 16981 DEBUG ironic.common.utils [-] Command stderr is: "" execute /home/stack/ironic/ironic/common/utils.py:85
2015-04-23 15:37:57.682 16981 DEBUG ironic.common.states [-] Exiting old state 'deploying' in response to event 'fail' on_exit /home/stack/ironic/ironic/common/states.py:177
2015-04-23 15:37:57.683 16981 DEBUG ironic.common.states [-] Entering new state 'deploy failed' in response to event 'fail' on_enter /home/stack/ironic/ironic/common/states.py:183
2015-04-23 15:37:57.727 16981 WARNING ironic.conductor.manager [-] Error in deploy of node b0a289a0-c959-41cb-9f4e-b959cd4f81ed: Keystone API endpoint is missing
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 457, in fire_timers
    timer()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__
    cb(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
    result = function(*args, **kwargs)
  File "/home/stack/ironic/ironic/conductor/manager.py", line 1891, in do_node_deploy
    _("Failed to deploy. Error: %s"))
  File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
    six.reraise(self.type_, self.value, self.tb)
  File "/home/stack/ironic/ironic/conductor/manager.py", line 1886, in do_node_deploy
    new_state = task.driver.deploy.deploy(task)
  File "/home/stack/ironic/ironic/conductor/task_manager.py", line 128, in wrapper
    return f(*args, **kwargs)
  File "/home/stack/ironic/ironic/drivers/modules/pxe.py", line 408, in deploy
    _create_token_file(task)
  File "/home/stack/ironic/ironic/drivers/modules/pxe.py", line 324, in _create_token_file
    if timeout and keystone.token_expires_soon(token, timeout):
  File "/home/stack/ironic/ironic/common/keystone.py", line 137, in token_expires_soon
    ksclient = _get_ksclient(token=token)
  File "/home/stack/ironic/ironic/common/keystone.py", line 52, in _get_ksclient
    raise exception.KeystoneFailure(_('Keystone API endpoint is missing'))
KeystoneFailure: Keystone API endpoint is missing

the node details are as following:

stack@ubuntu:~$ ironic node-show b0a289a0-c959-41cb-9f4e-b959cd4f81ed
+------------------------+-----------------------------------------------------------------------+
| Property | Value |
+------------------------+-----------------------------------------------------------------------+
| target_power_state | None |
| extra | {} |
| last_error | Failed to deploy. Error: Keystone API endpoint is missing |
| updated_at | 2015-04-23T14:37:57.770054+00:00 |
| maintenance_reason | None |
| provision_state | deploy failed |
| uuid | b0a289a0-c959-41cb-9f4e-b959cd4f81ed |
| console_enabled | False |
| target_provision_state | active |
| maintenance | False |
| inspection_started_at | None |
| inspection_finished_at | None |
| power_state | None |
| driver | pxe_ipmitool |
| reservation | None |
| properties | {} |
| instance_uuid | None |
| name | None |
| driver_info | {u'ipmi_transit_address': 214, u'ipmi_target_channel': 7, |
| | u'ipmi_username': u'Administrator', u'deploy_kernel': |
| | u'file:///home/stack/images/my-deploy-ramdisk.kernel', |
| | u'ipmi_transit_channel': 0, u'ipmi_address': u'10.0.1.10', |
| | u'ipmi_target_address': u'0x72', u'ipmi_password': u'******', |
| | u'ipmi_local_address': u'0x20', u'ipmi_bridging': u'dual', |
| | u'deploy_ramdisk': u'file:///home/stack/images/my-deploy- |
| | ramdisk.initramfs'} |
| created_at | 2015-04-23T14:36:41.914236+00:00 |
| driver_internal_info | {u'is_whole_disk_image': False} |
| chassis_uuid | |
| instance_info | {u'ramdisk': u'file:///home/stack/images/my-image.initrd', u'kernel': |
| | u'file:///home/stack/images/my-image.vmlinuz', u'root_gb': u'10', |
| | u'image_source': u'file:///home/stack/images/my-image.qcow2', |
| | u'deploy_key': u'P9RFN1NLPX0KLKV5TK9BDZRTMVW2MC06'} |
+------------------------+-----------------------------------------------------------------------+

Revision history for this message
kejia (kejia-hu) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/176813

Changed in ironic:
assignee: nobody → Jim Rollenhagen (jim-rollenhagen)
status: New → In Progress
Revision history for this message
Yuriy Zveryanskyy (yzveryanskyy) wrote :

Closed by https://review.openstack.org/#/c/185376/ sorry forgot add in commit message.

Changed in ironic:
status: In Progress → Fix Committed
Changed in ironic:
milestone: none → 4.0.0
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Jim Rollenhagen (<email address hidden>) on branch: master
Review: https://review.openstack.org/176813

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.