Sahina Bose has uploaded a new change for review. Change subject: core,webadmin: Host reboot false for gluster only host ......................................................................
core,webadmin: Host reboot false for gluster only host Add host flow sets requiresRebootAfterInstallation to false in case of gluster only host. Change-Id: I8c52e32de914b21998fa334088b302ec70aef49f Signed-off-by: Sahina Bose <sab...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/84/13384/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java index 3b8157a..7860ea0 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostListModel.java @@ -93,6 +93,7 @@ private UICommand privateEditCommand; + @Override public UICommand getEditCommand() { return privateEditCommand; @@ -835,6 +836,9 @@ parameters.setvds(host); parameters.setRootPassword((String) model.getRootPassword().getEntity()); parameters.setOverrideFirewall((Boolean) model.getOverrideIpTables().getEntity()); + if (!((VDSGroup) model.getCluster().getSelectedItem()).supportsVirtService()) { + parameters.setRebootAfterInstallation(false) ; + } Frontend.RunAction(VdcActionType.AddVds, parameters, new IFrontendActionAsyncCallback() { @@ -856,6 +860,9 @@ parameters.setVdsId(host.getId()); parameters.setRootPassword(""); //$NON-NLS-1$ parameters.setInstallVds(false); + if (!((VDSGroup) model.getCluster().getSelectedItem()).supportsVirtService()) { + parameters.setRebootAfterInstallation(false) ; + } if (!oldClusterId.equals(newClusterId)) { -- To view, visit http://gerrit.ovirt.org/13384 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8c52e32de914b21998fa334088b302ec70aef49f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Sahina Bose <sab...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches