Bug #39651
Updated by Patrick Donnelly almost 5 years ago
I get following traceback while running the test_kill_mdstable: https://github.com/ceph/ceph/blob/master/qa/tasks/cephfs/test_snapshots.py#L41 test_kill_mdstable:"https://github.com/ceph/ceph/blob/master/qa/tasks/cephfs/test_snapshots.py#L41" - <pre> File "/home/rishabh/repos/ceph/pr-27718/qa/tasks/cephfs/test_snapshots.py", line 76, in test_kill_mdstable self.delete_mds_coredump(rank0['name']); File "/home/rishabh/repos/ceph/pr-27718/qa/tasks/cephfs/cephfs_test_case.py", line 268, in delete_mds_coredump ], stdout=StringIO()) File "../qa/tasks/vstart_runner.py", line 346, in run proc.wait() File "../qa/tasks/vstart_runner.py", line 179, in wait raise CommandFailedError(self.args, self.exitstatus) CommandFailedError: Command failed with status 1: ['cd', '|/usr/lib/systemd', Raw('&&'), 'ls', Raw('|'), 'xargs', 'file'] </pre> code_dir:"https://github.com/ceph/ceph/blob/master/qa/tasks/cephfs/cephfs_test_case.py#L257" does not contain a path to a directory at all. The value of core_dir is "|/usr/lib/systemd" which is weird because the string (which is supposed to be a path) has a vertical bar at the beginning and, more importantly, because "/usr/lib/systemd" is not a directory. The lines of code following will attempt to use it as the target directory for "cd" command. Following is the traceback obtained from running "test_kill_mdstable"