Jiří Moskovčák has uploaded a new change for review.

Change subject: properly set the FilesystemBackend parameters when using NFS
......................................................................

properly set the FilesystemBackend parameters when using NFS

Change-Id: Ie4a00ebbb760738bcae11a527c671ee7f715313e
Bug-Url: https://bugzilla.redhat.com/1125244
Signed-off-by: Jiri Moskovcak <jmosk...@redhat.com>
---
M ovirt_hosted_engine_ha/agent/hosted_engine.py
1 file changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha 
refs/changes/95/30895/1

diff --git a/ovirt_hosted_engine_ha/agent/hosted_engine.py 
b/ovirt_hosted_engine_ha/agent/hosted_engine.py
index 5dcf0cb..99944dd 100644
--- a/ovirt_hosted_engine_ha/agent/hosted_engine.py
+++ b/ovirt_hosted_engine_ha/agent/hosted_engine.py
@@ -395,8 +395,14 @@
         dom_type = self._config.get(config.ENGINE, config.DOMAIN_TYPE)
 
         # use vdsm type as the default
-        storage_backend_type = StorageBackendTypes.VdsmBackend
+
+        storage_backend_type = StorageBackendTypes.FilesystemBackend
+        storage_params = {
+            'sd_uuid': sd_uuid,
+            'dom_type': dom_type
+        }
         try:
+            storage_backend_type = StorageBackendTypes.VdsmBackend
             storage_params = {
                 'sp_uuid': sp_uuid,
                 'sd_uuid': sd_uuid,
@@ -428,7 +434,6 @@
             self._log.warn("Can't read volume uuids from config "
                            "-> assuming fs based storage: '{0}'"
                            .format(str(_ex)))
-            storage_backend_type = StorageBackendTypes.FilesystemBackend
 
         for attempt in range(0, constants.WAIT_FOR_STORAGE_RETRY):
             try:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4a00ebbb760738bcae11a527c671ee7f715313e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Jiří Moskovčák <jmosk...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to