Bug 1978316

Summary: Deprecation of ifcfg files may require action for s390utils' udev rule
Product: Red Hat Enterprise Linux 9 Reporter: Thomas Haller <thaller>
Component: s390utilsAssignee: Dan Horák <dhorak>
Status: CLOSED WONTFIX QA Contact: Vilém Maršík <vmarsik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: fge, rvr, thaller, till
Target Milestone: betaKeywords: 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: 2023-01-01 07:27: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:

Description Thomas Haller 2021-07-01 14:23:55 UTC
s390utils ships a udev rule and a script that reads ifcfg files and configures the interface ([1]).

http://pkgs.devel.redhat.com/cgit/rpms/s390utils/tree/ccw_init?id=5871612e5a2a6397914e6c5564814dd146da8a62



On RHEL8, "network-scripts" (the `network.service` from "initscripts" package) is already deprecated.

On RHEL9, NetworkManager will stop writing ifcfg file by default, see bug 1894877.



This may require action from s390utils to do something, or at least to discuss, document and investigate potential problems.

Comment 1 Thomas Haller 2021-07-01 14:34:31 UTC
ah, I missed that on RHEL9 this already changed:

http://pkgs.devel.redhat.com/cgit/rpms/s390utils/tree/ccw_init?id=2ade7f47aa718238a50b44a4f3a4a75ab873715f#n40

Sorry about that.



So, I guess this is already under control/fixed?




It does however make me wonder whether a (udev) shell script "grepping" through NetworkManager configuration is the right solution? Is there are reason this is done by udev, and not NetworkManager? At least, the setting of the "OPTIONS=" could be done by NetworkManager, or why not?

Note that in a similar vain, udev's rename_interfaces (which currently parses ifcfg files), won't be updated to parse keyfiles (bug 1851279).

Comment 2 Dan Horák 2021-07-01 14:53:55 UTC
IIRC we had to update the network interface initialization for the installer environment, because it started to use keyfiles already. So we should be safe. But your questions make sense and I will prepare a meaningful answer. Or perhaps it will be a start of a new discussion.

Comment 3 Julian Wiedmann 2021-07-08 14:08:30 UTC
What's still missing for full compatibility is that ccw_init needs to extract all the other s390-options (except for 'layer2') from the NM keyfile. Correct Dan?

Comment 4 Dan Horák 2021-07-27 12:54:35 UTC
(In reply to Julian Wiedmann from comment #3)
> What's still missing for full compatibility is that ccw_init needs to
> extract all the other s390-options (except for 'layer2') from the NM
> keyfile. Correct Dan?

I believe that's right, only the layer2 option is extracted/used now. And IIRC I had quite hard time to find an "ini files" parser for shell.

Comment 8 RHEL Program Management 2023-01-01 07:27:44 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.