Bug 2192573

Summary: systemd-network-generator.service fails - "Failed to start Generate network units from Kernel command line"
Product: Red Hat Enterprise Linux 9 Reporter: Yurii Prokulevych <yprokule>
Component: systemdAssignee: Lukáš Nykrýn <lnykryn>
Status: NEW --- QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: dtardon, dustymabe, fsumsal, msekleta, sasha, systemd-maint-list
Target Milestone: rcKeywords: Improvement, Triaged
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: 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:

Comment 5 Michal Sekletar 2023-05-02 14:21:44 UTC
Having systemd-network-generator in RHEL-9 is a mistake. We even don't compile networkd hence shipping the service that generates config files for networkd is pointless. I'd have thought that -Dnetwork=false option would also disable compilation of systemd-network-generator. In any case, we should drop it from RHEL.

Comment 6 Dusty Mabe 2023-06-06 20:10:46 UTC
(In reply to Michal Sekletar from comment #5)
> Having systemd-network-generator in RHEL-9 is a mistake. We even don't
> compile networkd hence shipping the service that generates config files for
> networkd is pointless. I'd have thought that -Dnetwork=false option would
> also disable compilation of systemd-network-generator. In any case, we
> should drop it from RHEL.

I think it may be a bit premature to drop it from RHEL9. We need the udev parts of systemd-network-generator.service. 

This is also reported against OpenShift in JIRA in https://issues.redhat.com/browse/OCPBUGS-12867

I opened two upstream issues related to this (sorry I didn't see this bug first):

- systemd-network-generator support for ip=NIC:dhcp,dhcp6
    - https://github.com/systemd/systemd/issues/27944
- network-generator: split out udev pieces from systemd-network-generator
    - https://github.com/systemd/systemd/issues/27945