Hi all,
AFAIK, running tests with vstart_runner.py makes it mandatory that CWD
should be <ceph-repo-root>/build. But, apparently,
test_cephfs_shell.py[1] attempts to issue CephFS shell commands
directly from CWD[1], which is impossible IMO. Is this a bug or am I
missing something? Am I supposed to configure my environment before
running the tests fom test_cephfs_shell.py?
I tried running a couple of tests from test_cephfs_shell.py in the
same we try to run a test from any other suite locally but that didn't
work. The command I used is -
$ python2 ../qa/tasks/vstart_runner.py --interactive --create
tasks.cephfs.test_cephfs_shell.TestCephFSShell.test_mkdir
Following is the traceback for the command above -
File "/home/rishabh/repos/ceph/review/qa/tasks/cephfs/test_cephfs_shell.py",
line 45, in test_mkdir
o = self._cephfs_shell("mkdir d1")
File "/home/rishabh/repos/ceph/review/qa/tasks/cephfs/test_cephfs_shell.py",
line 29, in _cephfs_shell
stdin=stdin)
File "../qa/tasks/vstart_runner.py", line 324, in run
env=env)
File "/usr/lib64/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
If I am not missing anything, this surely a bug.
[1]
https://github.com/ceph/ceph/blob/master/qa/tasks/cephfs/test_cephfs_shell.…