Skip to content

tentacle: qa/tasks: capture CommandCrashedError when running nvme list cmd - #69232

Merged
batrick merged 1 commit into
ceph:tentaclefrom
rkachach:fix_issue_77001
Jun 2, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
rkachach:fix_issue_77001

Conversation

@rkachach

@rkachach rkachach commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Backport of #69163

The safe_while retry loop does not catch exceptions, so a CommandCrashedError from nvme list bypasses it entirely. Catch CommandCrashedError and continue the retry loop instead.

Fixes: https://tracker.ceph.com/issues/77001 (Tentacle backport tracker)
Fixes: https://tracker.ceph.com/issues/76984 (original tracker)

(cherry picked from commit 0bf55d6)

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

The safe_while retry loop does not catch exceptions, so a
CommandCrashedError from `nvme list` bypasses it entirely. Catch
CommandCrashedError and continue the retry loop instead.

Fixes: https://tracker.ceph.com/issues/77001 (Tentacle backport tracker)
Fixes: https://tracker.ceph.com/issues/76984 (original tracker)

Signed-off-by: Redouane Kachach <[email protected]>
(cherry picked from commit 0bf55d6)
@github-actions github-actions Bot added the tests label Jun 2, 2026
@github-actions github-actions Bot added this to the tentacle milestone Jun 2, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jun 2, 2026
@rkachach
rkachach requested a review from batrick June 2, 2026 08:50
@rkachach rkachach changed the title qa/tasks: capture CommandCrashedError when running nvme list cmd tentacle: qa/tasks: capture CommandCrashedError when running nvme list cmd Jun 2, 2026
@batrick
batrick merged commit 9ed4d66 into ceph:tentacle Jun 2, 2026
10 checks passed
rkachach added a commit to rkachach/ceph that referenced this pull request Sep 4, 2026
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.

Assisted-by: ChatGPT <chatgpt.com>
Signed-off-by: Redouane Kachach <[email protected]>
rkachach added a commit to rkachach/ceph that referenced this pull request Sep 23, 2026
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]>
kginonredhat pushed a commit to kginonredhat/ceph that referenced this pull request Sep 30, 2026
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]>
batrick pushed a commit to batrick/ceph that referenced this pull request Sep 30, 2026
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)
dparmar18 pushed a commit to dparmar18/ceph that referenced this pull request Oct 5, 2026
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]>
batrick pushed a commit to batrick/ceph that referenced this pull request Oct 7, 2026
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)
batrick pushed a commit to batrick/ceph that referenced this pull request Oct 7, 2026
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)
batrick pushed a commit that referenced this pull request Oct 7, 2026
nvme list -o json segfaults deterministically on kernel 6.8.0-*
nodes (ubuntu_22.04/24.04), exhausting all 15 safe_while
retries (#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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releng-audit-pass Release engineering: passed backport verification audit. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants