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 2018301 - Kickstart network --mtu option is ignored if the command is added via %include
Summary: Kickstart network --mtu option is ignored if the command is added via %include
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Radek Vykydal
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 2019813
TreeView+ depends on / blocked
 
Reported: 2021-10-28 18:54 UTC by Chris Adams
Modified: 2022-05-10 13:59 UTC (History)
5 users (show)

Fixed In Version: anaconda-33.16.6.3-1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2019813 (view as bug list)
Environment:
Last Closed: 2022-05-10 13:37:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
anaconda journal.log (3.41 MB, text/plain)
2021-11-03 00:37 UTC, Chris Adams
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-101331 0 None None None 2021-11-01 19:41:37 UTC
Red Hat Issue Tracker RTT-3969 0 None None None 2021-11-03 14:46:09 UTC
Red Hat Issue Tracker RTT-3970 0 None None None 2021-11-03 14:46:14 UTC
Red Hat Product Errata RHBA-2022:1780 0 None None None 2022-05-10 13:37:14 UTC

Description Chris Adams 2021-10-28 18:54:43 UTC
I set up several network interfaces in a kickstart file, including like this:

network --device=eno3 --mtu=9000 --bootproto=static --ip=10.0.8.5 --netmask=255.255.255.0 --noipv6 --activate

Everything was set except for the MTU - it was not set during install or on the installed system (no MTU= line at all in ifcfg files).

Comment 1 Radek Vykydal 2021-11-02 15:03:10 UTC
Could you please attach log file /var/log/anaconda/journal.log from the installed system?

Comment 2 Chris Adams 2021-11-03 00:37:54 UTC
Created attachment 1839465 [details]
anaconda journal.log

One thing I didn't think but could matter - this kickstart sets the network config in a %pre script that's then %included.

Comment 3 Radek Vykydal 2021-11-03 11:47:10 UTC
Upstream PR with fix:
https://github.com/rhinstaller/anaconda/pull/3678

Comment 4 Radek Vykydal 2021-11-03 11:50:33 UTC
Reproduced locally using this kickstart:

%include /tmp/ksinclude
%pre
echo "network --device=ens3 --bootproto=dhcp --mtu=9000" > /tmp/ksinclude
%end

Comment 5 Radek Vykydal 2021-11-03 11:54:20 UTC
PR for a kickstart test update: https://github.com/rhinstaller/kickstart-tests/pull/613

Comment 6 Jan Stodola 2021-11-03 13:45:07 UTC
RHEL-9 clone: bug 2019813

Comment 8 Radek Vykydal 2021-11-05 13:07:25 UTC
https://github.com/rhinstaller/anaconda/pull/3685

Comment 9 Jan Stodola 2021-11-18 15:16:39 UTC
Reproduced on RHEL-8.5 using the "network-options-pre" kickstart-test:
*** Failed check: DEFROUTE=no in /etc/sysconfig/network-scripts/ifcfg-enp2s0 or ipv4.never-default=true in /etc/NetworkManager/system-connections/enp2s0.nmconnection
*** Failed check: MTU=9000 in /etc/sysconfig/network-scripts/ifcfg-enp3s0 or ethernet.mtu=9000 in /etc/NetworkManager/system-connections/enp3s0.nmconnection

The same test passed on RHEL-8.6.0-20211117.d.3 with anaconda-33.16.6.3-1.el8:
INFO: RESULT:network-options-pre:b3a4cd274619:SUCCESS:test done

Marking as Verified:Tested

Comment 12 Jan Stodola 2021-11-22 09:38:09 UTC
anaconda-33.16.6.3-1.el8 is included in RHEL-8.6.0-20211121.1, moving to VERIFIED.

Comment 14 errata-xmlrpc 2022-05-10 13:37:05 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-2022:1780


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