[ClusterLabs] pcs: how to properly unset a value for resource/stonith? [Was: (no subject)]

ArekW arkaduis at gmail.com
Mon Jul 24 08:54:18 UTC 2017


Hi, Thank you for setting subject. I confirm that the parameter can be
disabled. The only issue is that sometimes thete is a "zombie" message
in logs like I shown before:
Jul 20 07:14:11 nfsnode1 stonith-ng[11097]: warning: fence_vbox[3092]
stderr: [ WARNING:root:Parse error: Ignoring option 'verbose' because
it does not have value ]
Pozdrawiam,
Arek


2017-07-20 15:46 GMT+02:00 Jan Pokorný <jpokorny at redhat.com>:
> Hello ArekW,
>
> first of all, gentle reminder to always set the subject for the posts
> to the list (or, as a rule of thumb, in any email-based conversation).
>
> On 20/07/17 08:43 +0200, Klaus Wenninger wrote:
>> On 07/20/2017 07:21 AM, ArekW wrote:
>>> Hi, How to properly unset a value with pcs? Set to false or null gives error:
>>>
>>> # pcs stonith update vbox-fencing verbose=false --force
>>> or
>>> # pcs stonith update vbox-fencing verbose= --force
>>>
>> The latter should be fine actually.
>
> True:
>
>   # rm test.cib
>   # yum install -y fence-virt
>
>   # pcs -f test.cib stonith create fence-virt-069 fence_xvm auth=sha256 \
>     hash=sha256 key_file=/etc/cluster/fence_xvm.key timeout=5 \
>     pcmk_host_map=virt-069:virt-069.example.com
>   # pcs -f test.cib cluster cib scope=resources
>   <resources>
>     <primitive class="stonith" id="fence-virt-069" type="fence_xvm">
>       <instance_attributes id="fence-virt-069-instance_attributes">
>         <nvpair id="fence-virt-069-instance_attributes-auth" name="auth" value="sha256"/>
>         <nvpair id="fence-virt-069-instance_attributes-hash" name="hash" value="sha256"/>
>         <nvpair id="fence-virt-069-instance_attributes-key_file" name="key_file" value="/etc/cluster/fence_xvm.key"/>
>         <nvpair id="fence-virt-069-instance_attributes-pcmk_host_map" name="pcmk_host_map" value="virt-069:virt-069.example.com"/>
>         <nvpair id="fence-virt-069-instance_attributes-timeout" name="timeout" value="5"/>
>       </instance_attributes>
>       <operations>
>         <op id="fence-virt-069-monitor-interval-60s" interval="60s" name="monitor"/>
>       </operations>
>     </primitive>
>   </resources>
>
>   # pcs -f test.cib stonith update fence-virt-069 key_file=
>   # pcs -f test.cib cluster cib scope=resources
>   <resources>
>     <primitive class="stonith" id="fence-virt-069" type="fence_xvm">
>       <instance_attributes id="fence-virt-069-instance_attributes">
>         <nvpair id="fence-virt-069-instance_attributes-auth" name="auth" value="sha256"/>
>         <nvpair id="fence-virt-069-instance_attributes-hash" name="hash" value="sha256"/>
>         <nvpair id="fence-virt-069-instance_attributes-pcmk_host_map" name="pcmk_host_map" value="virt-069:virt-069.example.com"/>
>         <nvpair id="fence-virt-069-instance_attributes-timeout" name="timeout" value="5"/>
>       </instance_attributes>
>       <operations>
>         <op id="fence-virt-069-monitor-interval-60s" interval="60s" name="monitor"/>
>       </operations>
>       <meta_attributes id="fence-virt-069-meta_attributes"/>
>     </primitive>
>   </resources>
>
> --
> Jan (Poki)
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://lists.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
>




More information about the Users mailing list