1a1d238f3SIftekharul Islam<loader loading="dataService.loading || loading"></loader> 2cd789508SIftekharul Islam<div id="power-operations"> 3cd789508SIftekharul Islam <div class="row column"> 4e126be7aSMichael Davis <h1>Server power operations</h1> 5706b75b3SMichael Davis <div class="power__current-status page-header"> 6edf1ab46Sbeccabroek <h2 class="inline">Current status</h2> 76af5d294SGunnar Mills <div class="power__status-log inline float-right">Last power operation at <span class="courier-bold">{{powerTime | localeDate}}</span></div> 8cd789508SIftekharul Islam </div> 9cd789508SIftekharul Islam </div> 10cd789508SIftekharul Islam <div class="row column"> 113490c0fcSCamVan Nguyen <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'}"> 126ca92edcSIftekharul Islam <p class="inline">{{dataService.hostname}} - {{dataService.server_id}}</p> 137a5ce461SIftekharul Islam <h3 class="power__state inline no-margin h3"><span>{{dataService.server_state | quiescedToError}}</span></h3> 14cd789508SIftekharul Islam </div> 15cd789508SIftekharul Islam </div> 16cd789508SIftekharul Islam <div class="row column"> 17cd789508SIftekharul Islam <div class="row column"> 18edf1ab46Sbeccabroek <h3 class="subhead">Select a power operation</h3> 19cd789508SIftekharul Islam </div> 20*5ff98780SYoshie Muranaka <div ng-if="operationPending"> 21*5ff98780SYoshie Muranaka <span class="inactive-message">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> 22*5ff98780SYoshie Muranaka </div> 23*5ff98780SYoshie Muranaka <div ng-if="!operationPending"> 24cd789508SIftekharul Islam <!-- Power on displays only when server is shutdown --> 2511f36032SGunnar Mills <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}"> 26c86ce3c9SYoshie Muranaka <button id="power__power-on" class="btn btn-secondary" ng-click="powerOn()" role="button" ng-disabled="dataService.server_unreachable"> 27c86ce3c9SYoshie Muranaka <icon file="icon-power.svg"></icon>Power on 28c86ce3c9SYoshie Muranaka </button> 2946f0a1f8SMichael Davis <p class="inline">Attempts to power on the server</p> 30cd789508SIftekharul Islam </div> 31cd789508SIftekharul Islam <!-- Power reboot/shutdown options : when server is off all of these are hidden. When one option is selected, the others are disabled. --> 326af5d294SGunnar Mills <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}"> 33c86ce3c9SYoshie Muranaka <button id="power__warm-boot" class="btn btn-secondary" ng-click="warmRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"> 34c86ce3c9SYoshie Muranaka <icon file="icon-restart.svg"></icon>Warm reboot</button> 3546f0a1f8SMichael Davis <p class="inline">Attempts to perform an orderly shutdown before restarting the server</p> 366af5d294SGunnar Mills <confirm title="warm reboot" confirm="confirmWarmReboot" ng-show="confirmWarmReboot" callback="warmReboot"></confirm> 37cd789508SIftekharul Islam </div> 386af5d294SGunnar Mills <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}"> 39c86ce3c9SYoshie Muranaka <button id="power__cold-boot" class="btn btn-secondary" ng-click="coldRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"> 40c86ce3c9SYoshie Muranaka <icon file="icon-restart.svg"></icon>Cold reboot</button> 4146f0a1f8SMichael Davis <p class="inline">Shuts down the server immediately, then restarts it</p> 426af5d294SGunnar Mills <confirm title="cold reboot" confirm="confirmColdReboot" ng-show="confirmColdReboot" cancel="coldbootCancel" callback="coldReboot"></confirm> 43cd789508SIftekharul Islam </div> 446af5d294SGunnar Mills <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}"> 45c86ce3c9SYoshie Muranaka <button id="power__soft-shutdown" class="btn btn-secondary" ng-click="orderlyShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"> 46c86ce3c9SYoshie Muranaka <icon file="icon-power.svg"></icon>Orderly shutdown</button> 4746f0a1f8SMichael Davis <p class="inline">Attempts to stop all software on the server before removing power</p> 486af5d294SGunnar Mills <confirm title="orderly shutdown" confirm="confirmOrderlyShutdown" ng-show="confirmOrderlyShutdown" cancel="orderlyShutdownCancel" callback="orderlyShutdown"></confirm> 49cd789508SIftekharul Islam </div> 506af5d294SGunnar Mills <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}"> 51c86ce3c9SYoshie Muranaka <button id="power__hard-shutdown" class="btn btn-secondary" ng-click="immediateShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"> 52c86ce3c9SYoshie Muranaka <icon file="icon-power.svg"></icon>Immediate shutdown</button> 5346f0a1f8SMichael Davis <p class="inline">Removes power from the server without waiting for software to stop</p> 546af5d294SGunnar Mills <confirm title="immediate shutdown" confirm="confirmImmediateShutdown" ng-show="confirmImmediateShutdown" cancel="immediatelyShutdownCancel" callback="immediateShutdown"></confirm> 55cd789508SIftekharul Islam </div> 56cd789508SIftekharul Islam </div> 57cd789508SIftekharul Islam </div> 58*5ff98780SYoshie Muranaka</div> 59