Bug 1228239 - HE deployment with exist VM, failed if used NFS storage path with trailing slash
Summary: HE deployment with exist VM, failed if used NFS storage path with trailing slash
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 3.5.3
Hardware: x86_64
OS: Linux
Target Milestone: ---
: 3.6.0
Assignee: Simone Tiraboschi
QA Contact: Artyom
Whiteboard: integration
Depends On:
Blocks: 1199907 1234289
TreeView+ depends on / blocked
Reported: 2015-06-04 13:04 UTC by Artyom
Modified: 2016-02-26 08:43 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: An NFS path with trailing slash was accepted as user input while is was than failing cause it didn't exactly match with VDSM output. Consequence: deploy was failing if the NFS path was ending with a '/' Fix: Better match user input and NFS output regardless of the trailing '/'. Result: Now it works with NFS patch with and without the trailing '/'
Clone Of:
: 1234289 (view as bug list)
Last Closed: 2015-09-01 11:40:54 UTC
oVirt Team: Integration
Target Upstream Version:

Attachments (Terms of Use)
setup log (272.18 KB, text/plain)
2015-06-04 13:04 UTC, Artyom
no flags Details

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0375 0 normal SHIPPED_LIVE ovirt-hosted-engine-setup bug fix and enhancement update 2016-03-09 23:48:34 UTC
oVirt gerrit 36307 0 None None None Never

Description Artyom 2015-06-04 13:04:47 UTC
Created attachment 1034713 [details]
setup log

Description of problem:
We have possibility to continue deployment with exist vm, how described in bug https://bugzilla.redhat.com/show_bug.cgi?id=1199907, but if first time that I run deployment I specify storage type NFS and storage path with trailing slash, second deployment will be failed with traceback:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line **FILTERED**42, in _executeMethod
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/storage/storage.py", line 942, in _misc
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/storage/storage.py", line 525, in _createStorageDomain
    raise RuntimeError(status['status']['message'])
RuntimeError: Storage domain already exists

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

How reproducible:

Steps to Reproduce:
1. Run first time hosted-engine --deploy with NFS storage and nfs path with trailing slash
2. Interrupt deployment after you finis setup of engine on VM
3. Try to deploy again the same vm like described in bug https://bugzilla.redhat.com/show_bug.cgi?id=1199907

Actual results:
Second deployment failed with traceback, looks like setup not find that already exist some storage under NFS path, because it have trailing slash

Expected results:
Deployment must success

Additional info:

Comment 3 Artyom 2015-09-01 11:40:54 UTC
Stop support of redeploy feature from 3.6 according to https://bugzilla.redhat.com/show_bug.cgi?id=1238709#c2

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