[Pacemaker] Problem configuring a simple ping resource

Jacobo García jacobo.garcia at gmail.com
Thu Jun 27 15:01:37 UTC 2013


Hello

I am trying to configure a simple ping resource in order to start
understanding the mechanics under pacemaker.

I have sucessfully configured corosync between 2 EC2 nodes on the same
region, with the following configuration:

logging{
  to_logfile: yes
  logfile: /var/log/corosync.log
}

totem {
version: 2
secauth: on
interface {
    member {
        memberaddr: 10.35.147.209
    }
    member {
        memberaddr: 10.34.151.73
    }
    ringnumber: 0
    bindnetaddr: 10.35.147.209
    mcastport: 694
    ttl: 1
}
transport: udpu
token: 10000
}

service {
        # Load the Pacemaker Cluster Resource Manager
        ver:       0
        name:      pacemaker
}

The other node has the opposite ip addresses on memberaddr and
bindnetaddr, the UDP port 694 is open on the Amazon Security Groups,
everything looks fine

crm status
============
Last updated: Wed Jun 26 16:44:40 2013
Last change: Wed Jun 26 16:44:32 2013 via crmd on ip-10-35-147-209
Stack: openais
Current DC: ip-10-35-147-209 - partition with quorum
Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c
2 Nodes configured, 2 expected votes
0 Resources configured.
============

Online: [ ip-10-34-151-73 ip-10-35-147-209 ]

Afterwards:

Disable STONITH
crm_attribute -t crm_config -n stonith-enabled -v false

Disable quorum
crm_attribute -n no-quorum-policy -v ignore

Enable assymetric clustering
crm_attribute --attr-name symmetric-cluster --attr-value false

Then I configure the resource:
crm configure primitive ping ocf:pacemaker:ping params
host_list="10.34.151.73" op monitor interval=15s timeout=5s
WARNING: ping: default timeout 20s for start is smaller than the advised 60
WARNING: ping: specified timeout 5s for monitor is smaller than the advised 60

This is what I get now:

crm status
============
Last updated: Wed Jun 26 16:49:20 2013
Last change: Wed Jun 26 16:48:01 2013 via cibadmin on ip-10-35-147-209
Stack: openais
Current DC: ip-10-35-147-209 - partition with quorum
Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c
2 Nodes configured, 2 expected votes
1 Resources configured.
============

Online: [ ip-10-34-151-73 ip-10-35-147-209 ]

crm resource list
ping (ocf::pacemaker:ping) Stopped

crm configure show
node ip-10-34-151-73
node ip-10-35-147-209
primitive ping ocf:pacemaker:ping \
params host_list="10.34.151.73" \
op monitor interval="15s" timeout="5s"
property $id="cib-bootstrap-options" \
dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
symmetric-cluster="false"


In this link I have pasted the whole contents of the log of both
servers: https://gist.github.com/therobot/c650149aa52e36a29ba6
And in this one I have pasted the output of running `cibfadmin -Q`:
https://gist.github.com/therobot/39e36bfb07839086c3db

Is there anything else to have this configured? Browsing the log it
seems that the resource pingd cannot run anywhere. I am missing
something?

Thanks in advance for the help,

Jacobo García




More information about the Pacemaker mailing list