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

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