Sandro Bonazzola has uploaded a new change for review.

Change subject: upgrade: allow to add host to updated cluster
......................................................................

upgrade: allow to add host to updated cluster

Fix "Answer file lacks lockspace UUIDs, please use an answer file
generated from the same version you are using on this additional host"
Error while adding a host 3.5 based to a NFS cluster upgraded from 3.4.

Change-Id: Id77da1857d379910b41764133eb5c0b82c5a3054
Bug-Url: https://bugzilla.redhat.com/1163385
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
(cherry picked from commit 8e42128172acf65aedec6668faa16cde0c34319c)
---
M src/plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py
1 file changed, 7 insertions(+), 3 deletions(-)


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

diff --git a/src/plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py 
b/src/plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py
index f4d1b6f..80bd992 100644
--- a/src/plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py
+++ b/src/plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py
@@ -79,9 +79,13 @@
 
     @plugin.event(
         stage=plugin.Stages.STAGE_VALIDATION,
-        condition=lambda self: self.environment[
-            ohostedcons.CoreEnv.IS_ADDITIONAL_HOST
-        ],
+        condition=lambda self: (
+            self.environment[ohostedcons.CoreEnv.IS_ADDITIONAL_HOST] and
+            self.environment[ohostedcons.StorageEnv.DOMAIN_TYPE] not in (
+                ohostedcons.DomainTypes.NFS3,
+                ohostedcons.DomainTypes.NFS4,
+            )
+        ),
         name=ohostedcons.Stages.LOCKSPACE_VALID,
     )
     def _validation(self):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id77da1857d379910b41764133eb5c0b82c5a3054
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: ovirt-hosted-engine-setup-1.2
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