max
Minnow
Posts: 15
|
Post by max on Jan 21, 2017 23:25:46 GMT
It would be nice if every vendor at least supported the "On", "ForceOff", "ForceRestart" options for the /redfish/v1/Systems/{system}/Actions/ComputerSystem.Reset action. Right now implementation is far too voluntary, leading to at least one major vendor not bothering to implement "ForceRestart". While same vendor did support the "chassis power cycle" command with legacy IPMI.
Always having to query for supported ResetTypes, and having to do workarounds if "ForceRestart" is not available (sending "ForceOff" -> sleeping some seconds -> sending "On"), does not help with performance. And can lead to an unresponsive user interface if the client application is a simple webinterface.
|
|
|
Post by jautor on Feb 24, 2017 17:29:56 GMT
Max,
We can't easily mark these as "required" after release as part of the standard (because that wouldn't be a backwards-compatible change), but I understand and agree with your suggestion, and we'll take a look at least to add some strong recommendations - I think that will accomplish your goal.
Jeff
|
|
max
Minnow
Posts: 15
|
Post by max on Sept 27, 2017 13:12:37 GMT
Sending a "ForceOff" -> sleeping some seconds -> sending "On" sequence turns out to be problematic on some servers as well. They wrongfully try to gracefully shutdown the server first, and if that takes longer than our sleep, will return a "Unable to perform the specified reset action, System is already in Power On state" error in response to our "On" command because turning it off hasn't finished yet. Eventually the system will turn off after all, and then it won't be turned "on" again.
One could argue that we should poll for power state before sending "On", however sleeping for longer periods is not feasible in simple web applications (script will run synchronously and a web browser waiting for its completion may not be so patient, and timeout). And we are not going to jump through such hoops. Be aware that in such cases we will be displaying an error message to the user that the server's RedFish implementation is not usable, and advise them to switch to old fashioned RCMP+ instead.
|
|