Bug #75282
closedceph CLI does not propagate orchestrator error codes - wip-rocky10-branch-of-the-day-2026-02-24-1771941190
0%
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.
NM Updated by Nitzan Mordechai 9 months ago
- Blocks Bug #73930: ceph-mgr modules rely on deprecated python subinterpreters added
NM Updated by Nitzan Mordechai 9 months ago
- Tags set to rocky10
- Assignee set to Nitzan Mordechai
NM Updated by Nitzan Mordechai 9 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 67652
UB Updated by Upkeep Bot 9 months 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
PD Updated by Patrick Donnelly 8 months ago
- 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
- 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
- Tags (freeform) set to backport_processed
NM Updated by Nitzan Mordechai 7 months ago
- Status changed from Pending Backport to Resolved
Backport merged, changing to resolved
UB Updated by Upkeep Bot 3 months ago
- 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
- 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