]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: move is_blocklisted() to filesystem.CephCluster 39814/head
authorRishabh Dave <ridave@redhat.com>
Wed, 3 Mar 2021 11:44:22 +0000 (17:14 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 6 Mar 2021 03:41:36 +0000 (09:11 +0530)
commit4d0f56fcc524cfe328d89d0b3706ca22a68a268f
tree270243ec6ae5048b9cdaedcb8e5303cfc7adce50
parentf11ccd2d60c544cd02e74999bf144b073fa95659
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>
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