Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1841469

Summary: ifname= boot option crashes the installation
Product: Red Hat Enterprise Linux 8 Reporter: Radek Vykydal <rvykydal>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: jstodola, lnykryn, pzatko
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-33.16.3.4-1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:23:25 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:
Attachments:
Description Flags
The traceback none

Description Radek Vykydal 2020-05-29 08:29:59 UTC
Created attachment 1693288 [details]
The traceback

Description of problem:

Renaming network devices using ifname= option is not working.
Anaconda tracebacks at the end of installation.

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

RHEL-8.3.0-20200529.n.0
anaconda-33.16.3.3-1.el8.x86_64.rpm
systemd-239-30.el8_2.x86_64.rpm 

How reproducible:

Always

Steps to Reproduce:
1. Perform (GUI pxe in my case) installation with similar boot options:
ifname=ifname0:52:54:00:9f:21:28 ip=ifname0:dhcp
2.
3.

Actual results:

Traceback (attached) at the end of installation.

Expected results:

Installation finishes and installed system has the network device renamed to ifname0

Additional info:

The failure is caused by missing /etc/systemd/network directory on installed system.

Comment 1 Radek Vykydal 2020-05-29 08:31:13 UTC
The failure is a fallback of the rebase. On Fedora systemd package contains /etc/systemd/network directory, on RHEL 8.3 does not.

Comment 2 Radek Vykydal 2020-05-29 08:38:43 UTC
Failing kickstart test for a reference: https://github.com/rhinstaller/kickstart-tests/blob/master/ifname-httpks.sh

Comment 3 Radek Vykydal 2020-05-29 08:48:08 UTC
(In reply to Radek Vykydal from comment #1)
> The failure is a fallback of the rebase. On Fedora systemd package contains
> /etc/systemd/network directory, on RHEL 8.3 does not.

Lukas, any advice - should we check and create the directory on RHEL?
Since this PR:
https://github.com/rhinstaller/anaconda/commit/07692f48a5cf90270681e88108dd2aa7155a7220
we are dropping file 10-anaconda-ifname-ifname0.link there:

# Generated by Anaconda based on ifname= installer boot option.                 
[Match]                                                                         
MACAddress=52:54:00:9f:21:28                                                                   
                                                                                 
[Link]                                                                          
Name=ifname0

Comment 4 Radek Vykydal 2020-05-29 10:50:04 UTC
Or would it be safer to not create the link file on RHEL and rely only on initscripts mechanism (HWADDR+DEVICE in ifcfg file)?

Comment 5 Radek Vykydal 2020-05-29 13:24:37 UTC
https://github.com/rhinstaller/anaconda/pull/2622

Comment 11 errata-xmlrpc 2020-11-04 03:23:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4729