Bug 1490202 - [downstream clone - 4.1.7] [iSCSI] ovirt-hosted-engine-setup fails if none of the discovered target is associated to the accessed portal
Summary: [downstream clone - 4.1.7] [iSCSI] ovirt-hosted-engine-setup fails if none of...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.1.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.1.7
: ---
Assignee: Simone Tiraboschi
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On: 1487560
Blocks: 1493544
TreeView+ depends on / blocked
 
Reported: 2017-09-11 05:29 UTC by rhev-integ
Modified: 2021-05-01 16:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, ovirt-hosted-engine-setup would fail due to a bad multipath configuration on SAN side if the user tries to access an iSCSI portal where iSCSI discovery finds the targets, but not one of them are associated with the accessed portal. This issue has now been fixed.
Clone Of: 1487560
Environment:
Last Closed: 2017-11-07 17:26:46 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3135 0 normal SHIPPED_LIVE ovirt-hosted-engine-setup bug fix update for RHV 4.1.7 2017-11-07 22:22:01 UTC
oVirt gerrit 81298 0 master MERGED storage: better validate iSCSI portal info 2020-12-15 08:50:49 UTC
oVirt gerrit 81625 0 ovirt-hosted-engine-setup-2.1 MERGED storage: better validate iSCSI portal info 2020-12-15 08:50:49 UTC

Description rhev-integ 2017-09-11 05:29:08 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1487560 +++
======================================================================

Description of problem:
ovirt-hosted-engine-setup is currently failing if, due to a bad multipath configuration on SAN side, the user tries to access an iSCSI portal where iSCSI discovery finds targets but not one of them is associated with the accessed portal.

Example:
2017-08-31 12:59:04 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ### Please specify the iSCSI portal IP address: 
2017-08-31 12:59:12 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:RECEIVE    192.168.96.205

2017-08-31 12:59:23 DEBUG otopi.plugins.gr_he_setup.storage.blockd blockd._iscsi_discovery:320 {'status': {'message': 'Done', 'code': 0}, 'items': [u'192.168.96.206:3260,2460 iqn.2007-11.***.************:************-01-v04c505ca8ddf8aed.000000a2.891a8f27', u'192.168.96.207:3260,2460 iqn.2007-11.***.************:************-01-v04c505ca8ddf8aed.000000a2.891a8f27', u'192.168.96.206:3260,2460 iqn.2007-11.***.************:************-02-v04c505ca8ddf8aed.000000a3.891a8f27', u'192.168.96.207:3260,2460 iqn.2007-11.***.************:************-02-v04c505ca8ddf8aed.000000a3.891a8f27']}
2017-08-31 12:59:23 DEBUG otopi.plugins.gr_he_setup.storage.blockd blockd._iscsi_discovery:337 found: []

And then the code fails on:
2017-08-31 12:45:23 DEBUG otopi.plugins.gr_he_setup.storage.blockd
blockd._iscsi_discovery:337 found: []
2017-08-31 12:45:23 DEBUG otopi.context context._executeMethod:142
method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 132,
in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-setup/storage/blockd.py",
line 611, in _customization
    default=valid_targets[0]
IndexError: list index out of range

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

How reproducible:
100%

Steps to Reproduce:
1. run hosted-engine-setup ad try to connect to an iSCSI portal that reports just targets associated to other portals
2.
3.

Actual results:
line 611, in _customization
    default=valid_targets[0]
IndexError: list index out of range

Expected results:
It loops till the user enters a valid configuration

Additional info:

(Originally by Simone Tiraboschi)

Comment 4 Nikolai Sednev 2017-09-26 15:37:50 UTC
Forth to our testing with Simone, we've got successfully deployed SHE over iSCSI and did not get this bug reproduced on latest ovirt-hosted-engine-setup-2.1.4-1.el7ev.noarch. Moving to verified. Please reopen if you still getting this issue.

Comment 6 errata-xmlrpc 2017-11-07 17:26:46 UTC
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/RHBA-2017:3135

Comment 7 Daniel Gur 2019-08-28 13:13:22 UTC
sync2jira

Comment 8 Daniel Gur 2019-08-28 13:17:35 UTC
sync2jira


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