Update the test/qa scripts to support the v1 creation disallow fix (using
the RBD_FORCE_ALLOW_V1 environment variable).
Signed-off-by: Julien Collet <julien.collet@cern.ch>
#!/bin/sh -ex
+export RBD_FORCE_ALLOW_V1=1
+
# make sure rbd pool is EMPTY.. this is a test script!!
rbd ls | wc -l | grep -v '^0$' && echo "nonempty rbd pool, aborting! run this script on an empty test cluster only." && exit 1
MIN_OBJECT_ORDER=12 # technically 9, but the rbd CLI enforces 12
MAX_OBJECT_ORDER=32
+RBD_FORCE_ALLOW_V1=1
+
PROGNAME=$(basename $0)
ORIGINAL=original-$$
set -ex
+export RBD_FORCE_ALLOW_V1=1
+
function fill_image() {
local spec=$1
#!/usr/bin/env bash
set -ex
+export RBD_FORCE_ALLOW_V1=1
+
pool=rbd
gen=$pool/gen
out=$pool/out
int main(int argc, char **argv)
{
+ setenv("RBD_FORCE_ALLOW_V1","1",1);
+
register_test_librbd();
#ifdef TEST_LIBRBD_INTERNALS
register_test_deep_copy();
IMG_SIZE = 8 << 20 # 8 MiB
IMG_ORDER = 22 # 4 MiB objects
+os.environ["RBD_FORCE_ALLOW_V1"] = "1"
+
def setup_module():
global rados
rados = Rados(conffile='')