Repository navigation
Conversation
nvme list -o json segfaults deterministically on kernel 6.8.0-* nodes (ubuntu_22.04/24.04), exhausting all 15 safe_while retries (ceph#69232 lets it retry, but every retry hits the same crash) and failing smoke-roleless nvme_loop jobs. This adds a fallback: after 5 consecutive CommandCrashedErrors, skip nvme list -o json and discover devices via sysfs instead. Each loop subsystem is connected using the device's basename as its NQN, which the kernel exposes at /sys/class/nvme/nvmeX/subsysnqn; we match that against /sys/class/nvme/nvmeX/nvmeXnY to recover the device path, with no nvme-cli JSON parsing involved. The existing JSON path is unchanged for nodes where it works normally — json_failures resets on any success, so the fallback only triggers on sustained crashes. https://tracker.ceph.com/issues/77106 Assisted-by: ChatGPT <chatgpt.com> Signed-off-by: Redouane Kachach <[email protected]> (cherry picked from commit 01d8ea8)
`nvme_loop.py` falls back to sysfs-based device discovery when `nvme list -o json` repeatedly crashes. The existing fallback walks controller-specific paths such as: ```text /sys/class/nvme/nvmeX/nvmeXnY ``` This is not reliable with native NVMe multipath, where the user-visible namespace-head device may be exposed separately under `/sys/class/block` and use a different naming relationship from the controller path. As a result, the fallback can return no devices even though the newly connected NVMe loop devices are already visible through `lsblk`, eventually causing the task to fail with `MaxWhileTries`. This change: * records the existing NVMe namespace devices before creating the loop connections; * discovers visible namespace-head devices from `/sys/class/block`; * identifies the new loop devices using the before/after difference; * excludes partitions and controller-path devices. The normal `nvme list -o json` path remains unchanged. Only the fallback discovery path is modified. https://tracker.ceph.com/issues/77106 Assisted-by: ChatGPT <chatgpt.com> Signed-off-by: Redouane Kachach <[email protected]> (cherry picked from commit b51649d)
Restrict sysfs fallback discovery to NVMe namespace heads whose subsystem NQN matches one of the scratch-device basenames. This preserves native multipath-compatible discovery while preventing unrelated NVMe namespaces that appear during setup from being selected and potentially passed to bluestore_zap(). https://tracker.ceph.com/issues/77106 Assisted-by: ChatGPT <chatgpt.com> Signed-off-by: Redouane Kachach <[email protected]> (cherry picked from commit c96a0e1)
Contributor
|
jenkins test docs |
guits
approved these changes
Sep 29, 2026
Contributor
|
@batrick do we need a qa tracker ticket for this? |
Contributor
|
This PR has been added to wip-yuri5-testing-20261005.150507-tentacle. |
Member
|
Moving this to #72064 due to merge conflicts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/80840
backport of #69837
parent tracker: https://tracker.ceph.com/issues/77106
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh