[Pacemaker] Full API description for Fence Agent

Andrew Beekhof andrew at beekhof.net
Thu Jul 4 07:41:10 EDT 2013


On 04/07/2013, at 7:24 PM, Andreas Mock <Andreas.Mock at web.de> wrote:

> Hi digimer,
> 
> I would like to take your offer and asking the following:
> 
> The API documents says nothing about the correct way
> of giving messages back to the stonith daemon.
> So, what is the right way to write error/warn/info messages.
> 
> Looking at the scripted agents available I can find a nice
> mixture of using STDERR and STDOUT.
> What is the rule here?
> Can you give insights, whether STDOUT/STDERR is captured by
> the calling program and logged somewher (and where)?

In the case of pacemaker, we capture and log both.

> 
> By the way: How is it going with merging the stonith/fencing API? ;-)
> 
> Best regards
> Andreas
> 
> -----Ursprüngliche Nachricht-----
> Von: Digimer [mailto:lists at alteeve.ca] 
> Gesendet: Dienstag, 11. Juni 2013 15:34
> An: The Pacemaker cluster resource manager
> Cc: Andreas Mock
> Betreff: Re: [Pacemaker] Full API description for Fence Agent
> 
> Hi Andreas,
> 
>   The metadata section of the document has not been added yet, but we 
> are aware of it missing and are working to add it. The rest of the 
> document is accurate though. If you build an agent to follow that API, 
> it will work with red hat's cluster and pacemaker.
> 
>   In the meantime, it's not ideal, but if you call any other fence 
> agent and pass '-o metadata', you will see the output that the cluster 
> expects. It should be easy to adapt to your new agent.
> 
>   If you have any trouble, please don't hesitate to ask here and we 
> will do our best to help.
> 
> digimer
> 
> On 06/11/2013 07:04 AM, Andreas Mock wrote:
>> Hi all,
>> 
>> we need to implement a fence_agent (stonith agent) for
>> cman/corosync/pacemaker (RHEL 6.x). I found the following documentation
>> https://fedorahosted.org/cluster/wiki/FenceAgentAPI
>> 
>> But in this document the required metadata action is not
>> described. Can anybody point me to a documentation which
>> is complete?
>> 
>> Where is the schema of the xml returned by 'metadata'?
>> 
>> What has to be done that a fence_agent can also be used
>> by pacemaker?
>> 
>> What is the right return code of action 'metadata'?
>> 
>> Is there some explanation how the stonith/fence parts
>> play together?
>> 
>> Best regards
>> Andreas Mock
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at 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
>> 
> 
> 
> -- 
> 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 at 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





More information about the Pacemaker mailing list