Disable auto configuration of new interfaces in NetworkManager

NetworkManager in Centos images configures new network devices as soon
as they appear in the default namespace, it means that we might have
conflicts between the management interface's routes and address and the
new VIP or member interfaces' routes and addresses during a small period
of time before they are moved to the amphora-haproxy namespace.

Now, the "no-auto-default=*" option is enabled in NetworkManager, it
disables the configuration of new interfaces, while the management
interface is still enabled/configured through cloud-init.

Story 2008599
Task 41773

Change-Id: I6dd8e99b07ff557674871cb503dece96a9df3ada
(cherry picked from commit a518cefda1)
(cherry picked from commit b9f622b335)
(cherry picked from commit 7b2424685e)
This commit is contained in:
Gregory Thiemonge 2021-02-06 22:26:07 +01:00 committed by Carlos Goncalves
parent 131c69608d
commit 0288729295
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[main]
# Disable auto configuration for newly detected devices.
# This prevents having temporary addresses and routes in the default namespace
# between the detection of a new devices and its move to the amphora-haproxy
# namespace.
# The management interface configuration is triggered by cloud-init.
no-auto-default=*