> When the PREFERRED_SRC_IP resource is started, the following commands
> were failing:
>
>>  stderr: + 09:21:44: srca_start:184: ip route replace 192.168.0.0/24 dev em2 
>> src 192.168.0.6
>>  stderr: + 09:21:44: srca_start:187: ip route change to default via 
>> 192.168.0.1 dev em1 src 192.168.0.6
>
> It think the wrong nic is returned by findif in this case (is it the
> expected behaviour because I am not supposed to have 2 nics affected
> to the same network? Or do you think it is a bug?)
>
> # export OCF_RESKEY_ip=192.168.0.6
> # /usr/libexec/heartbeat/findif -C
> em2     netmask 24      broadcast 192.168.0.255
>
> Anyway deconfiguring the em2 interface solves the error.

As an alternative, if I force the INTERFACE variable to em1 in
/usr/lib/ocf/resource.d/heartbeat/IPsrcaddr, I can configure the
cluster using the 3 nics.
Mathieu

# rcsdiff -u  /usr/lib/ocf/resource.d/heartbeat/IPsrcaddr

 INTERFACE=`echo $findif_out | awk '{print $1}'`
+# Force interface to em1
+INTERFACE=em1
 NETWORK=`ip route list dev $INTERFACE scope link match
$ipaddress|grep -o '^[^ ]*'`

_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to