Project

General

Profile

Bug #38739

cephfs-shell: python traceback with mkdir inside inexistant directory

Added by Milind Changire about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
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

CephFS:~/>>> mkdir jack/and/jill/went/up/the/hill
[Errno 2] error in mkdir 'b'/jack/and/jill/went/up/the/hill''
Traceback (most recent call last):
File "../src/tools/cephfs/cephfs-shell", line 367, in onecmd
res = Cmd.onecmd(self, line)
File "/usr/lib/python3.7/site-packages/cmd2.py", line 2672, in onecmd
stop = func(statement)
File "/usr/lib/python3.7/site-packages/cmd2.py", line 496, in cmd_wrapper
return func(instance, args)
File "../src/tools/cephfs/cephfs-shell", line 413, in do_mkdir
cephfs.mkdir(path, permission)
File "cephfs.pyx", line 765, in cephfs.LibCephFS.mkdir
cephfs.ObjectNotFound: [Errno 2] error in mkdir 'b'/jack/and/jill/went/up/the/hill''

The directory 'jack' did not exist when attempting to create the path without the '-p' argument.


Related issues

Copied to CephFS - Backport #39379: nautilus: cephfs-shell: python traceback with mkdir inside inexistant directory Resolved

History

#1 Updated by Patrick Donnelly about 5 years ago

  • Assignee set to Milind Changire
  • Target version set to v15.0.0
  • Start date deleted (03/14/2019)
  • Source set to Development
  • Backport set to nautilus

To be clear, you're saying that it should just return some kind of error message like "ENOENT"?

#2 Updated by Milind Changire almost 5 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 27235

yes; the shell should print a sensible error in such a case, in my opinion

#3 Updated by Patrick Donnelly almost 5 years ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Nathan Cutler almost 5 years ago

  • Copied to Backport #39379: nautilus: cephfs-shell: python traceback with mkdir inside inexistant directory added

#5 Updated by Nathan Cutler almost 5 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF