Project

General

Profile

Actions

Bug #44113

closed

cephfs-shell: set proper return value for the tool

Added by Rishabh Dave over 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% 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

Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #46094: octopus: cephfs-shell: set proper return value for the toolRejectedPatrick DonnellyActions
Actions

Also available in: Atom PDF