Actions
Bug #39617
closedcephfs-shell dumps backtrace on "ls"
% Done:
0%
Source:
Development
Tags:
Backport:
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
Built ceph based on today's master branch (2d410b5a2e428232dc7d6f3abc006da5e9128e77), using this cmake command:
$ cmake -DWITH_PYTHON3=ON -DWITH_PYTHON2=OFF -DMGR_PYTHON_VERSION=3 -DWITH_CEPHFS_SHELL=ON -DWITH_SPDK=OFF /home/jlayton/git/ceph
...then, do this:
[jlayton@tleilax build]$ . ./vstart_environment.sh [jlayton@tleilax build]$ cephfs-shell CephFS:~/>>> ls startswith first arg must be bytes or a tuple of bytes, not str Traceback (most recent call last): File "/home/jlayton/git/ceph/src/tools/cephfs/cephfs-shell", line 376, 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 "/home/jlayton/git/ceph/src/tools/cephfs/cephfs-shell", line 717, in do_ls items = [i for i in items if not i.d_name.startswith('.')] File "/home/jlayton/git/ceph/src/tools/cephfs/cephfs-shell", line 717, in <listcomp> items = [i for i in items if not i.d_name.startswith('.')] TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Actions