]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: move is_blocklisted() to filesystem.CephCluster 40645/head
authorRishabh Dave <ridave@redhat.com>
Wed, 3 Mar 2021 11:44:22 +0000 (17:14 +0530)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 7 Apr 2021 13:42:52 +0000 (06:42 -0700)
commit36af3dc08d553c3aa02799aa450378d36ad7a9d0
tree2b6b7d8092182894feb76582ddc964d23e64646c
parent0af03c54623fd04658877fdb3265ff54fb242c3c
qa/cephfs: move is_blocklisted() to filesystem.CephCluster

Using self.fs.mon_manager in mount.py can lead to a crash since self.fs
can be None. Move is_blocklisted() to tasks.filesystem.CephCluster where
it can get access to mon_manager without depending on objects
representing Ceph FSs.

Fixes: https://tracker.ceph.com/issues/49511
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 4d0f56fcc524cfe328d89d0b3706ca22a68a268f)
qa/tasks/cephfs/filesystem.py
qa/tasks/cephfs/mount.py
qa/tasks/cephfs/test_misc.py
qa/tasks/cephfs/test_sessionmap.py
qa/tasks/fs.py