On 05/07/13 03:34, Andreas Mock wrote:
Hi all,
I just wrote a stonith agent which IMHO implements the
API spec found at https://fedorahosted.org/cluster/wiki/FenceAgentAPI.
But it seems it has a problem when used as pacemaker stonith device.
What has to be done, to have a stonith/fencing agent which implements
both roles. I'm pretty sure something is missing.
It's just a guess that it has something to do with listing "registered"
agents.
What is a registered stonith agent and what is done while registering it?
When I configure my own fencing agent as packemaker stonith device
and try to do a "stonith_admin --list=nodename" I get a "no such device"
error.
Any pointer appreciated.
Best regards
Andreas Mock
The API doesn't (yet) cover the metadata action. The agents now have to
print out XML validation of valid attributes and elements for your
agent. If you call any existing fence_* agent with just -o metadata, you
will see the format.
I know rhcs can be forced to see the new agent by putting it in the same
directory as the other agents and then running 'ccs_update_schema'. If
pacemaker doesn't immediately see it, then there might be an equivalent
command you can run.
I will try to get the API updated. I'm not a cardinal source, but
something is better than nothing. Marek (who I have cc'ed) is, so I can
run the changes by him when done to ensure they're accurate.
--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org