]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/ceph_test_case: support CephFS recovery pools
authorDouglas Fuller <dfuller@redhat.com>
Wed, 12 Jul 2017 15:41:11 +0000 (10:41 -0500)
committerDouglas Fuller <dfuller@redhat.com>
Wed, 30 Aug 2017 13:02:44 +0000 (09:02 -0400)
Add support for testing recovery of CephFS metadata into an alternate
RADOS pool, useful as a disaster recovery mechanism that avoids
modifying the metadata in-place.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
qa/tasks/ceph_test_case.py
qa/tasks/cephfs/cephfs_test_case.py

index 0f66106c9f1f0ef0b87b5402867af105e28ece76..5767df4611de9727763f44a30b004c8d6c20fe4b 100644 (file)
@@ -18,6 +18,7 @@ class CephTestCase(unittest.TestCase):
     # Environment references
     mounts = None
     fs = None
+    recovery_fs = None
     ceph_cluster = None
     mds_cluster = None
     mgr_cluster = None
index 584c0534ffb4b0d7c4eff1345adfe4312f6aa39a..7f5c6e9d834cdbab431f9a7905d1213d0b6a02f7 100644 (file)
@@ -105,6 +105,7 @@ class CephFSTestCase(CephTestCase):
         self.mds_cluster.mds_fail()
         self.mds_cluster.delete_all_filesystems()
         self.fs = None # is now invalid!
+        self.recovery_fs = None
 
         # In case the previous filesystem had filled up the RADOS cluster, wait for that
         # flag to pass.