The "IPsrcaddr" resource fails all "stop" operations if multiple subnets are configured on a single network interface
Issue
When stopping a IPsrcaddr resource on an interface with multiple IP's on separate subnets configured, we always experience a stop failure. This additionally leads to fences due to the failed stop operation:
# Note: Below output replaces "#012" and "\n" characters with spaces " ".
$ cat /var/log/messages
--------------------------->8-------------------------------
Jun 11 11:53:22 rhel8-node1 pacemaker-controld[2325]: notice: Requesting local execution of stop operation for virtualsrc on rhel8-node1
Jun 11 11:53:22 rhel8-node1 IPsrcaddr(virtualsrc)[43918]: ERROR: command 'ip route replace 192.168.120.218/24 dev enp1s0 proto kernel scope link src 192.168.122.218 192.168.120.218 ' failed
Jun 11 11:53:22 rhel8-node1 pacemaker-controld[2325]: notice: Result of stop operation for virtualsrc on rhel8-node1: error (command 'ip route replace 192.168.120.218/24 dev enp1s0 proto kernel scope link src 192.168.122.218)
Environment
- Red Hat Enterprise Linux Server 7, 8 or 9 (with the High Availability Add On and Resilient Storage Add Ons)
- Pacemaker
- IPsrcaddr Resource Agent
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.