Bug 906244
| Summary: | [Hyper-v][RHEL6.4]The Hyper-V guest NIC name(ethN) changed when remove and reload the hv_netvsc driver | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Shengnan Wang <shwang> | ||||||||||||
| Component: | udev | Assignee: | Harald Hoyer <harald> | ||||||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||||||
| Severity: | medium | Docs Contact: | |||||||||||||
| Priority: | medium | ||||||||||||||
| Version: | 6.4 | CC: | dnie, jingli, kvolny, leiwang, shwang, udev-maint-list, vkuznets, xuli, yacao | ||||||||||||
| Target Milestone: | rc | ||||||||||||||
| Target Release: | --- | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||
| Clone Of: | |||||||||||||||
| : | 1032396 (view as bug list) | Environment: | |||||||||||||
| Last Closed: | 2015-03-27 08:25:03 UTC | Type: | Bug | ||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||
| Documentation: | --- | CRM: | |||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||
| Embargoed: | |||||||||||||||
| Bug Depends On: | |||||||||||||||
| Bug Blocks: | 1032396 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Shengnan Wang
2013-01-31 09:55:36 UTC
Created attachment 690803 [details]
udevadm_monitor_output_modprobe_hv_netvsc.jpg
Created attachment 690804 [details]
udevadm_monitor_output_modprobe_-r_hv_netvsc.jpg
Created attachment 690805 [details]
var_log_messages_reload_hv_netvsc.txt
Created attachment 690806 [details]
var_log_messages_remove_hv_netvsc.txt
Created attachment 690807 [details]
rename_device_log.txt
just a note ... I've tried the test scenario using qemu instead of hyper-v the NICs created by qemu are driven by the module 8139cp it seems that on the first run udev writes /etc/udev/rules.d/70-persistent-net.rules then this file is responsible for renaming of the interfaces - if eth0 is removed, eth1 becomes the new eth0 but based on the MAC it is renamed back to eth1 (for forgetful like me - you have to specify MACs on qemu commandline, otherwise you'll end up removing eth1 instead of eth0 :-)) this renaming works not just on system boot, but also if the 8139cp module is removed then modprobed again so, my question would be, why /etc/udev/rules.d/70-persistent-net.rules isn't involved in your scenario? I encounter the similar issue. Environment: Hyper-V Manager 2012 + RHEL6.5_x86 kernal: 2.6.32-415.el6.i686 My NIC name is eth2, modprobe -r hv_netvsc and modprobe hv_netvsc the NIC eth2 disappear and display eth0 then service network restart It tell "Device eth2 does not seem to be present, delaying initialization", so you only need reboot OS to receive IP. after reboot eth2 is ok, eth0 disappear(In fact I don't have eth0) I use "Network Adapter" not "Legacy Network Adapter" This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. (In reply to Shengnan Wang from comment #0) > 4) Check the guest network with "ifconfig -a" after step 3, the guest fails > to get ip with restart the network directly. The only one nic named "eth0". If there is only _one_ NIC with "ifconfig -a", what is the contents of: # ls -l /sys/class/net/ ?? If the kernel module only initializes _one_ NIC, what can udev do about it? udev does not and can not magically remove any interface. (In reply to Harald Hoyer from comment #10) > (In reply to Shengnan Wang from comment #0) > > 4) Check the guest network with "ifconfig -a" after step 3, the guest fails > > to get ip with restart the network directly. The only one nic named "eth0". > > If there is only _one_ NIC with "ifconfig -a", what is the contents of: > # ls -l /sys/class/net/ > > ?? > > If the kernel module only initializes _one_ NIC, what can udev do about it? > udev does not and can not magically remove any interface. I have tried with RHEL6.6, there is no this issue in RHEL6.6 now. After step 3, the second NIC can be renamed correctly after modprobe the hv_netvsc again. Close this bug as there is no this issue since RHEL6.6, see Comment 11. |