Bug 2190375 - Warn that ifcfg is deprecated and will not implement new features
Summary: Warn that ifcfg is deprecated and will not implement new features
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: NetworkManager
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: NetworkManager Development Team
QA Contact: Matej Berezny
Marc Muehlfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-28 07:59 UTC by Beniamino Galvani
Modified: 2023-08-04 11:07 UTC (History)
10 users (show)

Fixed In Version: NetworkManager-1.43.11-1.el9
Doc Type: Enhancement
Doc Text:
.NetworkManager notifies when using the deprecated `ifcfg` format Connection profiles in `ifcfg` format are deprecated in RHEL 9 (see xref:BZ-1894877[]). With this update, NetworkManager notifies users about the deprecation of this format: * NetworkManager logs the following warning to the `systemd` journal if it processes a connection profile in `ifcfg` format in the `/etc/sysconfig/network-scripts/` directory: + ---- Warning: the ifcfg-rh plugin is deprecated, please migrate connections to the keyfile format using "nmcli connection migrate" ---- * The `nmcli` utility reports the following error if you try to modify a property that is not supported in `ifcfg` format: + ---- Error: Failed to modify connection '<name>': failed to update connection: The ifcfg-rh plugin doesn't support setting '<property>'. If you are modifying an existing connection profile saved in ifcfg-rh format, please migrate the connection to keyfile using 'nmcli connection migrate <connection_uuid>' or via the Update2() D-Bus API and try again. ---- As a result of these enhancements, NetworkManager now notifies users if they still use or modify connection profiles in the deprecated `ifcfg` format. For further details about migrating profiles from `ifcfg` to keyfile format, see link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_networking/assembly_networkmanager-connection-profiles-in-keyfile-format_configuring-and-managing-networking#proc_migrating-networkmanager-profiles-from-ifcfg-to-keyfile-format_assembly_networkmanager-connection-profiles-in-keyfile-format[Migrating NetworkManager profiles from ifcfg to keyfile format].
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-502 0 None None None 2023-04-28 08:02:04 UTC
Red Hat Issue Tracker RHELPLAN-156016 0 None None None 2023-04-28 08:02:09 UTC
freedesktop.org Gitlab NetworkManager NetworkManager-ci merge_requests 1464 0 None opened general: added ifcfg_deprecated_log_warning test 2023-07-24 15:17:13 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1570 0 None merged Deprecate the ifcfg-rh setting plugin 2023-07-05 09:18:26 UTC

Description Beniamino Galvani 2023-04-28 07:59:34 UTC
Warn users that ifcfg-rh is deprecated and will not implement new features:

 - log a warning at startup if any profile exists in ifcfg-rh format

 - print error in nmcli when a property is not supported by ifcfg


Note You need to log in before you can comment on or make changes to this bug.