Bug 136657 - HAL not detected add/remove network interface if not add/remove related device
Summary: HAL not detected add/remove network interface if not add/remove related device
Status: VERIFIED FIXED
: 136417 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Alpha 3plus
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Danny Kukawka
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-02 11:08 UTC by Forgotten User ZhJd0F0L3x
Modified: 2007-06-05 11:04 UTC (History)
1 user (show)

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screenshot of the nm-applet popup (10.45 KB, image/png)
2005-12-02 11:09 UTC, Forgotten User ZhJd0F0L3x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User ZhJd0F0L3x 2005-12-02 11:08:42 UTC
Using the latest-and-greatest NM packages on a Vaio vgn-fs115b (ipw2200 wireless, e100 wired):
testuser@linux:~> rpm -qa Network*
NetworkManager-0.5.1cvs20051201-1
NetworkManager-gnome-0.5.1cvs20051201-1

If i start network manager without ipw2200 loaded, i get the following:
(====== are my comments :-)
linux:/home/testuser # rmmod ipw2200
linux:/home/testuser NetworkManager --no-daemon
linux:/home/testuser # NetworkManager --no-daemon
NetworkManager: <information>   starting...
NetworkManager: <information>   eth1: Driver 'ipw2200' does not support carrier detection.
        You must switch to it manually.
===== the driver is not loaded ============
NetworkManager: <information>   nm_device_new(): waiting for device's worker thread to start
NetworkManager: <information>   nm_device_new(): device's worker thread started, continuing.
NetworkManager: <information>   Now managing wired device 'eth1'.
===== it is not wired, and it does not exist =====
NetworkManager: <information>   Deactivating device eth1.
NetworkManager: <information>   Will activate wired connection 'eth0' because it now has a link.
NetworkManager: <information>   Device eth0 activation scheduled...
NetworkManager: <debug info>    [1133521482.554844]  (): found config /etc/sysconfig/network/ifcfg-eth-id-00:01:4a:19:1e:cb for if eth0
===== this works now ======

Also, nm-applet now shows me 2 wired interfaces (i will attach a small screenshot).

if i now modprobe ipw2200, NM does not notice this (no output on the console at all) and wireless does not work.
Comment 1 Forgotten User ZhJd0F0L3x 2005-12-02 11:09:19 UTC
Created attachment 59687 [details]
screenshot of the nm-applet popup
Comment 2 Forgotten User ZhJd0F0L3x 2005-12-02 11:30:36 UTC
further investigation shows that this looks like a HAL problem.
- boot, but don't load ipw2200
- start hal
- lshal shows, that the pci device is found, but no network device is found.
- now load ipw2200
- hal does not recognize this.
- start NetworkManager
- NM only sees eth0, the wired interface.

The other way round it is the same: if you rmmod ipw2200, HAL insists that there is a device with sysfs path /sys/class/net/eth1 although there is no eth1 anymore.
lshal --monitor shows nothing when insmod/rmmoding ipw2200.

taking HAL maintainer into CC:
Comment 3 Robert Love 2005-12-02 17:47:24 UTC
Yes, this is a HAL bug or a bug in our module handling / hotplugging of network devices.

Also - does everything work if you don't mess with anything?  E.g., let the modules load as intended.

I am reassigning to dkukawka, but someone else might want to own this.
Comment 4 Kay Sievers 2005-12-09 15:59:22 UTC
NM requires the info.linux.driver property set at the physical device. A later module load seems not to create that property. Only the coldplug scan during HAL startup does this.
Comment 5 Kay Sievers 2005-12-09 18:10:18 UTC
Should be fixed in HAL CVS now.
Comment 6 Robert Love 2005-12-09 19:08:41 UTC
*** Bug 136417 has been marked as a duplicate of this bug. ***
Comment 7 Danny Al-Gaaf 2005-12-10 14:39:30 UTC
submitted new package to STABLE