Bug 1774242
| Summary: | RFE: need better warnings for invalid .netdev files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Thomas Köller <thomas> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 31 | CC: | lnykryn, msekleta, ssahani, s, systemd-maint, zbyszek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | systemd-243.6-1.fc31 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-02-07 01:51:09 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: | |||
Does it work with [NetDev] ? (In reply to Zbigniew Jędrzejewski-Szmek from comment #1) > Does it work with [NetDev] ? Indeed, it does. systemd-networkd man page has both [NETDEV] and [NetDev], but not [Netdev]. Thanks! systemd-243.6-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-86484c6d23 systemd-243.6-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: I want to instantiate a network interface of kind 'dummy' by placing the following file (named 70-blackhole.netdev) in /etc/systemd/network: ---- Start of file ----- [Netdev] Description=Blackhole - discard all packets Name=blackhole Kind=dummy MTUBytes=65536 MACAddress=02:19:55:00:00:01 ----- End of file ----- Version-Release number of selected component (if applicable): Name : systemd Version : 243 Release : 4.gitef67743.fc31 Architecture : x86_64 How reproducible: always Steps to Reproduce: Create a file named /etc/systemd/network/70-blackole.netdev with contents shown above, the do sudo systemctl reload-or-restart systemd-networkd.service Actual results: [thomas@sarkovy netif]$ systemctl status systemd-networkd.service ● systemd-networkd.service - Network Service Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2019-11-19 21:48:52 CET; 49s ago Docs: man:systemd-networkd.service(8) Main PID: 23585 (systemd-network) Status: "Processing requests..." Tasks: 1 (limit: 18203) Memory: 1.5M CPU: 521ms CGroup: /system.slice/systemd-networkd.service └─23585 /usr/lib/systemd/systemd-networkd Nov 19 21:48:52 sarkovy systemd[1]: Starting Network Service... Nov 19 21:48:52 sarkovy systemd-networkd[23585]: NetDev has no Kind= configured in /etc/systemd/network/70-blackhole.netdev. Ignoring Nov 19 21:48:52 sarkovy systemd-networkd[23585]: Enumeration completed Nov 19 21:48:52 sarkovy systemd[1]: Started Network Service. Nov 19 21:48:52 sarkovy systemd-networkd[23585]: eth_wlan: IPv6 successfully enabled Nov 19 21:48:52 sarkovy systemd-networkd[23585]: eth_lan: IPv6 successfully enabled No new network interface is created. Expected results: A new network interface should show up. Additional info: