Bug 1327516

Summary: Infinite loop trying to fix remote path on glusterFS storage domain
Product: [oVirt] ovirt-hosted-engine-ha Reporter: Simone Tiraboschi <stirabos>
Component: AgentAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 1.3.5.3CC: bugs, gklein, mavital, mgoldboi, sbonazzo, ylavi
Target Milestone: ovirt-3.6.6Keywords: Triaged
Target Release: 1.3.5.5Flags: rule-engine: ovirt-3.6.z+
rule-engine: blocker+
ylavi: planning_ack+
sbonazzo: devel_ack+
gklein: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A wrong check on the local mount point of glusterFS hosted-engine storage domains was causing an infinite loop.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-30 10:54:24 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: 1298693, 1327121, 1331526, 1333143, 1361547    
Attachments:
Description Flags
setup log none

Description Simone Tiraboschi 2016-04-15 09:50:37 UTC
Description of problem:
In the past we let the user specify a path for file based (NFS or gluster) storage domains which includes a trailing '/'. This caused other issues (double mount point when the engine import it) and so we had a patch to evaluate the canonical path and eventually fix the mount point in the configuration file before trying again to connect it. Due to a bug in the evaluation of the canonical path for gluster volumes, it was looping forever on gluster deployed systems.


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

How reproducible:
100%

Steps to Reproduce:
1. deploy ovirt-hosted-engine on gluster
2. 
3.

Actual results:
ovirt-ha-agent is looping trying to fix gluster path in /etc/ovirt-hosted-engine/hosted-engine.conf

Expected results:
It should just fix once if and only if the entered path includes a trailing '/'

Additional info:

Comment 1 Simone Tiraboschi 2016-04-15 09:54:52 UTC
Also https://bugzilla.redhat.com/show_bug.cgi?id=1317699 can cause a simile behavior.

Comment 2 Artyom 2016-05-10 10:23:46 UTC
Created attachment 1155656 [details]
setup log

Verified on ovirt-hosted-engine-setup-1.3.6.1-1.el7ev.noarch
1) Deploy HE on the first host over glusterfs storage
2) Deploy HE on the additional host