Bug #53043
Updated by Rishabh Dave over 2 years ago
The incompatible code is - @output = self.ctx.managers[self.cluster_name].raw_cluster_cmd("fs", "ls")@. The cause for incompatibility is the absence of attribute @managers@ in @vstart_runner.LocalContext@. Traceback -
<pre>
2021-10-26 15:56:09,796.796 INFO:__main__:======================================================================
2021-10-26 15:56:09,796.796 INFO:__main__:ERROR: test_cd_with_args (tasks.cephfs.test_cephfs_shell.TestCD)
2021-10-26 15:56:09,796.796 INFO:__main__:Test that when cd is issued with an argument, CWD is changed
2021-10-26 15:56:09,796.796 INFO:__main__:----------------------------------------------------------------------
2021-10-26 15:56:09,796.796 INFO:__main__:Traceback (most recent call last):
2021-10-26 15:56:09,796.796 INFO:__main__: File "/home/rishabh/repos/ceph/test2/qa/tasks/cephfs/test_cephfs_shell.py", line 38, in setUp
2021-10-26 15:56:09,796.796 INFO:__main__: super(TestCephFSShell, self).setUp()
2021-10-26 15:56:09,796.796 INFO:__main__: File "/home/rishabh/repos/ceph/test2/qa/tasks/cephfs/cephfs_test_case.py", line 173, in setUp
2021-10-26 15:56:09,796.796 INFO:__main__: self.mounts[i].mount_wait()
2021-10-26 15:56:09,796.796 INFO:__main__: File "/home/rishabh/repos/ceph/test2/qa/tasks/cephfs/mount.py", line 448, in mount_wait
2021-10-26 15:56:09,796.796 INFO:__main__: self.mount(**kwargs)
2021-10-26 15:56:09,796.796 INFO:__main__: File "/home/rishabh/repos/ceph/test2/qa/tasks/cephfs/fuse_mount.py", line 46, in mount
2021-10-26 15:56:09,797.797 INFO:__main__: self.assert_and_log_minimum_mount_details()
2021-10-26 15:56:09,797.797 INFO:__main__: File "/home/rishabh/repos/ceph/test2/qa/tasks/cephfs/mount.py", line 152, in assert_and_log_minimum_mount_details
2021-10-26 15:56:09,797.797 INFO:__main__: self.assert_that_ceph_fs_exists()
2021-10-26 15:56:09,797.797 INFO:__main__: File "/home/rishabh/repos/ceph/test2/qa/tasks/cephfs/mount.py", line 129, in assert_that_ceph_fs_exists
2021-10-26 15:56:09,797.797 INFO:__main__: output = self.ctx.managers[self.cluster_name].raw_cluster_cmd("fs", "ls")
2021-10-26 15:56:09,797.797 INFO:__main__:AttributeError: 'LocalContext' object has no attribute 'managers'
</pre>
Ideally this should've been prevented in commit 7812cfb6744f.