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

tm/ceph {pre,post}migrate do nothing if not SYSTEM DS

The proposed solution partially addresses bug #4924

IMO in case of SYSTEM DS on shared filesystem the TM_MAD must be 'shared'.
In this case the tm/ceph/mv will not be called but then {pre,post}migrate
is called by migrate-other. In that case there is no work for Ceph.
This commit is contained in:
Anton Todorov 2016-11-21 17:50:46 +02:00
parent c2e6902ada
commit 0196832065
2 changed files with 14 additions and 0 deletions

View File

@ -53,6 +53,13 @@ fi
#--------------------------------------------------------------------------------
if [ -n "$7" ]; then
log "Called from tm/$7 but I've nothing to do"
exit 0
fi
#--------------------------------------------------------------------------------
migrate_other "$@"
exec_and_log "$SSH $SRC_HOST rm -rf $DST_PATH"

View File

@ -53,6 +53,13 @@ fi
#--------------------------------------------------------------------------------
if [ -n "$7" ]; then
log "Called from tm/$7 but I've nothing to do"
exit 0
fi
#--------------------------------------------------------------------------------
DST_PATH_DIRNAME=`dirname $DST_PATH`
DST_PATH_BASENAME=`basename $DST_PATH`