Re: [ClusterLabs] Minimal metadata for fencing agent

2016-08-05 Thread Ken Gaillot
On 08/05/2016 06:16 AM, Maciej Kopczyński wrote:
> Thanks for your answer Thomas and sorry for messing up the layout of
> messages - I was trying to write from a mobile phone using gmail... I
> was able to put something up using what I found on the web and my own
> writing. My agent seems to do what it has to, except for sending
> proper metadata. I found the following information: "Output of
> fence_agent -o metadata should be validated by relax-ng schema
> (available at fence/agents/lib/metadata.rng)." Checked this location,
> but I am totally noob regarding to XML. There is a pretty extensive
> structure there, and what I need is to prepare a minimal agent to be
> used locally by me just to check if the whole thing makes sense at
> all.
> 
> Do you have any idea as to what is the minimal set of XML data that
> fence agent has to send to stdout? Or any way to work around this?
> Just for testing purposes.

The easiest thing to do is to look at an existing fence agent and mimic
what it does. The key parts are what parameters the agent accepts, and
what actions it supports.

> 
> Best regards,
> Maciek
> 
>> Hi,
>>
>> That is because pcs doesn't work well with external stonith agents, see
>> this github issue https://github.com/ClusterLabs/pcs/issues/81
>>
>> Regards,
>> Tomas
> 
>>> Thanks!
>>>
>>> I ran into more problems though. When configuring a stonith resource using
>>> pcs with stonith:external/libvirt I am geeting "Unable to create resource
>>> (...), it is not installed on this system." I have installed cluster_glue
>>> RPM package (I am running Cent OS), the file is present in the system,
>>> should I enable it somehow for pacemaker?
>>>
>>> Thanks,
>>> Maciek
>>>
>>>
 Hello,

 Sorry if it is a trivial question, but I am facing a wall here. I am
 trying
 to configure fencing on cluster running Hyper-V. I need to modify source
 code for external/libvirt plugin, but I have no idea which package
 provides
 it, cannot Google any files, do you have any idea?

 Thanks in advance,
 Maciek
> 
> ___
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 


___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Minimal metadata for fencing agent

2016-08-05 Thread Tomas Jelinek

Dne 5.8.2016 v 13:16 Maciej Kopczyński napsal(a):

Thanks for your answer Thomas and sorry for messing up the layout of
messages - I was trying to write from a mobile phone using gmail... I
was able to put something up using what I found on the web and my own
writing. My agent seems to do what it has to, except for sending
proper metadata. I found the following information: "Output of
fence_agent -o metadata should be validated by relax-ng schema
(available at fence/agents/lib/metadata.rng)." Checked this location,
but I am totally noob regarding to XML. There is a pretty extensive
structure there, and what I need is to prepare a minimal agent to be
used locally by me just to check if the whole thing makes sense at
all.

Do you have any idea as to what is the minimal set of XML data that
fence agent has to send to stdout?


Hi,

Sorry, I don't really know that.


Or any way to work around this?
Just for testing purposes.


Did you try using --force with pcs when creating the stonith resource? 
Like this:

pcs stonith create stonith_name external/libvirt --force

Or maybe some other fence agents would work for you, like fence_virt 
which is available without cluster_glue.


Regards,
Tomas



Best regards,
Maciek


Hi,

That is because pcs doesn't work well with external stonith agents, see
this github issue https://github.com/ClusterLabs/pcs/issues/81

Regards,
Tomas



Thanks!

I ran into more problems though. When configuring a stonith resource using
pcs with stonith:external/libvirt I am geeting "Unable to create resource
(...), it is not installed on this system." I have installed cluster_glue
RPM package (I am running Cent OS), the file is present in the system,
should I enable it somehow for pacemaker?

Thanks,
Maciek



Hello,

Sorry if it is a trivial question, but I am facing a wall here. I am
trying
to configure fencing on cluster running Hyper-V. I need to modify source
code for external/libvirt plugin, but I have no idea which package
provides
it, cannot Google any files, do you have any idea?

Thanks in advance,
Maciek


___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org



___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] Minimal metadata for fencing agent

2016-08-05 Thread Maciej Kopczyński
Thanks for your answer Thomas and sorry for messing up the layout of
messages - I was trying to write from a mobile phone using gmail... I
was able to put something up using what I found on the web and my own
writing. My agent seems to do what it has to, except for sending
proper metadata. I found the following information: "Output of
fence_agent -o metadata should be validated by relax-ng schema
(available at fence/agents/lib/metadata.rng)." Checked this location,
but I am totally noob regarding to XML. There is a pretty extensive
structure there, and what I need is to prepare a minimal agent to be
used locally by me just to check if the whole thing makes sense at
all.

Do you have any idea as to what is the minimal set of XML data that
fence agent has to send to stdout? Or any way to work around this?
Just for testing purposes.

Best regards,
Maciek

> Hi,
>
> That is because pcs doesn't work well with external stonith agents, see
> this github issue https://github.com/ClusterLabs/pcs/issues/81
>
> Regards,
> Tomas

>> Thanks!
>>
>> I ran into more problems though. When configuring a stonith resource using
>> pcs with stonith:external/libvirt I am geeting "Unable to create resource
>> (...), it is not installed on this system." I have installed cluster_glue
>> RPM package (I am running Cent OS), the file is present in the system,
>> should I enable it somehow for pacemaker?
>>
>> Thanks,
>> Maciek
>>
>>
>>> Hello,
>>>
>>> Sorry if it is a trivial question, but I am facing a wall here. I am
>>> trying
>>> to configure fencing on cluster running Hyper-V. I need to modify source
>>> code for external/libvirt plugin, but I have no idea which package
>>> provides
>>> it, cannot Google any files, do you have any idea?
>>>
>>> Thanks in advance,
>>> Maciek

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org