[Pacemaker] Cleanup over secondary node

Andrew Beekhof andrew at beekhof.net
Mon Apr 15 04:36:48 UTC 2013


On 15/04/2013, at 1:01 AM, Daniel Bareiro <daniel-listas at gmx.net> wrote:

> 
> Hi all!
> 
> I'm testing Pacemaker+Corosync cluster with KVM virtual machines. When
> restarting a node, I got the following status:
> 
> # crm status
> ============
> Last updated: Sun Apr 14 11:50:00 2013
> Last change: Sun Apr 14 11:49:54 2013
> Stack: openais
> Current DC: daedalus - partition with quorum
> Version: 1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff
> 2 Nodes configured, 2 expected votes
> 8 Resources configured.
> ============
> 
> Online: [ atlantis daedalus ]
> 
> Resource Group: servicios
>     fs_drbd_servicios  (ocf::heartbeat:Filesystem):    Started daedalus
>     clusterIP  (ocf::heartbeat:IPaddr2):       Started daedalus
>     Mysql      (ocf::heartbeat:mysql): Started daedalus
>     Apache     (ocf::heartbeat:apache):        Started daedalus
>     Pure-FTPd  (ocf::heartbeat:Pure-FTPd):     Started daedalus
>     Asterisk   (ocf::heartbeat:asterisk):      Started daedalus
> Master/Slave Set: drbd_serviciosClone [drbd_servicios]
>     Masters: [ daedalus ]
>     Slaves: [ atlantis ]
> 
> Failed actions:
>    Asterisk_monitor_0 (node=atlantis, call=12, rc=5, status=complete): not installed
> 
> 
> The problem is that if I do a "cleanup" of the Asterisk resource in the
> secondary, this has no effect. It seems to be Paceemaker needs to have
> access to the config file to the resource.

Not Pacemaker, the resource agent.
Pacemaker runs a non-recurring monitor operation to see what state the service is in, it seems the asterisk agent needs that config file.

I'd suggest changing the agent so that if the asterisk process is not running, the agent returns 7 (not running) before trying to access the config file.

> But this is not available,
> because it is mounted on the DRBD device that is accessible in the
> primary:
> 
> Apr 14 11:58:06 atlantis cib: [1136]: info: apply_xml_diff: Digest mis-match: expected f6e4778e0ca9d8d681ba86acb83a6086, calculated ad03ff3e0622f60c78e8e1ece055bd63
> Apr 14 11:58:06 atlantis cib: [1136]: notice: cib_process_diff: Diff 0.825.3 -> 0.825.4 not applied to 0.825.3: Failed application of an update diff
> Apr 14 11:58:06 atlantis cib: [1136]: info: cib_server_process_diff: Requesting re-sync from peer
> Apr 14 11:58:06 atlantis crmd: [1141]: info: delete_resource: Removing resource Asterisk for 3141_crm_resource (internal) on atlantis
> Apr 14 11:58:06 atlantis crmd: [1141]: info: notify_deleted: Notifying 3141_crm_resource on atlantis that Asterisk was deleted
> Apr 14 11:58:06 atlantis crmd: [1141]: WARN: decode_transition_key: Bad UUID (crm-resource-3141) in sscanf result (3) for 0:0:crm-resource-3141
> Apr 14 11:58:06 atlantis crmd: [1141]: info: ais_dispatch_message: Membership 1616: quorum retained
> Apr 14 11:58:06 atlantis lrmd: [1138]: info: rsc:Asterisk probe[13] (pid 3144)
> Apr 14 11:58:06 atlantis asterisk[3144]: ERROR: Config /etc/asterisk/asterisk.conf doesn't exist
> Apr 14 11:58:06 atlantis lrmd: [1138]: info: operation monitor[13] on Asterisk for client 1141: pid 3144 exited with return code 5
> Apr 14 11:58:06 atlantis crmd: [1141]: info: process_lrm_event: LRM operation Asterisk_monitor_0 (call=13, rc=5, cib-update=40, confirmed=true) not installed
> 
> 
> Is there any way to remedy this situation?
> 
> 
> Thanks in advance for your reply.
> 
> 
> Regards,
> Daniel
> -- 
> Ing. Daniel Bareiro - GNU/Linux registered user #188.598
> Proudly running Debian GNU/Linux with uptime:
> 11:46:23 up 49 days, 19:53, 12 users,  load average: 0.00, 0.01, 0.00
> _______________________________________________
> 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