Bug 2196797

Summary: RFE: enhance the resolution for "Network configuration for unsupported device types detected" actor
Product: Red Hat Enterprise Linux 8 Reporter: Renaud Métrich <rmetrich>
Component: leapp-repositoryAssignee: Maria Simon <masimonm>
Status: NEW --- QA Contact: upgrades-and-conversions
Severity: medium Docs Contact:
Priority: medium    
Version: 8.7CC: sfaye, till
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Story
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Renaud Métrich 2023-05-10 09:11:46 UTC
Description of problem:

Currently, when a /etc/sysconfig/network-scripts/ifcfg-XXX file exists, the upgrade is inhibited and following reported:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
Risk Factor: high (inhibitor)
Title: Network configuration for unsupported device types detected
Summary: RHEL 9 does not support the legacy network-scripts package that was deprecated in RHEL 8 in favor of NetworkManager. Files for device types that are not supported by NetworkManager are present in the system. Files with the problematic configuration:
    - /etc/sysconfig/network-scripts/ifcfg-XXX
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

This message is vague, IMHO it should tell the user to use "nmcli connection migrate ..." commands instead.

Version-Release number of selected component (if applicable):

leapp-upgrade-el8toel9-0.17.0-3.el8.noarch

How reproducible:

Always, just enough to have a ifcfg file

Comment 2 Petr Stodulka 2023-05-10 10:35:53 UTC
Hi Renaud, thank you for the feedback and tip. In the meanwhile, the original report is going to be improved with the upcoming release, adding a remediation instruction (read below), however the command is not mentioned. Possibly another improvement could be done. Assinging to Lubomir who is SME in this area to decide this.

The upstream PR:
  https://github.com/oamg/leapp-repository/pull/969

The added remediation msg:
~~~
Ensure the ifcfg files comply with format described in nm-settings-ifcfg-rh(5) manual and remove the NM_CONTROLLED key from them.
~~~