Project

General

Profile

Bug #46233

Updated by Ricardo Marques 3 months ago

ATM it's not possible to specify the output format for "ceph orch status":

<pre>
ceph orch status --format=json
</pre>

Also note that if SSH keys are not available, then `ceph orch status` return code is zero:

<pre>
master:~ # ceph orch status
Backend: cephadm
Available: False (SSH keys not set. Use `ceph cephadm set-priv-key` and `ceph cephadm set-pub-key` or `ceph cephadm generate-key`)
master:~ # echo $?
0
</pre>

but if no backend is specified, then exist code is non zero:
<pre>
master:~ # ceph orch set backend ''
master:~ # ceph orch status
Error ENOENT: No orchestrator configured (try `ceph orch set backend`)
master:~ # echo $?
2
</pre>

Shouldn't the exit codes be more consistent here? Maybe something to report on a different issue...

Back