Bug 145001

Summary: YaST doesn´t delete udev settings and sysconfig files when deleting a device
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michael Stather <kontakt>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Stather 2006-01-23 22:19:58 UTC
I´ve filed several bug reports for WLAN devices on 10.0 and this was part of every bug report. Since I was told this is a thing for 10.1 (of course) I created this bug to sum it up.

As of now if I remove a device in YaST it doesn´t delete the corresponding "hwcfg-XXX" file and in case of network devices it neither deletes the line in the udev "persistant network" rules file. Both things get created by YaST when configuring a device (perhaps the sysconfig file gets created by the hotplug system when it finds no configuration as written here http://portal.suse.com/sdb/de/2004/05/91_coldhotplug.html).
IMHO this is wrong. Removing a device from YaST should bring the system in the state where it was before inserting the device for the first time. 
There are several areas where this is important IMHO:

The "new hardware notification" will come up again if I reconnect the device.

Options (to the kernel module) which I set with YaST will be removed. I had a situation where certain options I set locked up the system, and removing the device from YaST (setting it to "not configured") didn´t help (the sysconfig file was still there), which is bad IMHO.

Old entries of non-existing network interfaces won´t remain in the udev rules, so they get free again when inserting a new network device.

In general, when I change hardware (and thus remove my old entries from YaST) there shouldn´t be any leftovers.
Comment 1 Michael Stather 2006-01-23 23:29:41 UTC
I just experiented a bit and read the documentation and it seems YaST does remove the sysconfig files. The files in my folder were some leftovers from old or buggy versions of YaST. But the udev rules thing still applies.
When I also forgot is that the information in /var/lib/hardware should also be set to "not configured", so that the hardware is re-detected as new when inserted again (and the notification pops up).
Comment 2 Michael Stather 2006-01-23 23:37:16 UTC
Or perhaps it´s even better to delete the /var/lib/hardware file, so that there aren´t leftovers for old devices (I´ve plenty of them on my system, e.g. for old graphics cards).
Comment 3 Michael Gross 2006-01-24 17:07:47 UTC
Michael: Can you reference your reports here? Please notice that from 10.1+ the removable network devices are handled by NetworkManager and therefore the mechanism will change completely, hence bugreports made for 10.0 will not be applicable for 10.1 here. 

If you find something wrong with the behaviour of how 10.1 Beta1 handles this, please be specific about this. I'm not sure if you're actually using Beta1?
Comment 4 Michael Stather 2006-01-24 17:35:53 UTC
Unfortunately all versions greater than 10.1 A3 don´t run on my systems.
I filed a bug for 10.0 about this issue here and somebody said it´s a thing for 10.1, so I filed this bug report. I´ll try beta2 when it´s out.
If there aren´t any udev rules which get automatically created (like it used to be) then you´re right, if they´re still there this still applies.
What I said in comment #1 about the information /var/lib/hardware should also still apply since it´s not specific to network devices but to all devices and PCI cards.
Comment 5 Michael Gross 2006-01-24 18:03:37 UTC
Kay: Please comment on this.
Comment 6 Kay Sievers 2006-01-24 18:37:52 UTC
Udev itself does not create any device specific files. And if YaST should remove files or the corresponding lines for the assigned persistent network names, I really can't tell, sorry. (Adding Christian for the network part.)
Comment 7 Christian Zoz 2006-01-24 21:11:21 UTC
The udev rules for persistent interface names are created automatically. Would be nice could remove them. But afaik it still does not do that.

I don't know if YaST removes hwcfg files.

Let's ask Martin.
Comment 8 Michael Stather 2006-01-25 01:47:45 UTC
I tested it out with 10.0 and YaST does remove the hwcfg files but do4esn´t remove the udev rules and /var/lib/hardware infos.
Comment 9 Michael Stather 2006-02-27 17:57:14 UTC
So will this change in 10.1?
Comment 10 Michael Stather 2006-07-09 21:38:29 UTC
Why don´t you reply to this bug???
You said that you´ll honor bug reports from the userbase, so please do it! This is a major design issue, so why don´t you read the report and think about it? I really doubt whether I should continue to submit bug reports, I´ve filed so much of them and I get no response for months.
Comment 11 Martin Vidner 2006-07-11 08:48:15 UTC
Sorry, I was busy with other things and bugs with higher severity. You can always just "ping" in a bug to get my attention.

I will have a look.
Comment 12 Michael Stather 2006-07-11 09:49:14 UTC
Cool :)
Comment 13 Martin Vidner 2006-08-28 11:52:33 UTC
Reassigning to the new maintainer of yast2-network.
Comment 14 Michal Zugec 2007-03-13 18:53:45 UTC
*** Bug 133300 has been marked as a duplicate of this bug. ***
Comment 15 Michal Zugec 2007-05-29 15:57:34 UTC
This will be implemented for 10.3
Comment 16 Michal Zugec 2008-02-05 14:07:06 UTC
Sorry, it was postponed, but implemented in 11.0:
http://en.opensuse.org/index.php?title=YaST/Network/11.0-new_features