Ravi Nori has uploaded a new change for review. Change subject: engine : Upgrading a hypervisor automatically puts it into an Up state ......................................................................
engine : Upgrading a hypervisor automatically puts it into an Up state When a host is put in maintenance and is reinstalled even when the host does not require a reboot the host should go to maintenance. Change-Id: Idf6e29258830ef170909125d4e5ea69286128dfd Bug-Url: https://bugzilla.redhat.com/1073070 Signed-off-by: Ravi Nori <rn...@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InstallVdsCommand.java 1 file changed, 10 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/93/27393/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InstallVdsCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InstallVdsCommand.java index 33a3326..540ab35 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InstallVdsCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InstallVdsCommand.java @@ -240,7 +240,11 @@ if (!configureNetworkUsingHostDeploy) { configureManagementNetwork(); } - setVdsStatus(VDSStatus.Initializing); + if (VDSStatus.Maintenance.equals(vdsInitialStatus)) { + setVdsStatus(VDSStatus.Maintenance); + } else { + setVdsStatus(VDSStatus.Initializing); + } break; } @@ -281,7 +285,11 @@ RunSleepOnReboot(getStatusOnReboot()); break; case Complete: - setVdsStatus(VDSStatus.Initializing); + if (VDSStatus.Maintenance.equals(vdsInitialStatus)) { + setVdsStatus(VDSStatus.Maintenance); + } else { + setVdsStatus(VDSStatus.Initializing); + } break; } -- To view, visit http://gerrit.ovirt.org/27393 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idf6e29258830ef170909125d4e5ea69286128dfd Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ravi Nori <rn...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches