From 25a094155ee876d970cc94190612cf34b4800609 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Fri, 11 Oct 2024 13:19:06 +0200 Subject: [PATCH] F #-: Fix use of --data-pool flag in Ceph's DS.cp Signed-off-by: Guillermo Ramos (cherry picked from commit 788534b9b9b735c287b82e8b71f862d6d19736e8) --- src/datastore_mad/remotes/ceph/cp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/datastore_mad/remotes/ceph/cp b/src/datastore_mad/remotes/ceph/cp index ee4eb13565..8c4e6faae3 100755 --- a/src/datastore_mad/remotes/ceph/cp +++ b/src/datastore_mad/remotes/ceph/cp @@ -105,8 +105,14 @@ if [ -n "$CEPH_CONF" ]; then RBD="$RBD --conf ${CEPH_CONF}" fi +# EC parameters (--data-pool) are only accepted in some `rbd` commands. It's not officially +# documented but at least the following ones require it: +# - create +# - import +RBDEC="$RBD" + if [ -n "$EC_POOL_NAME" ]; then - RBD="$RBD --data-pool ${EC_POOL_NAME}" + RBDEC="$RBDEC --data-pool ${EC_POOL_NAME}" fi set_up_datastore "$BASE_PATH" "$RESTRICTED_DIRS" "$SAFE_DIRS" @@ -158,7 +164,7 @@ REGISTER_CMD=$(cat <