Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1220137

Summary: [hosted-engine-setup] [FC support] In case there are no LUNs exposed to the host, fc_get_lun_list is called Infinitely
Product: [Retired] oVirt Reporter: Elad <ebenahar>
Component: ovirt-hosted-engine-setupAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: medium    
Version: 3.6CC: acanan, bugs, ecohen, gklein, lsurette, rbalakri, sbonazzo, yeylon, ylavi
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: ovirt-3.6.0-alpha1 Doc Type: Bug Fix
Doc Text:
Cause: FC LUN selection was in a loop till the user select a valid one. If no one was available it was lopping forever. Consequence: It was looping forever Fix: Breaking the loop if no valid LUN is available. Result: It reports an error if no valid FC LUN is available.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-04 13:57:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1153278, 1234915    
Attachments:
Description Flags
/var/log/ from the host
none
/var/log/ from the host (new) none

Description Elad 2015-05-10 11:39:56 UTC
Created attachment 1023949 [details]
/var/log/ from the host

Description of problem:
My host is connected to the storage server by FC, it's logged-in and zoned in the FC switch and registered in the storage server. No LUNs are exposed to the host.
Initiated hosted-engine --deploy and picked FC. I got infinite errors, the setup wasn't aborted automatically

Version-Release number of selected component (if applicable):
ovirt-3.6.0-1
ovirt-hosted-engine-setup-1.3.0-0.0.master.20150401110307.git9665976.el7.noarch


How reproducible:
Always

Steps to Reproduce:
1. Host logged-in and zoned in the FC switch and registered in the storage server. No LUNs exposed to the host
2. Initiate hosted-engine --deploy, pick fc
3.

Actual results:
Setup throws infinite errors, the setup isn't aborted automatically

[ INFO  ] Stage: Environment customization
         
          --== STORAGE CONFIGURATION ==--
         
          During customization use CTRL-D to abort.
          Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: fc
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Cannot find any LUN on the selected target

2015-05-10 14:13:35 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:218 DIALOG:RECEIVE    fc
2015-05-10 14:13:35 DEBUG otopi.context context.dumpEnvironment:499 ENVIRONMENT DUMP - BEGIN
2015-05-10 14:13:35 DEBUG otopi.context context.dumpEnvironment:509 ENV OVEHOSTED_STORAGE/domainType=str:'fc'
2015-05-10 14:13:35 DEBUG otopi.context context.dumpEnvironment:513 ENVIRONMENT DUMP - END
2015-05-10 14:13:35 DEBUG otopi.context context._executeMethod:141 Stage customization METHOD otopi.plugins.ovirt_hosted_engine_setup.storage.nfs.Plugin._customization
2015-05-10 14:13:35 DEBUG otopi.context context._executeMethod:147 condition False
2015-05-10 14:13:35 DEBUG otopi.context context._executeMethod:141 Stage customization METHOD otopi.plugins.ovirt_hosted_engine_setup.storage.blockd.Plugin._customization
2015-05-10 14:13:35 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:35 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:35 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:35 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:35 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:35 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:35 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:35 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:36 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:36 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:36 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:36 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:36 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:36 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:36 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:36 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:36 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:36 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:37 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:37 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:37 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:37 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:37 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:37 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:37 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:37 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:38 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:38 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:38 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:38 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:38 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:38 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:38 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:38 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:38 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:38 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:39 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:39 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:39 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:39 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:39 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}
2015-05-10 14:13:39 ERROR otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._customize_lun:190 Cannot find any LUN on the selected target
2015-05-10 14:13:39 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.blockd blockd._fc_get_lun_list:360 {'status': {'message': 'OK', 'code': 0}, 'devList': []}



Expected results:
In case no LUNs are available, the deployment should be aborted nicely.

Additional info:
/var/log/ from the host

Comment 2 Elad 2015-05-10 13:38:20 UTC
Created attachment 1023989 [details]
/var/log/ from the host (new)

Sorry, wrong logs uploaded, uploading the relevant ones

Comment 3 Elad 2015-08-10 09:34:15 UTC
In case no LUNs are exposed to the host by FC, picking FC as the storage type during HE deployment causes the it fail nicely:


Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: fc
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Failed to execute stage 'Environment customization': No LUN is accessible on FC
[ INFO  ] Stage: Clean up


Verified using ovirt-3.6.0-5
ovirt-hosted-engine-setup-1.3.0-0.0.master.20150729070044.git26149d7.el7.noarch

Comment 4 Sandro Bonazzola 2015-11-04 13:57:50 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.