[RFE] Support remote iSCSI shares as root devices via iscsistart

Bug #1590606 reported by Yossi Ovadia
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ironic-python-agent
Fix Released
Wishlist
Yossi Ovadia

Bug Description

In case of diskless hardware with remove iscsi devices , introspection fails with 'missing local_gb' and exited.

I found out that it is required to execute iscsistart -b on the servers to connect to the iscsi target and then for the 'disks' device to appear.

parted -l before issuing iscsistart return nothing.

issuing the command :
[root@localhost ~]# iscsistart -b
iscsistart: Can not bind IPC socket
iscsistart: Could not setup mgmt ipc
iscsistart: Logging into iqn.1992-04.com.emc:cx.ckm00153300462.a4 172.30.53.10:3260,1

And parted -l now shows all disks.

I have verified that introspection succeeded when i've added utils.execute('iscsistart', '-f') just before _udev_settle ( hardware.py )

Sample inspector_data after the above :
..
"root_disk": {
        "model": "RAID 0",
        "name": "/dev/sdc",
        "rotational": true,
        "serial": "6006016007903d00781cbd7de7f0e511",
        "size": 42192470016,
        "vendor": "DGC",
        "wwn": "0x6006016007903d00",
        "wwn_vendor_extension": "0x781cbd7de7f0e511",
        "wwn_with_extension": "0x6006016007903d00781cbd7de7f0e511"
    }

Sample iscsistart -f
[root@localhost ~]# iscsistart -f
# BEGIN RECORD 6.2.0.873-30
iface.initiatorname = iqn.1990-07.com.emulex:blade04
iface.transport_name = be2iscsi
iface.hwaddress = fc:15:b4:0b:1e:71
iface.bootproto = STATIC
node.name = iqn.1992-04.com.emc:cx.ckm00153300462.a4
node.conn[0].address = 172.30.53.10
node.conn[0].port = 3260
# END RECORD
[root@localhost ~]# echo $?
0

PS -
I have tried to add - iscsi_firmware &| rd.iscsi.firmware=1 to boot kernel and it did not changed the behavioural.

Tags: rfe
Yossi Ovadia (jabadia)
Changed in ironic:
assignee: nobody → Yossi Ovadia (jabadia)
Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi, thanks for your report! Do I get it right that you need both iscsistart -b and iscsistart -f for it to work?

affects: ironic → ironic-python-agent
Changed in ironic-python-agent:
status: New → Incomplete
Revision history for this message
Yossi Ovadia (jabadia) wrote :

Hi,
iscsistart -f will 'Print the iBFT or OF info to STDOUT' ( from man page )

and iscsistart -b will 'Create a session to the target using the iBFT or OF info'

So what I had in mind is to use iscsistart -f and only if it show existing iscsi connection, issue the -b command.

Dmitry Tantsur (divius)
Changed in ironic-python-agent:
status: Incomplete → Triaged
summary: - Introspection fails with - missing: ['local_gb']' in case of remote (via
- bios) iscsi
+ [RFE] Support remove iSCSI shares as root devices via iscsistart
Changed in ironic-python-agent:
importance: Undecided → Wishlist
tags: added: rfe
removed: iscsi
Dmitry Tantsur (divius)
summary: - [RFE] Support remove iSCSI shares as root devices via iscsistart
+ [RFE] Support remote iSCSI shares as root devices via iscsistart
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-python-agent (master)

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

Changed in ironic-python-agent:
status: Triaged → In Progress
Changed in ironic-python-agent:
assignee: Yossi Ovadia (jabadia) → Jay Faulkner (jason-oldos)
Revision history for this message
Yossi Ovadia (jabadia) wrote :

Hi Jay, Already started working on this one.
Thanks.

Changed in ironic-python-agent:
assignee: Jay Faulkner (jason-oldos) → Yossi Ovadia (jabadia)
Changed in ironic-python-agent:
assignee: Yossi Ovadia (jabadia) → Jay Faulkner (jason-oldos)
Revision history for this message
Jay Faulkner (jason-oldos) wrote :

https://review.openstack.org/327891 had the wrong bug number in it, this is why it keeps being reassigned to me. Apologies.

Changed in ironic-python-agent:
assignee: Jay Faulkner (jason-oldos) → Yossi Ovadia (jabadia)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/327807
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=90424fad0af9cda1c14bd5d4a7c0f397705c1751
Submitter: Jenkins
Branch: master

commit 90424fad0af9cda1c14bd5d4a7c0f397705c1751
Author: Yossi Ovadia <email address hidden>
Date: Thu Jun 9 09:23:29 2016 -0700

    Handle diskless hardware connected to remote iscsi

    It is required to issue iscsistart -b on those hardware in order for
    /dev/sda /dev/sdb etc to be exposed to the OS.

    On this type of hw, without the fix
    introspection fails with - missing: ['local_gb']' err.

    Change-Id: If6667b123e9b890d97c03612596fb78ee2b0ae85
    Closes-Bug: 1590606

Changed in ironic-python-agent:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ironic-python-agent 1.5.0

This issue was fixed in the openstack/ironic-python-agent 1.5.0 release.

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.