Red Hat Bugzilla – Bug 136682
[PATCH] kudzu fails to remove all conf files associated with a device when unconfiguring it
Last modified: 2014-03-16 22:49:44 EDT
Description of problem:
Kudzu does not remove /etc/sysconfig/networking/devices/ifcfg-eth<N>
files created by redhat-config-network when "unconfiguring" a device.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Remove a NIC that was configured by redhat-config-network
2. Look in /etc/sysconfig/networking/devices
3. Observe the continued existence of obsolete config file
/etc/sysconfig/networking/devices/ifcfg-eth<N> still exists.
/etc/sysconfig/networking/devices/ifcfg-eth<N> is gone.
This apparently helps to confuse r-c-network on subsequent invocations
(see IT ref'd in alias)
I realize this is not exactly kudzu's fault, but once a user runs
r-c-network once (even if they don't do anything with it) the file
exists. It seems reasonable to me for kudzu to nuke it as a courtesy.
Created attachment 105598 [details]
Patch so kudzu removes /etc/sysconfig/networking/devices/ifcfg-eth<n> when unconfiguring eth<n>
Is this going to confuse s-c-n at all?
if you only delete in network-scripts and there are ifcfg-* in
networking, the devices are only marked inactive in the profile...
So then the question is whether removed devices should be removed or
made inactive in s-c-n.
Removed, I'd presume. I'll put the patch in.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.