From 858e13af453b6648268186da18efca2710bad896 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 26 Jan 2016 13:59:49 -0500 Subject: [PATCH] Work around leak in dhcp-all-interfaces udev rule This patch removes /etc/udev/rules.d/99-dhcp-all-interfaces.rules once os-net-config has executed at least once successfully. This will ensure no more DHCP bootstrapping occurs until we get more information on why dhcp-all-interfaces.sh is leaking DHCP processes. Change-Id: I5b456419df6c6606a4bda1202ea49378e6feb6b2 Related-bug: #1538259 --- .../os-refresh-config/configure.d/20-os-net-config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/elements/os-net-config/os-refresh-config/configure.d/20-os-net-config b/elements/os-net-config/os-refresh-config/configure.d/20-os-net-config index 2598067f1..5d13dff74 100755 --- a/elements/os-net-config/os-refresh-config/configure.d/20-os-net-config +++ b/elements/os-net-config/os-refresh-config/configure.d/20-os-net-config @@ -104,6 +104,15 @@ if [ -n "$NET_CONFIG" ]; then RETVAL=$? if [[ $RETVAL == 2 ]]; then ping_metadata_ip + + #NOTE: dprince this udev rule can apparently leak DHCP processes? + # https://bugs.launchpad.net/tripleo/+bug/1538259 + # until we discover the root cause we can simply disable the + # rule because networking has already been configured at this point + if [ -f /etc/udev/rules.d/99-dhcp-all-interfaces.rules ]; then + rm /etc/udev/rules.d/99-dhcp-all-interfaces.rules + fi + elif [[ $RETVAL != 0 ]]; then echo "ERROR: os-net-config configuration failed." >&2 exit 1