Add fixes for power operations
Fixes applies to 'Power on', 'Warm reboot', 'Orderly shutdown',
and 'Immediate shutdown' power operations. Fixes include:
- Verifying that the chassis and host transition through the
expected states for each power operation. During which time
a spinner will be displayed. A timeout of 5 minutes for each
state transition has been added.
- Displaying the current state of the host in the 'Server power'
and 'Current status' bar. The state displayed will change as
the host transition through different states even as the
spinner continues to spin.
- Displaying an error pop-up with reason for failure when the
power operation fails.
Resolves openbmc/openbmc#2758
Resolves openbmc/openbmc#2787
Resolves openbmc/openbmc#2803
Change-Id: I514e030f9df7bd4d8b53634408f0449cd9abada9
Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
diff --git a/app/server-control/controllers/bmc-reboot-controller.js b/app/server-control/controllers/bmc-reboot-controller.js
index f5e0923..3106823 100644
--- a/app/server-control/controllers/bmc-reboot-controller.js
+++ b/app/server-control/controllers/bmc-reboot-controller.js
@@ -27,7 +27,7 @@
$scope.confirm = true;
};
$scope.reboot = function(){
- dataService.setBootingState();
+ dataService.setUnreachableState();
APIUtils.bmcReboot(function(response){
//@NOTE: using common event to reload server status, may be a better event listener name?
$scope.$emit('user-logged-in',{});