Bug 1352601

Summary: hosted-engine --deploy fails after selecting FC as strorage type
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Christian Kalkhoff <me>
Component: Plugins.BlockAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.0.0.1CC: acanan, bugs, ebenahar, emahoney, jbelka, sbonazzo, stirabos, tnisan, ylavi
Target Milestone: ovirt-4.0.1Keywords: ZStream
Target Release: 2.0.1Flags: rule-engine: ovirt-4.0.z+
rule-engine: blocker+
ylavi: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-04 13:33:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1306965    
Attachments:
Description Flags
VDMS-Logs
none
hosted-engine log
none
hosted-engine answers none

Description Christian Kalkhoff 2016-07-04 12:16:56 UTC
Created attachment 1176018 [details]
VDMS-Logs

I cannot setup hosted-engine with FC as storage type. The script dies after selecting FC with a KeyError.

I run a minimal CentOS 7.2 with the upstream yum-Repos for ovirt-release40 (the error also occurs with the versions from ovirt-release40-pre.


How reproducible: Always


Steps to Reproduce:
1. Install CentOS 7.2 Minimal on a host with FC-LUNs
2. Start hosted-engine --deploy
3. Select fc for storage type

Actual results: The script dies


Expected results: A list of LUNs is presented to select from

Comment 1 Christian Kalkhoff 2016-07-04 12:20:22 UTC
Output of the hosted_engine:

[ INFO  ] Stage: Initializing
[ INFO  ] Generating a temporary VNC password.
[ INFO  ] Stage: Environment setup
          During customization use CTRL-D to abort.
          Continuing will configure this host for serving as hypervisor and create a VM where you have to install the engine afterwards.
          Are you sure you want to continue? (Yes, No)[Yes]: 
[ INFO  ] Hardware supports virtualization
          Configuration files: []
          Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160704141921-gu74rf.log
          Version: otopi-1.5.0 (otopi-1.5.0-1.el7.centos)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[WARNING] Cannot locate gluster packages, Hyper Converged setup support will be disabled.
[ INFO  ] Please abort the setup and install vdsm-gluster, gluster-server >= 3.7.2 and restart vdsmd service in order to gain Hyper Converged setup support.
[ INFO  ] Stage: Environment customization
         
          --== STORAGE CONFIGURATION ==--
         
          Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: fc
[ ERROR ] Failed to execute stage 'Environment customization': 'devList'
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20160704141931.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed: this system is not reliable, please check the issue, fix and redeploy
          Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160704141921-gu74rf.log

Comment 2 Christian Kalkhoff 2016-07-04 12:25:48 UTC
Created attachment 1176046 [details]
hosted-engine log

Comment 3 Christian Kalkhoff 2016-07-04 12:26:17 UTC
Created attachment 1176048 [details]
hosted-engine answers

Comment 4 Christian Kalkhoff 2016-07-04 14:28:48 UTC
After applying the commit to my installation, I was able to successfully run hosted-engine and deploy it on FC.

So can be closed.

Comment 5 Simone Tiraboschi 2016-07-04 15:03:18 UTC
(In reply to Christian Kalkhoff from comment #4)
> After applying the commit to my installation, I was able to successfully run
> hosted-engine and deploy it on FC.
> 
> So can be closed.

Thanks Christian but we have to follow the full bug flow to be sure that the fix comes with the next release.

Comment 6 Yaniv Lavi 2016-07-06 09:00:27 UTC
Should this be MODIFIED?

Comment 7 Jiri Belka 2016-07-18 13:07:50 UTC
I was testing RHEL7 and ovirt 3.6 with FC luns and its migration to 4.0-snapshot on Wed July 13 and it worked fine.

Comment 9 Simone Tiraboschi 2016-07-21 13:32:05 UTC
*** Bug 1358505 has been marked as a duplicate of this bug. ***

Comment 10 Elad 2016-07-31 15:45:51 UTC
After selecting FC during hosted-engine deployment, the setup continues successfully.

[ INFO  ] Please abort the setup and install vdsm-gluster, gluster-server >= 3.7.2 and restart vdsmd service in order to gain Hyper Converged setup support.
[ INFO  ] Stage: Environment customization
         
          --== STORAGE CONFIGURATION ==--
         
          Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: fc
          The following luns have been found on the requested target:
                [1]     3514f0c5a5160027c       50GiB   XtremIO XtremApp
                        status: used, paths: 4 active
         
                [2]     3514f0c5a5160027b       50GiB   XtremIO XtremApp
                        status: used, paths: 4 active
         
                [3]     3514f0c5a5160027a       50GiB   XtremIO XtremApp
                        status: used, paths: 4 active
         
                [4]     3514f0c5a516002ae       150GiB  XtremIO XtremApp
                        status: used, paths: 4 active
         
                [5]     3514f0c5a51600278       150GiB  XtremIO XtremApp
                        status: used, paths: 4 active
         
                [6]     3514f0c5a51600289       150GiB  XtremIO XtremApp
                        status: used, paths: 4 active
         
          Please select the destination LUN (1, 2, 3, 4, 5, 6) [1]: 4



=============================
Tested using:
ovirt-hosted-engine-setup-2.0.1.3-1.el7ev.noarch