Ala Hino has uploaded a new change for review.

Change subject: gluster: Set mount path based on gluster volume info
......................................................................

gluster: Set mount path based on gluster volume info

There are cases where gluter server and ovirt are configured
differently regarding ip addresses and domain names. To avoid
any issues that could happen due to this misconfiguration, we
have to use info retuned from gluster volume info to set the
mount path as well as the backup-volfile-servers.

Change-Id: Id3386b37cd407c52e1b8f38d54c236bffc143e2f
Signed-off-by: Ala Hino <ah...@redhat.com>
---
M vdsm/storage/storageServer.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/08/48308/1

diff --git a/vdsm/storage/storageServer.py b/vdsm/storage/storageServer.py
index 6636bd8..a6fe39b 100644
--- a/vdsm/storage/storageServer.py
+++ b/vdsm/storage/storageServer.py
@@ -336,6 +336,7 @@
             raise se.UnsupportedGlusterVolumeReplicaCountError(replicaCount)
 
     def _get_backup_servers_option(self):
+        self._volfileserver = self.volinfo['bricks'][0].split(":")[0]
         servers = [brick.split(":")[0] for brick in self.volinfo['bricks']]
         servers.remove(self._volfileserver)
         if not servers:


-- 
To view, visit https://gerrit.ovirt.org/48308
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3386b37cd407c52e1b8f38d54c236bffc143e2f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ala Hino <ah...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to