Project

General

Profile

Actions

Bug #75282

closed
DS NM

ceph CLI does not propagate orchestrator error codes - wip-rocky10-branch-of-the-day-2026-02-24-1771941190

Bug #75282: ceph CLI does not propagate orchestrator error codes - wip-rocky10-branch-of-the-day-2026-02-24-1771941190

Added by Deepshikha Singh 9 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Due date:
% Done:

0%

Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
ceph-deploy
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v20.3.0-6300-g0bc7c85392
Released In:
v21.2.0~975
Upkeep Timestamp:
2026-10-24T02:01:21+00:00
Tags:

Description

ceph CLI does not propagate orchestrator error codes to process exit status

When an orchestrator command returns an error (e.g. OrchestratorValidationError), the mgr reply includes the correct retval (e.g. 22 for EINVAL), but the ceph CLI process exits with 0 instead of that error code.

Impact
QA test tasks.mgr.test_orchestrator_cli.TestOrchestratorCli.test_error fails with AssertionError: 0 != 22.
Scripts that rely on ceph exit codes for error handling will not see orchestrator errors.

Environment
Teuthology run: rocky-test-2026-03-02_12:47:57-orch:cephadm-wip-rocky10-branch-of-the-day-2026-02-24-1771941190-distro-default-openstack
Job ID: 103
Ceph SHA: 506b402a3d3a240d0bfe073b4769eaffdf84497b
Rocky Linux 10.1, OpenStack VMs

The test expects raw_cluster_cmd_result (which uses the ceph process exit status) to be 22, but the assertion fails with AssertionError: 0 != 22, so the ceph process exited with 0.


Related issues 2 (0 open — 2 closed)

Blocks mgr - Bug #73930: ceph-mgr modules rely on deprecated python subinterpretersResolved

Actions
Copied to Ceph - Backport #75680: tentacle: ceph CLI does not propagate orchestrator error codes - wip-rocky10-branch-of-the-day-2026-02-24-1771941190ResolvedPatrick Donnelly

Actions

NM Updated by Nitzan Mordechai 9 months ago Actions #2

  • Blocks Bug #73930: ceph-mgr modules rely on deprecated python subinterpreters added

NM Updated by Nitzan Mordechai 9 months ago Actions #3

  • Tags set to rocky10
  • Assignee set to Nitzan Mordechai

NM Updated by Nitzan Mordechai 9 months ago Actions #4

  • Status changed from New to Fix Under Review
  • Pull request ID set to 67652

UB Updated by Upkeep Bot 9 months ago Actions #5

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 0bc7c85392e31600a05750c46e0d6603e92d201d
  • Fixed In set to v20.3.0-6300-g0bc7c85392
  • Upkeep Timestamp set to 2026-03-20T21:58:12+00:00

PD Updated by Patrick Donnelly 8 months ago Actions #6

  • Status changed from Resolved to Pending Backport
  • Target version set to v21.0.0
  • Backport set to tentacle

UB Updated by Upkeep Bot 8 months ago Actions #7

  • Copied to Backport #75680: tentacle: ceph CLI does not propagate orchestrator error codes - wip-rocky10-branch-of-the-day-2026-02-24-1771941190 added

UB Updated by Upkeep Bot 8 months ago Actions #8

  • Tags (freeform) set to backport_processed

NM Updated by Nitzan Mordechai 7 months ago Actions #9

  • Status changed from Pending Backport to Resolved

Backport merged, changing to resolved

UB Updated by Upkeep Bot 3 months ago Actions #10

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-03-20T21:58:12+00:00 to 2026-08-28T01:41:16+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #11

  • Released In set to v21.2.0~975
  • Upkeep Timestamp changed from 2026-08-28T01:41:16+00:00 to 2026-10-24T02:01:21+00:00
Actions

Also available in: PDF Atom