Bug 1005767

Summary: Wrong parsing of the getStorageDomainInfo output on case of ISCSI domains are used.
Product: Red Hat Enterprise Virtualization Manager Reporter: Leonid Natapov <lnatapov>
Component: ovirt-hosted-engine-setupAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED UPSTREAM QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: acathrow, iheim, oschreib, pstehlik, sbonazzo, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: ovirt-hosted-engine-setup-1.0.0-0.4.beta.el6ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-16 09:23:57 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:

Description Leonid Natapov 2013-09-09 11:25:14 UTC
Description of problem:
when the ovirt-hosted-engine setup ask vdsm to list known domains it lists also iscsi ones. ISCSI output differes from NFS. We have a probkem to parse ISCSI output and therefore the setup fails with the following errror:
[ ERROR ] Failed to execute stage 'Environment customization': 'remotePath'
When the setup ask vdsm to list known domains it lists also iscsi ones and we fail to parse it.

That will not be an issue on fresh installations where no other domains exists

vdsm log:

getStorageDomainInfo:268 {'status': {'message': 'OK', 'code': 0}, 'info': {'uuid': '2c5db63b-64fa-4633-9e96-ad8b43368169
', 'vguuid': 'P5r0bB-n5j5-mLEx-5fGR-pqAZ-KZhA-lq84yP', 'lver': -1, 'state': 'OK', 'version': '3', 'role': 'Master', 'pool': ['c2b8fd64-0884-4140-90fc-c74a642b9840'], 'spm_id': -1, 'type': 'ISCSI', 'class': 'Data
', 'master_ver': 0, 'name': 'elad2'}}

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


How reproducible:


Steps to Reproduce:
1.Try to run ovirt-hosted-engine-setup on host that was previously connected to ISCSI domain.


Actual results:
installation fails.

Expected results:
installation succeeds.

Additional info:

Comment 1 Sandro Bonazzola 2013-09-09 11:27:17 UTC
Thanks, I've all the info needed.

Comment 2 Sandro Bonazzola 2013-09-11 08:37:16 UTC
patch pushed to upstream master:

previously the getStorageDomainInfo parser assumed that
remotePath was always defined in the dictionary returned
by the call to getStorageDomainInfo.
The key is not defined for iSCSI domains so now the
parser check for remotePath availability before
trying to use its value.

Comment 3 Sandro Bonazzola 2013-09-12 09:31:42 UTC
patch merged upstream master.

Comment 6 Charlie 2013-11-28 01:19:58 UTC
This bug is currently attached to errata RHBA-2013:15257. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to 
minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 7 Sandro Bonazzola 2013-12-05 10:48:38 UTC
hosted engine is a new package, does not need errata for specific bugs during its development.