Change in vdsm[master]: gluster: Use provided backup-volfile-servers

ahino at redhat.com ahino at redhat.com
Thu Jun 4 09:41:03 UTC 2015


Ala Hino has uploaded a new change for review.

Change subject: gluster: Use provided backup-volfile-servers
......................................................................

gluster: Use provided backup-volfile-servers

Use backup-volfile-servers if provided by the admin rather than getting it from
volume info.

Change-Id: I28f833871e171cf0374dd4d248513f3e2d9916d7
Signed-off-by: Ala Hino <ahino at redhat.com>
---
M vdsm/storage/storageServer.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/32/41932/1

diff --git a/vdsm/storage/storageServer.py b/vdsm/storage/storageServer.py
index febf375..f1b4b50 100644
--- a/vdsm/storage/storageServer.py
+++ b/vdsm/storage/storageServer.py
@@ -271,7 +271,10 @@
         glusterMountOptions = self._getGlusterMountOptions(volume,
                                                            glusterServer,
                                                            volInfo)
-        self._options += glusterMountOptions
+
+        if "backup-volfile-servers" not in self._options:
+            self._options += glusterMountOptions
+
         super(GlusterFSConnection, self).connect()
 
     def _getReplicaType(self, volume, volInfo):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I28f833871e171cf0374dd4d248513f3e2d9916d7
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ala Hino <ahino at redhat.com>


More information about the vdsm-patches mailing list