ironic iscsi failing because of missing package open-iscsi

Bug #1636291 reported by krypto
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Michael Polenchuk
Nominated for Ocata by Oleksiy Molchanov
8.0.x
Confirmed
High
Fuel Sustaining
Mitaka
Invalid
High
Fuel Sustaining
Newton
Fix Committed
High
Michael Polenchuk

Bug Description

Fuel 8.0 with ironic

ironic conductor installed on seperate node,try to start an instance with hyeprvisor=baremetal metadata set.

Ironic Driver:
pxe_ipmitool

Error in Brief:
Stderr: u'/usr/bin/ironic-rootwrap: Executable not found: iscsiadm (filter match = iscsiadm)\n'

Error log:

2016-10-24 19:20:19.717 27154 DEBUG ironic.drivers.modules.image_cache [-] Starting clean up for master image cache /var/lib/ironic/master_images clean_up /usr/lib/python2.7/dist-packages/ironic/drivers/modules/image_cache.py:195
2016-10-24 19:20:19.717 27154 DEBUG oslo_concurrency.lockutils [-] Lock "master_image" released by "ironic.drivers.modules.image_cache.clean_up" :: held 0.001s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:265
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor [-] Asynchronous exception for node d17cde67-99e7-4263-b08c-e27b513850f4: Node failed to get image for deploy. exception: Deploy failed for instance b6a17c6d-86ed-4932-bd4c-a846d07173b5. Error: Unexpected error while running command.
Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 192.168.3.70:3260
Exit code: 96
Stdout: u''
Stderr: u'/usr/bin/ironic-rootwrap: Executable not found: iscsiadm (filter match = iscsiadm)\n'
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor Traceback (most recent call last):
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/agent_base_vendor.py", line 346, in heartbeat
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor self.continue_deploy(task, **kwargs)
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/conductor/task_manager.py", line 134, in wrapper
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor return f(*args, **kwargs)
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 873, in continue_deploy
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = do_agent_iscsi_deploy(task, self._client)
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 458, in do_agent_iscsi_deploy
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = continue_deploy(task, **iscsi_params)
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 391, in continue_deploy
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor _fail_deploy(task, msg)
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/dist-packages/ironic/drivers/modules/iscsi_deploy.py", line 364, in _fail_deploy
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor raise exception.InstanceDeployFailure(msg)
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor InstanceDeployFailure: Deploy failed for instance b6a17c6d-86ed-4932-bd4c-a846d07173b5. Error: Unexpected error while running command.
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 192.168.3.70:3260
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor Exit code: 96
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor Stdout: u''
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor Stderr: u'/usr/bin/ironic-rootwrap: Executable not found: iscsiadm (filter match = iscsiadm)\n'
2016-10-24 19:20:19.718 27154 ERROR ironic.drivers.modules.agent_base_vendor

Work around:

apt-get install open-iscsi -y

Changed in fuel:
milestone: none → 11.0
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Marking as Incomplete, please attach Diagnostic Snapshot.

tags: added: area-library
Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
krypto (kkrypto) wrote :

I tried to post the snapshot as comment, but am getting a timeout error. Please find the snapshot on below link.

https://www.dropbox.com/s/9ijlt6p094fnwol/fuel-snapshot-2016-10-26_02-39-57.tar.xz?dl=0

Changed in fuel:
status: Incomplete → Confirmed
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

The test passes on Mitaka. Therefore invalid for Mitaka

Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Michael Polenchuk (mpolenchuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/415665
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=184889dbe75de17fa66fe3bf8e67edb80f826908
Submitter: Jenkins
Branch: master

commit 184889dbe75de17fa66fe3bf8e67edb80f826908
Author: Michael Polenchuk <email address hidden>
Date: Thu Dec 29 13:52:16 2016 +0400

    [ironic] Install open-iscsi package evidently

    Make sure open-iscsi package has installed evidently
    in order to cover standalone ironic conductor case.
    Also ipmitool package has been removed since it's
    installed by class of ironic::conductor.

    Closes-Bug: #1636291
    Change-Id: I242c26e8b0dc6401ed53c1221bd4c1f049deb815

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/420586

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/newton)

Reviewed: https://review.openstack.org/420586
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=0ccb915b8e1f8e3acdbf326b8c5cd21874bad7ea
Submitter: Jenkins
Branch: stable/newton

commit 0ccb915b8e1f8e3acdbf326b8c5cd21874bad7ea
Author: Michael Polenchuk <email address hidden>
Date: Thu Dec 29 13:52:16 2016 +0400

    [ironic] Install open-iscsi package evidently

    Make sure open-iscsi package has installed evidently
    in order to cover standalone ironic conductor case.
    Also ipmitool package has been removed since it's
    installed by class of ironic::conductor.

    Closes-Bug: #1636291
    Change-Id: I242c26e8b0dc6401ed53c1221bd4c1f049deb815
    (cherry picked from commit 184889dbe75de17fa66fe3bf8e67edb80f826908)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 11.0.0.0rc1

This issue was fixed in the openstack/fuel-library 11.0.0.0rc1 release candidate.

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.