]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/qa: Permit V1 images in qa tests
authorJulien COLLET <julien.collet@cern.ch>
Wed, 14 Mar 2018 07:46:27 +0000 (08:46 +0100)
committerJulien COLLET <julien.collet@cern.ch>
Thu, 15 Mar 2018 14:09:06 +0000 (15:09 +0100)
Signed-off-by: Julien COLLET <julien.collet@cern.ch>
qa/tasks/rbd.py
qa/workunits/rbd/import_export.sh

index e6701aff94c509488a3788d6716b4301f46470e1..193ab1c3961a0dfaa2b30076dc074806e7bc6173 100644 (file)
@@ -16,6 +16,9 @@ from teuthology.task.common_fs_utils import generic_mkfs
 from teuthology.task.common_fs_utils import generic_mount
 from teuthology.task.common_fs_utils import default_image_name
 
+#V1 image unsupported but required for testing purposes
+os.environ["RBD_FORCE_ALLOW_V1"] = "1"
+
 log = logging.getLogger(__name__)
 
 @contextlib.contextmanager
index deb28051413bc49b90b4d6068648e6b31e97e1b8..57e0595343a17def22366a94a03399c9cca6d6df 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh -ex
 
+# V1 image unsupported but required for testing purposes
+export RBD_FORCE_ALLOW_V1=1
+
 # returns data pool for a given image
 get_image_data_pool () {
     image=$1