Project

General

Profile

Actions

Bug #75282

closed

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

Added by Deepshikha Singh 19 days ago. Updated 1 day ago.

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

0%

Source:
Backport:
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:
Upkeep Timestamp:
2026-03-20T21:58:12+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 1 (1 open0 closed)

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

Actions
Actions #2

Updated by Nitzan Mordechai 18 days ago

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

Updated by Nitzan Mordechai 18 days ago

  • Tags set to rocky10
  • Assignee set to Nitzan Mordechai
Actions #4

Updated by Nitzan Mordechai 14 days ago

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

Updated by Upkeep Bot 1 day ago

  • 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
Actions

Also available in: Atom PDF