[Pacemaker] Error when managing network with ping/pingd.
Andrew Beekhof
andrew at beekhof.net
Wed Sep 4 04:25:17 UTC 2013
Where did the status section go?
On 02/09/2013, at 5:46 PM, Francis SOUYRI <francis.souyri at apec.fr> wrote:
> Hello Andrew,
>
> Now I understand, below the complete configuration.
>
> <cib epoch="117" num_updates="28" admin_epoch="0" validate-with="pacemaker-1.2" crm_feature_set="3.0.6" update-origin="noeud2.apec.fr" update-client="cibadmin" cib-last-written="Mon Sep 2 09:23:58 2013" have-quorum="1" dc-uuid="2">
> <configuration>
> <crm_config>
> <cluster_property_set id="cib-bootstrap-options">
> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.7-2.fc17-ee0730e13d124c3d58f00016c3376a1de5323cff"/>
> <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
> <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1377611485"/>
> </cluster_property_set>
> </crm_config>
> <nodes>
> <node id="1" type="normal" uname="noeud1.apec.fr"/>
> <node id="2" type="normal" uname="noeud2.apec.fr"/>
> </nodes>
> <resources>
> <group id="named">
> <primitive class="ocf" id="IPaddr2_named" provider="heartbeat" type="IPaddr2">
> <instance_attributes id="IPaddr2_named-instance_attributes">
> <nvpair id="IPaddr2_named-instance_attributes-ip" name="ip" value="192.168.1.250"/>
> <nvpair id="IPaddr2_named-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_named-timeout-5s" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_named" provider="redhat" type="drbd.sh">
> <instance_attributes id="drbd_named-instance_attributes">
> <nvpair id="drbd_named-instance_attributes-resource" name="resource" value="named"/>
> </instance_attributes>
> <operations>
> <op id="drbd_named-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_named" provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_named-instance_attributes">
> <nvpair id="Filesystem_named-instance_attributes-device" name="device" value="/dev/drbd0"/>
> <nvpair id="Filesystem_named-instance_attributes-directory" name="directory" value="/named"/>
> <nvpair id="Filesystem_named-instance_attributes-fstype" name="fstype" value="ext4"/>
> <nvpair id="Filesystem_named-instance_attributes-interval" name="interval" value="120s"/>
> <nvpair id="Filesystem_named-instance_attributes-timeout" name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_named-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> </group>
> <group id="dhcpd">
> <primitive class="ocf" id="IPaddr2_dhcpd" provider="heartbeat" type="IPaddr2">
> <instance_attributes id="IPaddr2_dhcpd-instance_attributes">
> <nvpair id="IPaddr2_dhcpd-instance_attributes-ip" name="ip" value="192.168.1.252"/>
> <nvpair id="IPaddr2_dhcpd-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_dhcpd-timeout-5" interval="5s" name="monitor" timeout="5"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_dhcpd" provider="redhat" type="drbd.sh">
> <instance_attributes id="drbd_dhcpd-instance_attributes">
> <nvpair id="drbd_dhcpd-instance_attributes-resource" name="resource" value="dhcpd"/>
> </instance_attributes>
> <operations>
> <op id="drbd_dhcpd-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_dhcpd" provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_dhcpd-instance_attributes">
> <nvpair id="Filesystem_dhcpd-instance_attributes-device" name="device" value="/dev/drbd1"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-directory" name="directory" value="/dhcpd"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-fstype" name="fstype" value="ext4"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-interval" name="interval" value="120s"/>
> <nvpair id="Filesystem_dhcpd-instance_attributes-timeout" name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_dhcpd-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> </group>
> <group id="named2">
> <primitive class="ocf" id="IPaddr2_named2" provider="heartbeat" type="IPaddr2">
> <instance_attributes id="IPaddr2_named2-instance_attributes">
> <nvpair id="IPaddr2_named2-instance_attributes-ip" name="ip" value="192.168.1.251"/>
> <nvpair id="IPaddr2_named2-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_named2-timeout-5s" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_named2" provider="redhat" type="drbd.sh">
> <instance_attributes id="drbd_named2-instance_attributes">
> <nvpair id="drbd_named2-instance_attributes-resource" name="resource" value="named2"/>
> </instance_attributes>
> <operations>
> <op id="drbd_named2-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_named2" provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_named2-instance_attributes">
> <nvpair id="Filesystem_named2-instance_attributes-device" name="device" value="/dev/drbd2"/>
> <nvpair id="Filesystem_named2-instance_attributes-directory" name="directory" value="/named2"/>
> <nvpair id="Filesystem_named2-instance_attributes-fstype" name="fstype" value="ext4"/>
> <nvpair id="Filesystem_named2-instance_attributes-interval" name="interval" value="120s"/>
> <nvpair id="Filesystem_named2-instance_attributes-timeout" name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_named2-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> </group>
> <group id="samba">
> <meta_attributes id="samba-meta_attributes">
> <nvpair id="samba-meta_attributes-target-role" name="target-role" value="Started"/>
> </meta_attributes>
> <primitive class="ocf" id="IPaddr2_samba" provider="heartbeat" type="IPaddr2">
> <instance_attributes id="IPaddr2_samba-instance_attributes">
> <nvpair id="IPaddr2_samba-instance_attributes-ip" name="ip" value="192.168.1.249"/>
> <nvpair id="IPaddr2_samba-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
> </instance_attributes>
> <operations>
> <op id="IPaddr2_samba-timeout-5s" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="drbd_samba" provider="redhat" type="drbd.sh">
> <instance_attributes id="drbd_samba-instance_attributes">
> <nvpair id="drbd_samba-instance_attributes-resource" name="resource" value="samba"/>
> <nvpair id="drbd_samba-instance_attributes-interval" name="interval" value="120s"/>
> <nvpair id="drbd_samba-instance_attributes-timeout" name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="drbd_samba-interval-60s" interval="60s" name="monitor"/>
> </operations>
> </primitive>
> <primitive class="ocf" id="Filesystem_samba" provider="heartbeat" type="Filesystem">
> <instance_attributes id="Filesystem_samba-instance_attributes">
> <nvpair id="Filesystem_samba-instance_attributes-device" name="device" value="/dev/drbd3"/>
> <nvpair id="Filesystem_samba-instance_attributes-directory" name="directory" value="/samba"/>
> <nvpair id="Filesystem_samba-instance_attributes-fstype" name="fstype" value="ext4"/>
> <nvpair id="Filesystem_samba-instance_attributes-interval" name="interval" value="120s"/>
> <nvpair id="Filesystem_samba-instance_attributes-timeout" name="timeout" value="60s"/>
> </instance_attributes>
> <operations>
> <op id="Filesystem_samba-timeout-60s" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> </group>
> <clone id="ping-gateway-clone">
> <meta_attributes id="ping-gateway-clone-meta">
> <nvpair id="ping-gateway-interleave" name="interleave" value="true"/>
> </meta_attributes>
> <primitive class="ocf" id="ping-gateway" provider="pacemaker" type="ping">
> <instance_attributes id="ping-gateway-instance_attributes">
> <nvpair id="ping-gateway-instance_attributes-host_list" name="host_list" value="192.168.1.1"/>
> <nvpair id="ping-gateway-instance_attributes-multiplier" name="multiplier" value="100"/>
> </instance_attributes>
> </primitive>
> </clone>
> </resources>
> <constraints>
> <rsc_location id="location-dhcpd-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
> <rsc_location id="location-named2-noeud2.apec.fr-50" node="noeud2.apec.fr" rsc="named2" score="50"/>
> <rsc_location id="location-samba-noeud2.apec.fr-50" node="noeud2.apec.fr" rsc="samba" score="50"/>
> <rsc_location id="location-named-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named" score="50"/>
> <rsc_location id="pingnamed" rsc="named">
> <rule id="pingnamed-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingnamed-expression" operation="defined"/>
> </rule>
> </rsc_location>
> <rsc_location id="pingnamed2" rsc="named2">
> <rule id="pingnamed2-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingnamed2-expression" operation="defined"/>
> </rule>
> </rsc_location>
> <rsc_location id="pingdhcpd" rsc="dhcpd">
> <rule id="pingdhcpd-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingdhcpd-expression" operation="defined"/>
> </rule>
> </rsc_location>
> <rsc_location id="pingsamba" rsc="samba">
> <rule id="pingsamba-rule" score-attribute="pingd">
> <expression attribute="pingd" id="pingsamba-expression" operation="defined"/>
> </rule>
> </rsc_location>
> </constraints>
> <rsc_defaults>
> <meta_attributes id="rsc_defaults-options">
> <nvpair id="rsc_defaults-options-resource-stickiness" name="resource-stickiness" value="100"/>
> </meta_attributes>
> </rsc_defaults>
> </configuration>
> </cib>
>
> Best regards.
>
> Francis
>
> On 09/02/2013 01:09 AM, Andrew Beekhof wrote:
>>
>> On 30/08/2013, at 5:32 PM, Francis SOUYRI <francis.souyri at apec.fr> wrote:
>>
>>> Hello Andrew,
>>>
>>> Sorry I do not understand your comment after "Please don't do this.", What I need to do ?
>>
>> Cut off relevant parts of the config and replace them with "....".
>>
>>
>>>
>>> For my test system I have a cluster with 2 nodes and 4 resources group (named, dhcpd, named2, samba) with each group an ip resource, drbd resource, filesystem resource, start application resource (not on this test server).
>>> For each group I have a constraint to assignate named/dhcpd to noeud1 and named2/samba to noeud2
>>>
>>> <rsc_location id="location-named-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named" score="50"/>
>>> <rsc_location id="location-dhcpd-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
>>> <rsc_location id="location-named2-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named2" score="50"/>
>>> <rsc_location id="location-samba-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="samba" score="50"/>
>>>
>>> I created a ping resource to "monitor" the network and when the network failed on one node I want the resources to migrate to other node.
>>>
>>> Best Regards.
>>>
>>> Francis
>>>
>>> On 08/30/2013 05:26 AM, Andrew Beekhof wrote:
>>>>
>>>> On 29/08/2013, at 5:36 PM, Francis SOUYRI <francis.souyri at apec.fr> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I have a corosync/pacemaker with 2 nodes and 2 nets by nodes, 192.168.1.0/24 for cluster access, 10.1.1.0/24 for drbd in bond, both used by corosync.
>>>>> I try to used ocf:pacemaker:ping to monitor the 192.168.1.0/24 I have the configuration below, but when I remove the cable of the noeud1 the named group resource do not migrate to noeud2.
>>>>>
>>>>> When I used these command "crm_attribute -G -t status -N -n pingd" I have this.
>>>>
>>>> Invalid command. -N requires an argument.
>>>>
>>>>>
>>>>> Could not map uname=-n to a UUID: The object/attribute does not exist
>>>>> scope=status value=(null)
>>>>> Error performing operation: cib object missing
>>>>>
>>>>> ##### CONFIG
>>>>> ...
>>>>> <clone id="ping-gateway-clone">
>>>>> <meta_attributes id="ping-gateway-clone-meta">
>>>>> <nvpair id="ping-gateway-interleave" name="interleave" value="true"/>
>>>>> </meta_attributes>
>>>>> <primitive class="ocf" id="ping-gateway" provider="pacemaker" type="ping">
>>>>> <instance_attributes id="ping-gateway-instance_attributes">
>>>>> <nvpair id="ping-gateway-instance_attributes-host_list" name="host_list" value="192.168.1.1"/>
>>>>> <nvpair id="ping-gateway-instance_attributes-multiplier" name="multiplier" value="100"/>
>>>>> </instance_attributes>
>>>>> </primitive>
>>>>> </clone>
>>>>> </resources>
>>>>> <constraints>
>>>>> <rsc_location id="location-named-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named" score="50"/>
>>>>> <rsc_location id="location-dhcpd-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="dhcpd" score="50"/>
>>>>> <rsc_location id="location-named2-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="named2" score="50"/>
>>>>> <rsc_location id="location-samba-noeud1.apec.fr-50" node="noeud1.apec.fr" rsc="samba" score="50"/>
>>>>> <rsc_location id="pingnamed" rsc="named">
>>>>> <rule id="pingnamed-rule" score-attribute="pingd">
>>>>> <expression attribute="pingd" id="pingnamed-expression" operation="defined"/>
>>>>> </rule>
>>>>> </rsc_location>
>>>>> </constraints>
>>>>> <rsc_defaults>
>>>>> <meta_attributes id="rsc_defaults-options">
>>>>> <nvpair id="rsc_defaults-options-resource-stickiness" name="resource-stickiness" value="100"/>
>>>>> </meta_attributes>
>>>>> </rsc_defaults>
>>>>> ....
>>>>
>>>> Please don't do this.
>>>>
>>>> The contents of "...." might not seem relevant to you, but I assure you they are. Particularly in this case.
>>>>
>>>>
>>>>> ##### END CONFIG
>>>>>
>>>>> Best regards.
>>>>>
>>>>> Francis
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
>
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130904/994be368/attachment-0004.sig>
More information about the Pacemaker
mailing list