Blame SOURCES/bz2064342-1-IPsrcaddr-dhcp-warning.patch

a4c26e
From 6d2ed7615614ede093f097189876d0f08553a43e Mon Sep 17 00:00:00 2001
a4c26e
From: Reid Wahl <nrwahl@protonmail.com>
a4c26e
Date: Mon, 14 Feb 2022 22:23:39 -0800
a4c26e
Subject: [PATCH] IPsrcaddr: Add warning about DHCP
a4c26e
a4c26e
If DHCP is enabled for the interface that serves OCF_RESKEY_ipaddress,
a4c26e
then NetworkManager (and possibly dhclient in systems without NM;
a4c26e
unsure) may later re-add a route that the IPsrcaddr resource replaced.
a4c26e
This may cause the resource to fail or cause other unexpected behavior.
a4c26e
a4c26e
So far this has been observed with a default route, albeit with an edge
a4c26e
case of a configuration (OCF_RESKEY_ipaddress on a different subnet)
a4c26e
that may not be totally valid. There are likely to be other situations
a4c26e
as well where DHCP can cause conflicts with IPsrcaddr's manual updates
a4c26e
via iproute. The safest option is to use only static configuration for
a4c26e
the involved interface.
a4c26e
a4c26e
Resolves: RHBZ#1654862
a4c26e
a4c26e
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
a4c26e
---
a4c26e
 heartbeat/IPsrcaddr | 6 ++++++
a4c26e
 1 file changed, 6 insertions(+)
a4c26e
a4c26e
diff --git a/heartbeat/IPsrcaddr b/heartbeat/IPsrcaddr
a4c26e
index ec868409f..fd7b6f68d 100755
a4c26e
--- a/heartbeat/IPsrcaddr
a4c26e
+++ b/heartbeat/IPsrcaddr
a4c26e
@@ -99,6 +99,12 @@ meta_data() {
a4c26e
 <longdesc lang="en">
a4c26e
 Resource script for IPsrcaddr. It manages the preferred source address
a4c26e
 modification. 
a4c26e
+
a4c26e
+Note: DHCP should not be enabled for the interface serving the preferred
a4c26e
+source address. Enabling DHCP may result in unexpected behavior, such as
a4c26e
+the automatic addition of duplicate or conflicting routes. This may
a4c26e
+cause the IPsrcaddr resource to fail, or it may produce undesired
a4c26e
+behavior while the resource continues to run.
a4c26e
 </longdesc>
a4c26e
 <shortdesc lang="en">Manages the preferred source address for outgoing IP packets</shortdesc>
a4c26e