Bug 1741678
Summary: | udevd attempts to rename VLAN devices to the name of the base interface | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chris Siebenmann <cks-rhbugzilla> | ||||||
Component: | systemd | Assignee: | systemd-maint | ||||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 30 | CC: | lnykryn, msekleta, s, steved424, systemd-maint, zbyszek | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-05-26 18:39:44 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
Chris Siebenmann
2019-08-15 19:39:29 UTC
I think this is most likely caused by some "rogue" udev rule provided externally. Please attach the output of "systemd-analyze cat-config udev/rules.d" and "sudo SYSTEMD_LOG_LEVEL=debug udevadm test /sys/class/net/em-dev2". I've upgraded to Fedora 31 since this report, but the issue appears to still be present based on the 'failed to rename' messages still being present in journalctl logs. I'll attach the two files of output to this issue. Created attachment 1647554 [details]
output from 'systemd-analyze cat-config udev/rules.d'
Created attachment 1647555 [details]
output from 'SYSTEMD_LOG_LEVEL=debug udevadm test /sys/class/net/em-dev2'
I think I see what is happening here from the udevadm output. The VLAN devices have the same MAC as the underlying physical device, and so they match the /etc/systemd/network/10-em0-amd.link file that recognizes the physical device and gives it a name: # ASUS Prime X370-PRO AMD motherboard onboard port, for the new hardware. [Match] MACAddress=60:45:cb:a0:e8:dd [Link] Description=Onboard port MACAddressPolicy=persistent Name=em0 I think that networkd or udevd must have changed how matching was handled in some version, so that now this should have a 'Type=' of some value. But I don't know what 'Type=' to use here; I can't see what DEVTYPE udev assigns for physical ports in eg 'udevadm test' of one. Yeah, in systemd-241 we added a new NamingPolicy=keep value. The default .link file was changed to have "keep", while the general idea was that user-provided files would not include "keep", so that they would rename interfaces even if they were previously given a name by userspace. This was done because users were confused and annoyed when their explicit configuration was ignored. But for your case, the effect is bad. I think the easiest solution would be to add 'NamePolicy=keep' to your .link file. This should be enough to keep the vlan interfaces from being renamed. Please let me know if that works for you. I'm not sure if we need to make changes upstream. We didn't consider this case when making the change, but at this point I'm not sure if changing things yet again is better then keeping them stable. Adding 'NamePolicy=keep' to my 10-em0-amd.link (in the '[Link]' section) appears to have resolved this issue for me; I no longer see logged complaints about 'failed to rename ...' and the systemd sys-subsystem-net-devices-<...>.device units are now created and shown as active, which they weren't before. This message is a reminder that Fedora 30 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '30'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 30 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 30 changed to end-of-life (EOL) status on 2020-05-26. Fedora 30 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. Having just hit this, I can confirm setting Type= appropriately works as well, and may be less brittle. "networkctl status <interface>" shows the type. For completeness, relevant upstream bug reports: https://github.com/systemd/systemd/issues/11992 https://github.com/systemd/systemd/issues/11921 For me, this issue seemed to be having a knock-on effect of preventing complete vlan initialization in a similar way to: https://github.com/systemd/systemd/issues/12308 (though the underlying cause in that report is different) |