-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redfishpower: drop native "cycle" support #148
Comments
I'm not sure I follow. What is the sequence of events that is racy? |
is the status "on" before the power cycle began (i.e. before it was off) or after it was "off" and it is now back "on"? Remember I'm referring to "native" power cycle of redfish. Powerman may define a "cycle" as an "off" followed by an "on". For example in
b/c native "cycle" is implemented, we do
vs in cray-windom, native cycle isn't supported so
Edit: FWIW, I now see that we made |
Oh sorry, I didn't realize you meant the native redfish protocol. I thought you meant in the redfish program. Gotcha! Seems fine to just do this in the device script then (off, delay, on). Thanks for taking the time to explain! |
yeah, i think in device scripts we should just do off, delay, on. But if we do that, we don't need all the cycle stuff in redfishpower anymore (i.e. "setcyclepath", "cycle %s", etc.). Then all future code can be cleaner too, like in my hierarchy support. Issue is we've released device files with "cycle" in them before. Should |
Problem: A native power cycle with the redfish protocol is inherently racy. After performing a power cycle and immediately getting the power status, there is no way to know if the power status of "on" is from before or after the cycle. This can be confusing to users. In all redfishpower devices files, define power cycles as an off, delay, and on. Do not use native redfish cycle/restart. Fixes chaos#148
Problem: A native power cycle with the redfish protocol is inherently racy. After performing a power cycle and immediately getting the power status, there is no way to know if the power status of "on" is from before or after the cycle. This can be confusing to users. In all redfishpower devices files, define power cycles as an off, delay, and on. Do not use native redfish cycle/restart. Fixes chaos#148
Consider if redfishpower should drop native "cycle" support.
Unlike power on, we cannot "wait until on" because with power cycle b/c it is racy. You don't know if the "on" you got is before or after the cycle happened.
Normally no big deal, this is the nature of things, and we support it anyways, just like with ipmipower.
BUT with parent/hierarchy support via #81, this is more problematic.
pm --on parentNode,childNode
can work,pm --off parentNode,childNode
can work, but we just have to outright just not allowpm --cycle parentNode,childNode
b/c we can't trust if the parent is actually on after it has been cycled.Note that "cycle" can still be supported at the powerman level, which will simply define cycle as "off" followed by "on".
The text was updated successfully, but these errors were encountered: