[ClusterLabs] resource agent Route active on multiple nodes

Florent Barra florent.barra at cirpack.com
Wed Jun 6 05:28:07 EDT 2018

I want to create a simple cluster where only the second interface is managed.
I create my resources in the following ways:

pcs resource create ping-gateway ocf:pacemaker:ping name=ping-counter host_list= --clone
pcs resource create eth1 ocf:heartbeat:IPaddr2 ip= nic=eth1 cidr_netmask=24
pcs resource create route1 ocf:heartbeat:Route destination="" device="eth1" gateway="" table="trust"
pcs constraint location eth1 rule id=eth1_rule constraint-id=eth1_location ping-counter eq 0
pcs constraint ticket set eth1 route1 sequential=false setoptions ticket=interfaces id=interfaces loss-policy=stop
crm_ticket --ticket interfaces --grant –force
pcs constraint colocation set eth1 route1 sequential=true setoptions id=coloc score=INFINITY
pcs constraint order set eth1 route1 sequential=true setoptions id=launch_order kind=mandatory

when I start the cluster, I end up with route error:

root at nodeA ~]# pcs resource
Clone Set: ping-gateway-clone [ping-gateway]
Started: [nodeA nodeB ]
eth1 (ocf::heartbeat:IPaddr2): Started nodeA
eth10 (ocf::heartbeat:IPaddr2): Started nodeA
eth11 (ocf::heartbeat:IPaddr2): Started nodeA
eth12 (ocf::heartbeat:IPaddr2): Started nodeA
route1 (ocf::heartbeat:Route): FAILED (blocked)[nodeA nodeB ]

I don't know why my resource 'route1' is active on multiple nodes instead to be active only on the same node the eth1

Florent Barra

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20180606/d7f75852/attachment.html>

More information about the Users mailing list