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 re-installed even when the host does not require a reboot the host should go to maintenance. Change-Id: I6dbe7f492e7202b46f993d6ae3ac14714e39d768 Bug-Url: https://bugzilla.redhat.com/1073070 Signed-off-by: Ravi Nori <[email protected]> --- 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/84/27684/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 8aa943f9..0669240 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 @@ -253,7 +253,11 @@ if (!configureNetworkUsingHostDeploy) { configureManagementNetwork(); } - setVdsStatus(VDSStatus.Initializing); + if (VDSStatus.Maintenance.equals(vdsInitialStatus)) { + setVdsStatus(VDSStatus.Maintenance); + } else { + setVdsStatus(VDSStatus.Initializing); + } break; } @@ -294,7 +298,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/27684 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6dbe7f492e7202b46f993d6ae3ac14714e39d768 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.4 Gerrit-Owner: Ravi Nori <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
