Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: setup: pass domain type to mount
......................................................................

packaging: setup: pass domain type to mount

while validating the domain, pass the domain type to
mount allowing to mount correctly glusterfs domains.

Change-Id: I2a297ce3b308b4d8fb4e32cd8ee54461b7f38dc7
Reported-By: Oved Ourfalli <ov...@redhat.com>
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
---
M src/plugins/ovirt-hosted-engine-setup/storage/storage.py
1 file changed, 8 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/69/17969/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py 
b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py
index f60c2f1..2dbf706 100644
--- a/src/plugins/ovirt-hosted-engine-setup/storage/storage.py
+++ b/src/plugins/ovirt-hosted-engine-setup/storage/storage.py
@@ -66,10 +66,11 @@
         self.domain_exists = False
         self.pool_exists = False
 
-    def _mount(self, path, connection):
+    def _mount(self, path, connection, domain_type):
         self.execute(
             (
                 self.command.get('mount'),
+                '-t%s' % domain_type,
                 connection,
                 path
             ),
@@ -174,10 +175,10 @@
                             _('Invalid value for Host ID: must be integer')
                         )
 
-    def _validateDomain(self, connection):
+    def _validateDomain(self, connection, domain_type):
         path = tempfile.mkdtemp()
         try:
-            self._mount(path, connection)
+            self._mount(path, connection, domain_type)
             self._checker.check_valid_path(path)
             self._checker.check_base_writable(path)
             self._checker.check_available_space(
@@ -538,7 +539,10 @@
                 self._validateDomain(
                     connection=self.environment[
                         ohostedcons.StorageEnv.STORAGE_DOMAIN_CONNECTION
-                    ]
+                    ],
+                    domain_type=self.environment[
+                        ohostedcons.StorageEnv.DOMAIN_TYPE
+                    ],
                 )
 
                 validDomain = True


-- 
To view, visit http://gerrit.ovirt.org/17969
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a297ce3b308b4d8fb4e32cd8ee54461b7f38dc7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to