Project

General

Profile

Bug #44113

cephfs-shell: set proper return value for the tool

Added by Rishabh Dave 8 months ago. Updated 3 months ago.

Status:
Pending Backport
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:

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

Copied to fs - Backport #46094: octopus: cephfs-shell: set proper return value for the tool Need More Info

History

#1 Updated by Rishabh Dave 8 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 32288

Actually, code for this was already present on the PR, just separated the commit; marking "Fix Under Review".

#2 Updated by Rishabh Dave 8 months ago

  • Assignee set to Rishabh Dave

#3 Updated by Patrick Donnelly 3 months ago

  • Target version set to v16.0.0
  • Source set to Development
  • Backport set to octopus

#4 Updated by Patrick Donnelly 3 months ago

  • Status changed from Fix Under Review to Pending Backport

#5 Updated by Patrick Donnelly 3 months ago

  • Copied to Backport #46094: octopus: cephfs-shell: set proper return value for the tool added

Also available in: Atom PDF