aa7ffb7038
When a ceph command is executed, the exit code is always "0" regardless of whether the command was successful or not. This happens because in the CLI, the command that is executed within the toolbox pod is not the last one, so it always returns the last command, which is always 0. So to solve this problem, the exit code of the command sent to the toolbox pod is checked and stored, and if it is non-zero, the execution is terminated there. Test Plan: - PASS: AIO-SX with rook ceph backend configured - PASS: Run 'ceph -s' command and check exit code - PASS: Run 'ceph test-123' command and check exit code Story: 2011066 Task: 51021 Change-Id: I0b4c08da57c4c54833b7d75615215b7840275ce4 Signed-off-by: Erickson Silva de Oliveira <Erickson.SilvadeOliveira@windriver.com> |
||
---|---|---|
.. | ||
bash_completion | ||
ceph-wrapper.sh | ||
rook-mon-exit.sh |