1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #1791: fix the ceph cpds script

This commit is contained in:
Jaime Melis 2013-03-08 16:03:31 +01:00
parent 4167c14066
commit f522e12084

View File

@ -64,7 +64,13 @@ done < <(onevm show -x $VM_ID| $XPATH \
RBD_SRC="${XPATH_ELEMENTS[j++]}"
PERSISTENT="${XPATH_ELEMENTS[j++]}"
ssh_exec_and_log "$DST_HOST" "$RBD copy $RBD_DST $DST" \
if [ "$PERSISTENT" = "YES" ]; then
RBD_DST="${RBD_SRC}"
else
RBD_DST="${RBD_SRC}-${VM_ID}-${DISK_ID}"
fi
ssh_exec_and_log "$SRC_HOST" "$RBD copy $RBD_DST $DST" \
"Error cloning $RBD_DST to $DST in $DST_HOST"
exit 0