summaryrefslogtreecommitdiffstats
path: root/app/server-control/controllers
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the version from each fileGunnar Mills2018-04-304-4/+0
| | | | | | | | Already have a Web UI version, no need to track the version of each file. These have not been getting updated. Change-Id: I1cd3a2c2d67b24ded5edcca9dbfd3f6806d93ed4 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add fixes for power operationsCamVan Nguyen2018-04-263-44/+129
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Add fixes for cold rebootIftekharul Islam2018-04-192-7/+83
| | | | | | | | | | | | | | | | This fixes the cold reboot issue with the following steps - It applies the command to shut off the chassis. - Then verify the chassis is off. It checks for every 5 seconds. During this time the spinner displays. A 5min timeout has been added. - Once the chassis is off, it turns on the host. fixes openbmc/openbmc#2795 Change-Id: I119a1c95e57c10ccee27be1512a1fc38cde307fa Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com> Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Do not display the 'Last power operation' timeCamVan Nguyen2018-04-131-0/+4
| | | | | | | | | | The 'Last power operation' time is incorrect. The time shown is the last refresh time instead of the last time a power operation was performed. We need to implement a REST call and back-end support to get the correct time of the last power operation. Change-Id: Ic81edf22bd3450b2558b66b7f911634122f86da0 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Do not display the 'BMC last reboot' timeCamVan Nguyen2018-04-131-0/+5
| | | | | | | | | The 'BMC last reboot' time is incorrect. The time shown is the last refresh time instead of the last BMC reboot time. We need to implement a REST call to get the real last reboot time from uptime. Change-Id: I4d0f609f4350563a1809ae119f12727ebd0bf1b1 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Changing the text Quiesced to ErrorIftekharul Islam2018-03-271-1/+1
| | | | | | | | | | As per discussion here openbmc/openbmc#2925 Changing the text Quiesced to Error Fixes openbmc/openbmc#2925 Change-Id: Icd360a91335c8dd77cfbde4faa868cce6a286e64 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Add appropriate message during server unreachable stateIftekharul Islam2018-03-071-3/+1
| | | | | | | | | | | | When system state is in Unreachable, there is no option under "Select a power operation. Adding the appropriate message according to the discussion in the fixes link below. fixes openbmc/openbmc#2843 Change-Id: Id0d1d74b2bb7012f1cb085262f5c0d2fece2ea62 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Remove trailing spaces from filesGunnar Mills2018-03-054-17/+17
| | | | | | Tested: Manually tested GUI for any regressions Change-Id: I8c0922b7bd67b03b07e8880bc4dba3b862220b33 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Warm Reboot should call the host reboot objectGunnar Mills2018-02-121-8/+4
| | | | | | | | | | | | | | | | From https://github.com/openbmc/docs/blob/master/host-management.md: To reboot the host: curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data": "xyz.openbmc_project.State.Host.Transition.Reboot"}' https://${bmc}/xyz/openbmc_project/state/host0/attr/RequestedHostTransition Resolves openbmc/openbmc#2797 Tested: Pointed the local GUI to a Witherspoon system and verfied the correct rest call was made and the system warm rebooted. Change-Id: If073ef4447b323777603e886668212bd04791eea Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Have Immediate Shutdown call the chassis objectGunnar Mills2018-02-121-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | "Immediate Shutdown" on the GUI should be a hard power off and differ from the "Orderly shutdown". From https://github.com/openbmc/docs/blob/master/host-management.md: To issue a hard power off (accomplished by powering off the chassis): curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT \ -d '{"data": "xyz.openbmc_project.State.Chassis.Transition.Off"}' \ https://${bmc}/xyz/openbmc_project/state/chassis0/attr/RequestedPowerTransition There was already an unused "chassisPowerOff" function, reworked it to call the chassis object. Resolves openbmc/openbmc#2890 Tested: Pointed the local GUI to a Witherspoon system and verfied the correct rest call was made and the system hard powered off. Change-Id: Ibdb712656930a62e34603daa17df0d3116c86d92 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove reference to IBM in phosphor-webuiEd Tanous2017-11-071-1/+1
| | | | | | | | | | | | | | | | As phosphor webui is supposed to be the reference implementation, it should not reference IBM, nor have IBM copywritten logos contained within it. If these are neccesary for IBM platforms, they should be done in a bbappend in the bitbake layer, or in a way that doesn't put copywritten materials on BMCs that may not have permission to use and release it. I'm hoping to generate ddiscussion on how the best way to handle this from a build perspective would be, but for now, references should be to the OpenBmc project, not IBM to avoid copyright issues. Change-Id: I73efda399e967ca4446b8df403e94e14ab24aff8 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Modernize web GUI and make it installable on BMCEd Tanous2017-11-062-4/+6
| | | | | | | | | | | | | | | | | | | 1. Move from gulp server to webpack. This allows the proper compression to allow the webui to be embedded in the BMC. 2. Update js paths to use requires, not hardcoded paths. This was required to make the packaging work correctly. 3. Add babel config to do translation. 4. Update angularjs directive calls to use the angular 1.6 syntax for promises intead of success and fail. https://docs.angularjs.org/guide/migration#migrate1.5to1.6-ng-services-$http 5. As a consequence of using NPM/webpack, the versions of angular and associated modules that were checked in have been updated. Change-Id: Icb71e2eedb0d9a8943fc914f9dc4be11d0983c00 Signed-off-by: Ed Tanous <ed.tanous@intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Updating images and stlesIftekharul Islam2017-11-021-5/+5
| | | | | | | Updating images and styles after code merge conflicts Change-Id: I96490926caa41d13e4d625ff67f6a463d7819d34 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Changing the server name from Quiesced to Standby in header and power ↵Iftekharul Islam2017-10-091-2/+3
| | | | | | | operation page Change-Id: I5a2358fa4783a58d1d6ab73f9901e1f8fa2f54a8 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Add hostname as well as server name in power operations status barIftekharul Islam2017-10-091-1/+1
| | | | | Change-Id: I5eda360b9528eb9f61dd6783f4a73ee37b697d34 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Serial over lan popup functionality addedIftekharul Islam2017-10-093-3/+8
| | | | | Change-Id: If624d4b1858abea7d15ecc54caf78ae1deb38232 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Server health icon status on header fixedIftekharul Islam2017-10-091-0/+64
| | | | | Change-Id: I06100d8ffe9e26129585ca9476fa7097ef34a6b4 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* changed quiesced term to Standby based on user feedbackMichael Davis2017-10-091-2/+2
| | | | | Change-Id: I16a067362d425e955213c40d698e048c6842647d Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* accessibility fixes and minor css changes.Michael Davis2017-10-091-9/+6
| | | | | | | | - added aria-hidden = "true" to prevent icons to be read by screen readers - moved code on pages into "page-header" for better consistency Change-Id: I3f497b2707991f7f628892a05734eea183a0d01d Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* new icon and pop-out window for Serial over lanMichael Davis2017-10-092-1/+8
| | | | | Change-Id: I1722a4fbd1e9ac07162c9732d68dfea283a28aed Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Accessibility fixes:Michael Davis2017-10-092-8/+5
| | | | | | | | | - changed buttons to spans since not being used in forms - added aria roles to html elements - changed low contrast colors Change-Id: I56e784b226baa7f9b24346446a0a023fcea633d4 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* power operations styling fixesMichael Davis2017-10-091-2/+1
| | | | | Change-Id: Iead8504909d79c786788097c503d5d11132cc5dc Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* UI changes and fixes based on QA feedbackMichael Davis2017-10-091-1/+1
| | | | | Change-Id: I13bae30e86330a8831d35f1d8a2f7da821324e37 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* design changes for serial over lan and added header copy for page based on ↵Michael Davis2017-10-091-4/+6
| | | | | | | user feedback. Change-Id: I1c740af47f7d4b2f26f433aa3d9e1243d53b39ef Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* added alt tags for accessibility. removed confirmation descriptions to ↵Michael Davis2017-10-091-6/+6
| | | | | | | match designs. Change-Id: Iadbb5502e6a487ca22f488dfbc29daa29f1dde61 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Copy and design changes based on user feedbackMichael Davis2017-10-091-26/+27
| | | | | Change-Id: I1371711fa8549375b3ae117dfc99b9234e52b33a Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Style changes for power-ops pageMichael Davis2017-09-201-11/+11
| | | | | | | | - numerous incorrect CSS classes. - compacting space to make page height shorter. Change-Id: Ia40d82dea3eda30ebd3515d1c91c406b054aa5ae Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* fix problems reported by sonar scannerIftekharul Islam2017-09-201-1/+0
| | | | | Change-Id: Ic351745aed9d670c51a33a21c5c0b5cde77a0e0e Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
* Text style fixesMichael Davis2017-09-202-5/+5
| | | | | | | Numerous minor style corrections (ex. lower vs upper case) Change-Id: I0c77f590847d4978ac3ffbad82fc2acd481b70f9 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* created remote console pageMichael Davis2017-09-202-3/+48
| | | | | Change-Id: I72026e5ea64c9fba3089b68dfd2b8198255dabb8 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Change navigation structureIftekharul Islam2017-09-206-0/+287
Change-Id: I12c819293ce1eda188dc9f257ae9370f1b73cb18 Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
OpenPOWER on IntegriCloud