Bug 1177270

Summary: [hosted-engine] [iSCSI support] [RHEL7] Deployment fails with " KeyError: 'pool' "
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-hosted-engine-setupAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED WORKSFORME QA Contact: Elad <ebenahar>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, didi, ecohen, gklein, iheim, lsurette
Target Milestone: ---Keywords: Regression
Target Release: 3.5.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-30 12:41:16 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:
Bug Depends On:    
Bug Blocks: 1164308, 1164311    
Description Flags
logs and answer file none

Description Elad 2014-12-25 14:49:42 UTC
Created attachment 973028 [details]
logs and answer file

Description of problem:
While using RHEL7 and iSCSI, the deployment fails with:

2014-12-25 16:43:46 DEBUG otopi.plugins.ovirt_hosted_engine_setup.storage.storage storage._getStorageDomainInfo:399 {'status': {'message': "Storage domain does not exist: ('17b65996-8de0-4ae1-840c-93165636cc3f',)"
, 'code': 358}}
2014-12-25 16:43:46 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/storage/storage.py", line 896, in _late_customization
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/storage/storage.py", line 304, in _getExistingDomain
    pool_list = domain_info['pool']
KeyError: 'pool'
2014-12-25 16:43:46 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Environment customization': 'pool'

Happens only using RHEL7 and iSCSI.
With RHEL6.6 host and iSCSI, hosted engine installation succeeds, also with RHEL7 using NFS.

Version-Release number of selected component (if applicable):
rhev 3.5 vt13.5

How reproducible:
Always, using RHEL7 and iSCSI

Steps to Reproduce:
1. Deploy hosted engine, pick iSCSI

Actual results:
Deployment fails with the mentioned error

Expected results:
Hosted-engine installation should succeed.

Additional info:
logs and answer file

Comment 1 Yedidyah Bar David 2014-12-30 12:41:16 UTC
Looking at the logs, it seems that the lun used was not empty.

I asked Elad and he failed to reproduce.

Please reopen if relevant. If the intention is to use a used lun, please state desired outcome.