From 34400a6b004653f5fcaf18e3146609460e630d26 Mon Sep 17 00:00:00 2001 From: julpark-rh Date: Wed, 19 Feb 2020 13:01:41 -0800 Subject: [PATCH] Editting python3 syntax and image-featrue layering Signed-off-by: julpark-rh --- qa/workunits/rbd/krbd_namespaces.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/workunits/rbd/krbd_namespaces.sh b/qa/workunits/rbd/krbd_namespaces.sh index 22b05b5019354..4929398a61694 100755 --- a/qa/workunits/rbd/krbd_namespaces.sh +++ b/qa/workunits/rbd/krbd_namespaces.sh @@ -3,7 +3,7 @@ set -ex function get_block_name_prefix() { - rbd info --format=json $1 | python -c "import sys, json; print json.load(sys.stdin)['block_name_prefix']" + rbd info --format=json $1 | python3 -c "import sys, json; print(json.load(sys.stdin)['block_name_prefix'])" } function do_pwrite() { @@ -52,9 +52,9 @@ SPECS=(foo/img1 foo/img2 foo/ns1/img3 foo/ns1/img4) COUNT=1 for spec in "${SPECS[@]}"; do if [[ $spec =~ img1|img3 ]]; then - rbd create --size 10 $spec + rbd create --size 10 $spec --image-feature layering else - rbd create --size 10 --data-pool bar $spec + rbd create --size 10 --data-pool bar $spec --image-feature layering fi do_pwrite $spec 000 $(printf %03d $COUNT) rbd snap create $spec@snap -- 2.39.5