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

bug #4640: disable pre/postmigrate for shared tm

(cherry picked from commit 56fff9184f3784bc3cec16ca9bb04febe92d74d7)
This commit is contained in:
Javi Fontan 2016-07-20 18:52:21 +02:00
parent 8185517028
commit 0cc04f9aee
2 changed files with 2 additions and 34 deletions

View File

@ -1,17 +0,0 @@
#!/bin/bash
DRIVER_PATH=$(dirname $0)
DISK_COUNT=$(onevm show $4 -x|grep DISK_ID| wc -l)
TMS=$(onevm show $4 -x|sed -rn 's/[[:space:]]*<TM_MAD><\!\[CDATA\[([^]]*).*/\1/p')
XPATH="${DRIVER_PATH}/../../datastore/xpath.rb -b $7"
for i in `seq 1 $DISK_COUNT`; do
TM=`echo $TMS|cut -d" " -f$i`
DISK_ID=`echo $i-1 | bc`
DEV=`ssh $1 "readlink $3/disk.$DISK_ID"`
${DRIVER_PATH}/../$TMS/postmigrate "$1" "$2" "$DEV"
done
exit 0

View File

@ -0,0 +1 @@
../common/postmigrate

View File

@ -1,17 +0,0 @@
#!/bin/bash
DRIVER_PATH=$(dirname $0)
DISK_COUNT=$(onevm show $4 -x|grep DISK_ID| wc -l)
TMS=$(onevm show $4 -x|sed -rn 's/[[:space:]]*<TM_MAD><\!\[CDATA\[([^]]*).*/\1/p')
XPATH="${DRIVER_PATH}/../../datastore/xpath.rb -b $7"
for i in `seq 1 $DISK_COUNT`; do
TM=`echo $TMS|cut -d" " -f$i`
DISK_ID=$(($i-1))
DEV=`ssh $1 "readlink $3/disk.$DISK_ID"`
${DRIVER_PATH}/../$TMS/premigrate "$1" "$2" "$DEV"
done
exit 0

View File

@ -0,0 +1 @@
../common/premigrate