Actions
Bug #44113
closedcephfs-shell: set proper return value for the tool
% Done:
0%
Source:
Development
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs-shell
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Currently, cephfs-shell tool returns zero all the time, whether the shell is in interactive or non-interactive mode -
$ cephfs-shell CephFS:~/>>> mkdir z/y ERROR: error in mkdir z/y: No such file or directory [Errno 2] To enable full traceback, run the following command: 'set debug true' CephFS:~/>>> $ echo $? 0
$ cephfs-shell -- mkdir a/b ERROR: error in mkdir a/b: No such file or directory [Errno 2] To enable full traceback, run the following command: 'set debug true' CephFS:~/>>> $ echo $? 0
$ cephfs-shell mkdir a/b ERROR: error in mkdir a/b: No such file or directory [Errno 2] To enable full traceback, run the following command: 'set debug true' CephFS:~/>>> $ echo $? 0 (venv
Actions