app-rook-ceph/stx-rook-ceph-helm/files
Erickson Silva de Oliveira aa7ffb7038 Fix ceph unified CLI exit code
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>
2024-09-13 13:00:49 -03:00
..
bash_completion Add unified Ceph CLI script 2024-07-22 21:12:02 +00:00
ceph-wrapper.sh Fix ceph unified CLI exit code 2024-09-13 13:00:49 -03:00
rook-mon-exit.sh Enable optional AIO-DX floating monitor 2024-08-15 12:54:12 -05:00