[ClusterLabs] resource agent Route active on multiple nodes

Andrei Borzenkov arvidjaar at gmail.com
Wed Jun 6 05:38:32 EDT 2018

On Wed, Jun 6, 2018 at 12:28 PM, Florent Barra
<florent.barra at cirpack.com> wrote:
> Hi,
> 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

Your resource is *not* active. Attempt to start it failed on both
nodes. You need to investigate why it happened. Most obvious reason
would be missing "trust" table.

More information about the Users mailing list