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 - ifname= boot option crashes the installation
Summary: ifname= boot option crashes the installation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-29 08:29 UTC by Radek Vykydal
Modified: 2021-02-15 10:30 UTC (History)
3 users (show)

Fixed In Version: anaconda-33.16.3.4-1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:23:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
The traceback (2.58 MB, text/plain)
2020-05-29 08:29 UTC, Radek Vykydal
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4729 0 None None None 2020-11-04 03:23:45 UTC

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


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