-
Notifications
You must be signed in to change notification settings - Fork 19
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
need openbmcpower helper #34
Comments
Writing this "helper" in python using aiohttp might be an interesting approach. aiohttp is built on asyncio which is part of the python standard library, so it seems like it has hope of interoperating with, say, a stdio "shell" interface needed by powerman. And here's a pertinent stack overflow question on the latter. |
comments:
|
oh yeah, it's perhaps worth mentioning. an |
although this issue is independent of #45, it applies generically to REST interfaces. I'm keeping the title as is, as its not clear if we'd need a "openbmcpower" and "redfishpower" and "pick-a-vendor-rest-interface-power", or if a single "rest-power" can cover all cases. |
thinking about this issue more, although I hate the idea of writing this in C, everytime I come back and think about this, I come back to something that is very similar to
So as I thought about this more and more, I might just end up writing something super similar to |
After beginning work on an experimental version for redfish, I realized that a generalized in openbmc.dev
in redfish.dev
how to "grep" or "expect" or what have you will be difficult (impossible?) to put into the powerman device files when doing status requests to multiple hosts at the same time. To my knowledge, there will be no way to differentiate what output came from what node. It will probably have to be parsed within the tool. We could generalize things down the road with a |
I occurred to me that this may not be necessary for rest interfaces. Since its a http/TCP based protocol and not UDP based, a http/TCP connection attempt should just fail immediately, avoiding the timeout issues with IPMI on missing nodes. |
while this issue was originally opened for openbmc, I am going to close b/c a similar solution "redfishpower" was developed for redfish. A modified/duplicate/solution could be created in the same regard. Or perhaps long term redfishpower will include support for other protocols and be renamed, perhaps eventually supplanting httppower. |
As discussed in #33, the current support for OpenBMC has some issues that could best be addressed by creating a dedicated "coproc" helper, similar to
ipmipower
. The issues areThe text was updated successfully, but these errors were encountered: