ironic-conductor iSCSI driver tcp is not loaded

Bug #1667864 reported by Yih Leong Sun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Unassigned

Bug Description

Tested on Ubuntu 16.04, kolla newton .

Error: Unexpected error while running command.
Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 10.4.100.16:3260

iSCSI driver tcp is not loaded. Load the module then retry the command.\n\niscsiadm: Could not perform SendTargets discovery: iSCSI driver not found. Please make sure it is loaded, and retry the operation\n'

Here's the trace:

2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor [req-09b7278c-03ad-4911-a67b-67d4c2181af2 - - - - -] Asynchronous exception for node 33760f3f-9319-45a1-9ca8-6f8c16731e7c: Node failed to get image for deploy. Exception: Deploy failed for instance 3bef68bf-dfe3-41b3-b3c9-0eee830cce3e. Error: Unexpected error while running command.
Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 10.4.100.16:3260
Exit code: 12
Stdout: u''
Stderr: u'iscsiadm: iSCSI driver tcp is not loaded. Load the module then retry the command.\n\niscsiadm: Could not perform SendTargets discovery: iSCSI driver not found. Please make sure it is loaded, and retry the operation\n'
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor Traceback (most recent call last):
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/agent_base_vendor.py", line 482, in heartbeat
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor self.continue_deploy(task)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic_lib/metrics.py", line 61, in wrapped
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor result = f(*args, **kwargs)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/conductor/task_manager.py", line 138, in wrapper
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor return f(*args, **kwargs)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 381, in continue_deploy
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = do_agent_iscsi_deploy(task, self._client)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic_lib/metrics.py", line 61, in wrapped
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor result = f(*args, **kwargs)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 313, in do_agent_iscsi_deploy
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = continue_deploy(task, iqn=iqn, address=address)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic_lib/metrics.py", line 61, in wrapped
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor result = f(*args, **kwargs)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 250, in continue_deploy
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor _fail_deploy(task, msg)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 227, in _fail_deploy
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor raise exception.InstanceDeployFailure(msg)
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor InstanceDeployFailure: Deploy failed for instance 3bef68bf-dfe3-41b3-b3c9-0eee830cce3e. Error: Unexpected error while running command.
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p 10.4.100.16:3260
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor Exit code: 12
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor Stdout: u''
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor Stderr: u'iscsiadm: iSCSI driver tcp is not loaded. Load the module then retry the command.\n\niscsiadm: Could not perform SendTargets discovery: iSCSI driver not found. Please make sure it is loaded, and retry the operation\n'
2017-02-22 22:26:02.265 7 ERROR ironic.drivers.modules.agent_base_vendor

Yih Leong Sun (yihleong)
description: updated
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

Yes. ironic require this module.

modprobe iscsi_tcp

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/452207

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla (master)

Reviewed: https://review.openstack.org/452207
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=1c3336c8c9c1a77964041730973b4839c9a4c441
Submitter: Jenkins
Branch: master

commit 1c3336c8c9c1a77964041730973b4839c9a4c441
Author: Mark Goddard <email address hidden>
Date: Fri Mar 31 14:32:43 2017 +0100

    Use separate sudoers for ironic conductor modprobe

    The original fix (8b101b28a1040fd6b4753c09364106274d7e6e09) for bug
    1676466 added unnecessary entries to the sudoers file in the
    ironic-base image. These included a rootwrap entry pointing to the
    virtualenv used by source type images (not present in binary type
    images) and a modprobe iscsi_tcp which is only required by the
    ironic-conductor image.

    This change adds a single sudoers file for the iscsi_tcp modprobe
    to the ironic-conductor image and reverts to the common pattern of
    adding a sudoers file to ironic-base only for source type images.

    Change-Id: I89f1c4bd741de9ba184f14fcbcb708636616e420
    Closes-bug: #1678143
    Related-bug: #1676466
    Related-bug: #1667864

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla (stable/ocata)

Related fix proposed to branch: stable/ocata
Review: https://review.openstack.org/557986

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla (stable/ocata)

Reviewed: https://review.openstack.org/557986
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=c67d4f9fb4a4522e8fa36871d81645cf0f6bedfd
Submitter: Zuul
Branch: stable/ocata

commit c67d4f9fb4a4522e8fa36871d81645cf0f6bedfd
Author: Mark Goddard <email address hidden>
Date: Fri Mar 31 14:32:43 2017 +0100

    Use separate sudoers for ironic conductor modprobe

    The original fix (8b101b28a1040fd6b4753c09364106274d7e6e09) for bug
    1676466 added unnecessary entries to the sudoers file in the
    ironic-base image. These included a rootwrap entry pointing to the
    virtualenv used by source type images (not present in binary type
    images) and a modprobe iscsi_tcp which is only required by the
    ironic-conductor image.

    This change adds a single sudoers file for the iscsi_tcp modprobe
    to the ironic-conductor image and reverts to the common pattern of
    adding a sudoers file to ironic-base only for source type images.

    Change-Id: I89f1c4bd741de9ba184f14fcbcb708636616e420
    Closes-bug: #1678143
    Related-bug: #1676466
    Related-bug: #1667864
    (cherry picked from commit 1c3336c8c9c1a77964041730973b4839c9a4c441)

tags: added: in-stable-ocata
Changed in kolla:
status: New → Fix Released
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.