Bug #38739
closedcephfs-shell: python traceback with mkdir inside inexistant directory
0%
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.