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 <[email protected]> --- 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/04/35104/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/35104 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: master Gerrit-Owner: Sandro Bonazzola <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
