[ClusterLabs Developers] [fence-agents] How to "login" other than ssh or telnet?

Andrei Borzenkov arvidjaar at gmail.com
Fri Nov 16 04:08:30 UTC 2018


16.11.2018 0:31, Jose.Delarosa at dell.com пишет:
> All,
> 
> I am looking at writing a fence agent for Redfish, which uses REST APIs to run "commands" like power off/on/status. There is no ssh login per se, as the APIs are accessed through HTTP methods (GET/POST/PATCH, etc.), so none of these can be used:
> 
> https://github.com/ClusterLabs/fence-agents/blob/master/lib/fencing.py.py#L968-L976
> <https://github.com/ClusterLabs/fence-agents/blob/master/agents/autodetect/fencing.py#L888-L896>
> I'm new to this project, so looking for insightful feedback from the project maintainers or more experience developers here as to the best way to implement a fence "login" for Redfish.

python redfishtool.py -r <rhost> -u <username> -p <password> Systems
reset ForceRestart

At which point you can take any of existing fencing/stonith agent as
template and fill in actual command.

https://github.com/DMTF/Redfishtool

> 
> Also, is anyone here also looking at developing a Redfish fence agent? I see https://github.com/ClusterLabs/fence-agents/issues/230, but not much activity, happy to collaborate.>
> Thank you all.
> 
> Jose Delarosa
> 
> 
> 
> 
> 
> _______________________________________________
> Developers mailing list
> Developers at clusterlabs.org
> https://lists.clusterlabs.org/mailman/listinfo/developers
> 




More information about the Developers mailing list