Bug 1254089
Summary: | Netlink error at 'link_change' function when net interface dynamic plug out and plug in on Xen | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Robin Lee <robinlee.sysu> | ||||||
Component: | NetworkManager | Assignee: | Beniamino Galvani <bgalvani> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.1 | CC: | bgalvani, dcbw, jklimes, lrintel, rkhan, robinlee.sysu, thaller, tlavigne, vbenes | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | NetworkManager-1.0.6-6.el7 | Doc Type: | Bug Fix | ||||||
Doc Text: |
When an ethernet interface was added at runtime, NetworkManager did not create a default DHCP connection in some cases. This has been fixed and now NetworkManager always creates a default ethernet connection for new interfaces.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-11-19 11:03:04 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: | |||||||||
Attachments: |
|
Description
Robin Lee
2015-08-17 07:18:42 UTC
What exactly is the problem? Obviously, there is an error logging. Is that the only problem? Apart from that, what does not work (not work as expected)? You say also "And the new net interface is not set up by NetworkManager by default.". Could you elaborate on that: what do you expect to happen, and what is happening instead? Thank you. By default NetworkManager would enable any wired connection with DHCP. But the re-added interface is not set up, until manually restarting NetworkManager. NetworkManager creates a default DHCP connection <info> (eth1): created default wired connection 'Wired connection 1' But it may not be upped due to missing carrier or something. Would you get output of "ip a" command to see the state of the interfaces? Ok, I think I can reproduce this. When the new link is detected NM tries to generate a default "Wired connection #" in nm_settings_device_added(). But if the link has not been initialized by udev yet, the function returns early because priv->unmanaged_flags = UNMANAGED_PLATFORM_INIT, and then the default connection is not created. Probably we should retry to generate the connection later, after the link becomes fully initialized. Robin, can you please attach NetworkManager logs with debug enabled so that I can verify you're hitting the same problem? Just run 'nmcli general logging level DEBUG', reproduce the issue and then post the relevant part of 'journalctl -u NetworkManager -b'. Thanks. Created attachment 1069925 [details]
[PATCH] device: retry creation of default connection after link is initialized
Patch LGTM (In reply to Beniamino Galvani from comment #6) > Created attachment 1069925 [details] > [PATCH] device: retry creation of default connection after link is > initialized patch merged to master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=b3b0b4625053d5647e2756bbe745652889684a21 Created attachment 1074357 [details]
debug log of the error
Sorry for my late response, this is debug log containing the error.
Creation of Wired connection for veth devices after uncommenting line ENV{ID_NET_DRIVER}=="veth", ENV{NM_UNMANAGED}="1" in /usr/lib/udev/rules.d/85-nm-unmanaged.rules works as expected. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-2315.html |