An IPsrcaddr resource fails to start and logs "ERROR: command 'ip route replace DEV IFACE src ADDRESS' failed" in a Pacemaker cluster

Solution Verified - Updated -

Issue

  • An IPsrcaddr resource fails to start with command 'ip route replace <dev> <interface> src <address>' failed error.
  • An ocf:heartbeat:IPsrcaddr cluster resource fails to start successfully. Messages similar to the following are logged:
Nov 29 12:35:52 rhel7-2 crmd[32668]:  notice: Result of probe operation for ip_src on rh72.ring0: 7 (not running)
Nov 29 12:35:52 rhel7-2 crmd[32668]:  notice: rh72.ring0-ip_src_monitor_0:128 [ No preferred source address defined\n ]
Nov 29 12:35:52 rhel7-2 IPsrcaddr(ip_src)[28834]: ERROR: command 'ip route replace  dev ens3 src 192.168.122.190' failed
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [ Usage: ip route { list | flush } SELECTOR ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [        ip route save SELECTOR ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [        ip route restore ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [        ip route showdump ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [        ip route get ADDRESS [ from ADDRESS iif STRING ] ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [                             [ oif STRING ] [ tos TOS ] ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [                             [ mark NUMBER ] [ vrf NAME ] ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [                             [ uid NUMBER ] ]
[....]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [ ENCAPTYPE := [ mpls | ip | ip6 ] ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [ ENCAPHDR := [ MPLSLABEL ] ]
Nov 29 12:35:52 rhel7-2 lrmd[32665]:  notice: ip_src_start_0:28834:stderr [ ocf-exit-reason:command 'ip route replace  dev ens3 src 192.168.122.190' failed ]
Nov 29 12:35:52 rhel7-2 crmd[32668]:  notice: Result of start operation for ip_src on rh72.ring0: 1 (unknown error)

Environment

  • Red Hat Enterprise Linux 7 or 8 (with the High Availability Add-on)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content