mirror of
https://github.com/ceph/ceph
synced 2025-04-01 14:51:13 +00:00
qa: optionally use old fs name during cephfs remount
This fixes errors caused by remount done by some tests (test_recovery_pool.py) where the fs name is not given. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
a2ff87d4e2
commit
1ad8d86bd0
@ -41,6 +41,9 @@ class CephFSMount(object):
|
||||
raise NotImplementedError()
|
||||
|
||||
def setupfs(self, name=None):
|
||||
if name is None and self.fs is not None:
|
||||
# Previous mount existed, reuse the old name
|
||||
name = self.fs.name
|
||||
self.fs = Filesystem(self.ctx, name=name)
|
||||
log.info('Wait for MDS to reach steady state...')
|
||||
self.fs.wait_for_daemons()
|
||||
|
Loading…
Reference in New Issue
Block a user