From f90a830fbac3b9ac1e501a768eeb7454e4d540f8 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Wed, 9 Jun 2021 14:32:22 -0600 Subject: [PATCH] Clean up ifcfg-eth0 If ifcfg-eth0 is defined but does not exist, this can cause the nodes to fail to get an IP address on initial provisioning. This patch removes it when the image is built to ensure we don't end up with a bad interface network script. Change-Id: I3b8cb5f8c413c109da1228878db9cff4d439273b Closes-Bug: #1931495 --- elements/interface-names/install.d/71-clean-stale-interface | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elements/interface-names/install.d/71-clean-stale-interface b/elements/interface-names/install.d/71-clean-stale-interface index 38fd4a8f7..d083bcb1d 100755 --- a/elements/interface-names/install.d/71-clean-stale-interface +++ b/elements/interface-names/install.d/71-clean-stale-interface @@ -4,6 +4,6 @@ set -eux set -o pipefail # https://bugs.centos.org/view.php?id=17133 -if ls /etc/sysconfig/network-scripts/ifcfg-ens3* &> /dev/null; then - rm -f /etc/sysconfig/network-scripts/ifcfg-ens3* -fi +rm -f /etc/sysconfig/network-scripts/ifcfg-ens* +# https://bugs.launchpad.net/tripleo/+bug/1931495 +rm -f /etc/sysconfig/network-scripts/ifcfg-eth*