Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1411366 - introspection and boot initramfs images don't include iscsi drivers
introspection and boot initramfs images don't include iscsi drivers
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-image-elements (Show other bugs)
8.0 (Liberty)
x86_64 Linux
medium Severity medium
: rc
: 11.0 (Ocata)
Assigned To: Yolanda Robla
Alexander Chuzhoy
: OtherQA, Triaged
Depends On:
Blocks: 1276147 1283436 1467377
  Show dependency treegraph
 
Reported: 2017-01-09 09:52 EST by Yuval Adar
Modified: 2018-02-06 15:10 EST (History)
11 users (show)

See Also:
Fixed In Version: openstack-tripleo-image-elements-6.0.0-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1467377 (view as bug list)
Environment:
Last Closed: 2017-05-17 15:55:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 420765 None None None 2017-03-24 11:56 EDT
Red Hat Product Errata RHEA-2017:1245 normal SHIPPED_LIVE Red Hat OpenStack Platform 11.0 Bug Fix and Enhancement Advisory 2017-05-17 19:01:50 EDT

  None (edit)
Description Yuval Adar 2017-01-09 09:52:35 EST
Description of problem:
be2iscsi driver is not included in introspection and boot initramfs images for overcloud

Version-Release number of selected component (if applicable):


How reproducible:
Introspection fails on diskless nodes with iscsi attached root disk when using default introspection image


Additional info:
Issue was solved by rebuilding the introspection and boot images using DIB.
drivers atted to images:
be2iscsi
dm_multipath
iscsi_target_mod

rpm's added to overcloud image:
iscsi-initiator-utils
openstack-ironic-python-agent

Patch added to ironic_python_agent:

--- /lib/python2.7/site-packages/ironic_python_agent/hardware.py        2016-07-18 22:02:53.668820422 -0400
+++ /lib/python2.7/site-packages/ironic_python_agent/hardware.py        2016-07-18 14:40:33.578307259 -0400
@@ -52,6 +52,27 @@
     except IOError:
         LOG.warning("Can't find the device vendor for device %s", dev)

+def _check_for_iscsi():
+    """iscsi detection
+    iscsistart -f will print the iBFT or OF info.
+    In case such connection exists, we would like to issue
+    iscsistart -b to create a session to the target.
+    - if no connection is detected we simply return.
+    """
+    if os.path.exists('/var/run/iscsistart.pid'):
+        return
+    else :
+        utils.execute('/bin/touch','/var/run/iscsistart.pid')
+    try:
+        utils.execute('iscsistart', '-f')
+    except processutils.ProcessExecutionError as e:
+        LOG.info('No iscsi connection detected. Skipping iscsi.')
+        return
+    try:
+        utils.execute('iscsistart', '-b')
+    except processutils.ProcessExecutionError as e:
+        LOG.warning('Something went wrong executing iscsistart -b'
+                    'Error: %s', e)

 def _udev_settle():
     """Wait for the udev event queue to settle.
@@ -383,6 +404,7 @@

     def evaluate_hardware_support(self):
         # Do some initialization before we declare ourself ready
+        _check_for_iscsi()
         self._wait_for_disks()
         return HardwareSupport.GENERIC
Comment 1 Yolanda Robla 2017-01-11 07:03:06 EST
Just wanted to note that check_for_iscsi code is already present on newton, so this customization is only needed for OSP8.
Comment 2 Yolanda Robla 2017-01-12 07:12:23 EST
I created bug https://bugs.launchpad.net/tripleo/+bug/1655681 to reflect the need for ramdisk update, either in deployment image and later on the initramfs
Comment 3 Yolanda Robla 2017-01-12 09:59:49 EST
https://review.openstack.org/#/c/419486
Comment 4 Yolanda Robla 2017-01-16 05:50:07 EST
Also need to clarify that this is needed on the ironic-python-image, not in overcloud-full
Comment 5 Yolanda Robla 2017-01-17 11:36:36 EST
I need feedback on https://review.openstack.org/420765 , that is adding an element to update dracut in the agent and enable drivers
Comment 6 Yolanda Robla 2017-01-18 06:03:55 EST
Review of the patch was done by Yuval
Comment 7 Yolanda Robla 2017-02-02 05:14:58 EST
Patch landed
Comment 9 Yolanda Robla 2017-03-27 11:34:24 EDT
The latest puddle includes that patch.
Comment 11 errata-xmlrpc 2017-05-17 15:55:02 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1245

Note You need to log in before you can comment on or make changes to this bug.