Iftekharul Islam | a1d238f | 2018-02-26 12:29:45 -0600 | [diff] [blame] | 1 | <loader loading="dataService.loading || loading"></loader> |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 2 | <div id="power-operations"> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 3 | <div class="row column"> |
Michael Davis | e126be7 | 2017-05-08 11:20:12 -0500 | [diff] [blame] | 4 | <h1>Server power operations</h1> |
Michael Davis | 706b75b | 2017-08-18 16:40:03 -0500 | [diff] [blame] | 5 | <div class="power__current-status page-header"> |
beccabroek | edf1ab4 | 2019-02-15 16:26:38 -0600 | [diff] [blame] | 6 | <h2 class="inline">Current status</h2> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 7 | <div class="power__status-log inline float-right">Last power operation at <span class="courier-bold">{{powerTime | localeDate}}</span></div> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 8 | </div> |
| 9 | </div> |
| 10 | <div class="row column"> |
CamVan Nguyen | 3490c0f | 2018-05-01 22:23:21 -0500 | [diff] [blame] | 11 | <div id="power-indicator-bar" class="power__indicator-bar" ng-class="{'power__state-on': dataService.server_state == 'Running', 'power__state-off': dataService.server_state == 'Off', 'power__state-indet': dataService.server_state == 'Standby', 'power__state-error': dataService.server_state == 'Quiesced'}"> |
Iftekharul Islam | 6ca92ed | 2017-09-06 10:46:11 -0500 | [diff] [blame] | 12 | <p class="inline">{{dataService.hostname}} - {{dataService.server_id}}</p> |
Iftekharul Islam | 7a5ce46 | 2018-03-21 14:25:20 -0500 | [diff] [blame] | 13 | <h3 class="power__state inline no-margin h3"><span>{{dataService.server_state | quiescedToError}}</span></h3> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 14 | </div> |
| 15 | </div> |
| 16 | <div class="row column"> |
| 17 | <div class="row column"> |
beccabroek | edf1ab4 | 2019-02-15 16:26:38 -0600 | [diff] [blame] | 18 | <h3 class="subhead">Select a power operation</h3> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 19 | </div> |
Iftekharul Islam | 0d02801 | 2018-02-23 14:16:12 -0600 | [diff] [blame] | 20 | <span class="inactive-message" ng-show="dataService.server_state == 'Unreachable'">There are no power operations to display while a power operation is in progress. When complete, any new power operations will be displayed here.</span> |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 21 | <!-- Power on displays only when server is shutdown --> |
Gunnar Mills | 11f3603 | 2019-05-17 14:54:30 -0500 | [diff] [blame] | 22 | <div class="row column power-option" ng-hide="dataService.server_state == 'Running' || dataService.server_state == 'Quiesced' || dataService.server_state == 'Unreachable'" ng-class="{disabled: dataService.server_unreachable || confirm || dataService.loading, transitionAll: confirm}"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 23 | <button id="power__power-on" class="btn btn-secondary" ng-click="powerOn()" role="button" ng-disabled="dataService.server_unreachable"> |
| 24 | <icon file="icon-power.svg"></icon>Power on |
| 25 | </button> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 26 | <p class="inline">Attempts to power on the server</p> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 27 | </div> |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 28 | <!-- Power reboot/shutdown options : when server is off all of these are hidden. When one option is selected, the others are disabled. --> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 29 | <div class="column power-option" ng-hide="dataService.server_state == 'Off' || dataService.server_state == 'Unreachable'" ng-class="{disabled: dataService.server_unreachable || (confirm && !confirmWarmReboot) || dataService.loading, transitionAll: confirm && confirmWarmReboot}"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 30 | <button id="power__warm-boot" class="btn btn-secondary" ng-click="warmRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"> |
| 31 | <icon file="icon-restart.svg"></icon>Warm reboot</button> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 32 | <p class="inline">Attempts to perform an orderly shutdown before restarting the server</p> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 33 | <confirm title="warm reboot" confirm="confirmWarmReboot" ng-show="confirmWarmReboot" callback="warmReboot"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 34 | </div> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 35 | <div class="column power-option" ng-hide="dataService.server_state == 'Off' || dataService.server_state == 'Unreachable'" ng-class="{disabled: dataService.server_unreachable || (confirm && !confirmColdReboot) || dataService.loading, transitionAll: confirm && confirmColdReboot}"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 36 | <button id="power__cold-boot" class="btn btn-secondary" ng-click="coldRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"> |
| 37 | <icon file="icon-restart.svg"></icon>Cold reboot</button> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 38 | <p class="inline">Shuts down the server immediately, then restarts it</p> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 39 | <confirm title="cold reboot" confirm="confirmColdReboot" ng-show="confirmColdReboot" cancel="coldbootCancel" callback="coldReboot"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 40 | </div> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 41 | <div class="column power-option" ng-hide="dataService.server_state == 'Off' || dataService.server_state == 'Unreachable'" ng-class="{disabled: dataService.server_unreachable || (confirm && !confirmOrderlyShutdown) || dataService.loading, transitionAll: confirm && confirmOrderlyShutdown}"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 42 | <button id="power__soft-shutdown" class="btn btn-secondary" ng-click="orderlyShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"> |
| 43 | <icon file="icon-power.svg"></icon>Orderly shutdown</button> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 44 | <p class="inline">Attempts to stop all software on the server before removing power</p> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 45 | <confirm title="orderly shutdown" confirm="confirmOrderlyShutdown" ng-show="confirmOrderlyShutdown" cancel="orderlyShutdownCancel" callback="orderlyShutdown"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 46 | </div> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 47 | <div class="column power-option" ng-hide="dataService.server_state == 'Off' || dataService.server_state == 'Unreachable'" ng-class="{disabled: dataService.server_unreachable || (confirm && !confirmImmediateShutdown) || dataService.loading, transitionAll: confirm && confirmImmediateShutdown}"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 48 | <button id="power__hard-shutdown" class="btn btn-secondary" ng-click="immediateShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"> |
| 49 | <icon file="icon-power.svg"></icon>Immediate shutdown</button> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 50 | <p class="inline">Removes power from the server without waiting for software to stop</p> |
Gunnar Mills | 6af5d29 | 2019-05-17 14:39:23 -0500 | [diff] [blame] | 51 | <confirm title="immediate shutdown" confirm="confirmImmediateShutdown" ng-show="confirmImmediateShutdown" cancel="immediatelyShutdownCancel" callback="immediateShutdown"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 52 | </div> |
| 53 | </div> |
Ed Tanous | bbcf670 | 2017-10-06 13:53:06 -0700 | [diff] [blame] | 54 | </div> |