Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore nBFT network devices in anaconda #5771

Merged
merged 6 commits into from
Aug 20, 2024

Conversation

rvykydal
Copy link
Contributor

No description provided.

Resolves: RHEL-46014

The dracut networking and the 95nvmf module are using
ifname= kernel commandline arguments to pass desired network
interface setup as parsed from the ACPI NBFT table.
These are highly volatile values and often changing
upon each boot.

Thus avoid writing /etc/systemd/network interface link
files by Anaconda for any 'nbft*' network interface
as these are getting packed in initramfs, creating
havoc and conflicts with the actual networking setup
during early boot.
Copy link
Contributor

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on RHEL-9.5.0-20240731.4, confirming all working as expected!

@rvykydal
Copy link
Contributor Author

rvykydal commented Aug 8, 2024

/kickstart-test --testtype network

@rvykydal rvykydal changed the title Nbft ignore ifname Ignore nBFT network devices in anaconda Aug 8, 2024
@rvykydal rvykydal marked this pull request as ready for review August 8, 2024 12:52
@rvykydal
Copy link
Contributor Author

rvykydal commented Aug 8, 2024

/kickstart-test --testtype smoke

@@ -180,6 +180,10 @@ def _write_interface_rename_config(self, root, ifname_option_values, overwrite):
:type overwrite: bool
"""

# Avoid link files for 'nbft' interfaces as it breaks Boot from NVM over TCP
ifname_option_values = [value for value in ifname_option_values
if not value.startswith('nbft')]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use the is_nbft_device function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to have the code coverage, otherwise it looks good.
https://app.codecov.io/gh/rhinstaller/anaconda/pull/5771

Comment on lines +114 to +117
if is_nbft_device(device_name):
log.debug("Ignoring nBFT device %s", device_name)
continue

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm missing code coverage of this code.

Copy link
Contributor Author

@rvykydal rvykydal Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have the code around covered at all, I am not able to add it today. It would involve quite some thinking and mocking.
I just added test for the new functions in utils (utils deserves coverage update as well)

@rvykydal
Copy link
Contributor Author

/kickstart-test --testtype network

@rvykydal
Copy link
Contributor Author

/kickstart-test --testtype smoke

@rvykydal rvykydal merged commit e2262be into rhinstaller:master Aug 20, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants