Bug 2175664

Summary: Bond is not configured correctly when in active/backup and BOOTIF is present on kernel command line
Product: Red Hat Enterprise Linux 9 Reporter: Renaud Métrich <rmetrich>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED MIGRATED QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 9.1CC: jkonecny, rvykydal, sbarcomb
Target Milestone: rcKeywords: MigratedToJIRA
Target Release: ---Flags: pm-rhel: mirror+
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: 2023-09-18 16:06:05 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:

Description Renaud Métrich 2023-03-06 09:29:28 UTC
Description of problem:

When installing a system through the network with the network interfaces configured as a bond in active/backup mode, the final network configuration generated by nm-initrd-generator is not correct, leading to the bond to only enslave a single interface when finishing the installation.

The root cause for this seems to have BOOTIF keyword cause additional network interfaces to be created.

Example below.

PXE snippet (booting on enp1s0):
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
IPAPPEND 2
DEFAULT network

label network
    kernel rhel91/vmlinuz
    append initrd=rhel91/initrd.img vconsole.keymap=fr console=tty0 console=ttyS0,115200n8 inst.ks=http://192.168.122.1/bond91.ks ip=bond0:dhcp bond=bond0:enp1s0,enp2s0:mode=active-backup inst.sshd
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

KS snippet:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
network  --bootproto=dhcp --device=bond0 --bondslaves=enp1s0,enp2s0 --bondopts=mode=active-backup --noipv6 --activate --hostname=vm-bond91
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

What shows once in installer:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
[anaconda root@vm-bond91 ~]# ls -l /etc/NetworkManager/system-connections/
total 12
-rw-------. 1 root root 392 Mar  6 09:09 bond0.nmconnection
-rw-------. 1 root root 182 Mar  6 09:09 enp1s0.nmconnection
-rw-------. 1 root root 282 Mar  6 09:09 enp2s0.nmconnection
[anaconda root@vm-bond91 ~]# grep slave /etc/NetworkManager/system-connections/*
/etc/NetworkManager/system-connections/enp2s0.nmconnection:slave-type=bond
[anaconda root@vm-bond91 ~]# nmcli con show
NAME               UUID                                  TYPE      DEVICE 
bond0              137aa253-3c03-40e4-b800-58d26188beb7  bond      bond0  
enp1s0             848a2f9b-93d5-4f8c-84ae-dd9dd0426964  ethernet  enp1s0 
enp2s0             166e056c-5dd4-4095-9c38-32991580b6d3  ethernet  enp2s0 
BOOTIF Connection  a5258cb0-6748-4eeb-b8dc-ce428ccea9b0  ethernet  --     
enp1s0             add3732a-aa2c-436e-9883-c9b89ff05bed  ethernet  --     
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Here above 3 first connections are green (active), but configuration files for bond are not correct, only "enp2s0" is part of the bond.

When removing BOOTIF, the bond is correctly configured.

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

anaconda-34.25.1.14-1.el9 (RHEL9.1 DVD)

How reproducible:

Always

Steps to Reproduce:
1. Create a VM with 2 network interfaces on same physical network (NAT in my case)
2. Boot with the snippets above

Actual results:

bond0 on installed system is not correct

Expected results:

bond0 configured correctly

Comment 1 RHEL Program Management 2023-09-18 16:04:13 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 2 RHEL Program Management 2023-09-18 16:06:05 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.

Comment 3 Red Hat Bugzilla 2024-01-17 04:25:28 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days