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.
Updated by Deepshikha Singh 19 days ago
Updated by Nitzan Mordechai 18 days ago
- Blocks Bug #73930: ceph-mgr modules rely on deprecated python subinterpreters added
Updated by Nitzan Mordechai 18 days ago
- Tags set to rocky10
- Assignee set to Nitzan Mordechai
Updated by Nitzan Mordechai 14 days ago
- Status changed from New to Fix Under Review
- Pull request ID set to 67652
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