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

Timberland final v3 with preserved autoconnect logic #7

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

mwilck
Copy link
Collaborator

@mwilck mwilck commented Apr 18, 2023

Changes

@mwilck mwilck mentioned this pull request Apr 18, 2023
3 tasks
@mwilck mwilck force-pushed the timberland_final_v3-mwilck branch from da7b094 to 7a62d85 Compare April 18, 2023 16:48
@mwilck mwilck force-pushed the timberland_final_v3-mwilck branch from 7a62d85 to 83a5260 Compare April 18, 2023 16:49
@mwilck mwilck mentioned this pull request Apr 18, 2023
1 task
# Make sure we don't use unsupported options with earlier versions.
NBFT_SUPPORTED=
# shellcheck disable=SC2016
/usr/sbin/nvme connect-all --help 2>&1 | sed -n '/[[:space:]]--nbft[[:space:]]/q1;$q0' \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. Let's push this upstream.

Copy link
Collaborator

@johnmeneghini johnmeneghini left a comment

Choose a reason for hiding this comment

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

Looks good.

@mwilck
Copy link
Collaborator Author

mwilck commented Apr 20, 2023

@johnmeneghini, if you approve, please merge this into your branch. It would feel odd if I did it.

mwilck added 3 commits April 21, 2023 11:28
The hostname field in the NBFT is optional. Don't print a confusing
error message 'NBFT: jq error while processing ".host_name"' if it is missing.
Since nvme-cli 2.0, configuration of subsystems to connect to is
stored under `/etc/nvme` in either `discovery.conf` or `config.json`.
Attempt discovery also if the latter exists, but not the former.
Also, install "config.json" if it's present on the root FS.

As before, "rd.nvmf.discover=fc,auto" will force either file to be ignored,
and NBFT-defined targets take precedence if found.
This parameter causes any NVMe-oF targets specified during initramfs
build to be ignored. This includes discovery.conf and config.json,
as well as hostonly parameters determined at initramfs build time.

The rationale is that network topology and available connections
may have changed since the initramfs was built. Statically configured
connections may fail or time out, causing potential boot failure.
This parameter allows skipping such broken connections, and relying
on dynamic configuration (NBFT or FC-autoconnect) exclusively.
@johnmeneghini johnmeneghini force-pushed the timberland_final_v3-mwilck branch from 83a5260 to 9865102 Compare April 22, 2023 03:03
@johnmeneghini
Copy link
Collaborator

I have rebased this branch onto the new timberland_final_v3 branch. The changes pass all tests with my rh-linux-poc so I think they are good to go upstream.

@johnmeneghini johnmeneghini merged commit 1538210 into timberland_final_v3 Apr 25, 2023
@mwilck
Copy link
Collaborator Author

mwilck commented Apr 27, 2023

Thanks John!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants