mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
feature #1112: remove debugging comments
This commit is contained in:
parent
7a89275c2b
commit
44fb209f08
@ -54,6 +54,4 @@ else
|
||||
ssh_exec_and_log "$DST_HOST" "rm -rf $DST_PATH" "Error deleting $DST_PATH"
|
||||
fi
|
||||
|
||||
ssh_exec_and_log "$DST_HOST" "$DISCOVER_CMD" \
|
||||
"Error registering $DST_HOST:$DEV"
|
||||
exit 0
|
||||
|
@ -22,8 +22,8 @@
|
||||
# - host is the target host to deploy the VM
|
||||
# - remote_system_ds is the path for the system datastore in the host
|
||||
|
||||
SRC=$1 # iqn.2012-02.org.opennebula:o200.vg-one.lv-one-0
|
||||
DST=$2 # o202:/var/lib/one//datastores/0/0/disk.0
|
||||
SRC=$1
|
||||
DST=$2
|
||||
|
||||
if [ -z "${ONE_LOCATION}" ]; then
|
||||
TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh
|
||||
@ -38,10 +38,10 @@ fi
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
IQN=$SRC
|
||||
TARGET=`arg_path $SRC` # o200.vg-one.lv-one-0
|
||||
DST_PATH=`arg_path $DST` # /var/lib/one/datastores/0/0/disk.0
|
||||
DST_HOST=`arg_host $DST` # o202
|
||||
DST_DIR=`dirname $DST_PATH` # /var/lib/one/datastores/0/0
|
||||
TARGET=`arg_path $SRC`
|
||||
DST_PATH=`arg_path $DST`
|
||||
DST_HOST=`arg_host $DST`
|
||||
DST_DIR=`dirname $DST_PATH`
|
||||
|
||||
BASE_IQN=`echo $IQN|$CUT -d: -f1`
|
||||
TARGET=`echo $IQN|$CUT -d: -f2`
|
||||
@ -64,17 +64,3 @@ EOF
|
||||
ssh_exec_and_log "$DST_HOST" "$DISCOVER_CMD" \
|
||||
"Error registering $DST_HOST:$DEV"
|
||||
exit 0
|
||||
|
||||
|
||||
# case $SRC in
|
||||
# http://*)
|
||||
# log "Downloading $SRC"
|
||||
# RMT_CMD="$WGET -O $DST_PATH $SRC"
|
||||
# ssh_exec_and_log "$DST_HOST" "$RMT_CMD" "Error downloading $SRC"
|
||||
# ;;
|
||||
|
||||
# *)
|
||||
# log "Cloning $SRC in $DST_PATH"
|
||||
# exec_and_log "$SCP $SRC $DST" "Error copying $SRC to $DST"
|
||||
# ;;
|
||||
# esac
|
||||
|
@ -24,7 +24,6 @@
|
||||
SRC=$1
|
||||
DST=$2
|
||||
|
||||
|
||||
if [ -z "${ONE_LOCATION}" ]; then
|
||||
TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh
|
||||
else
|
||||
@ -37,16 +36,6 @@ DRIVER_PATH=$(dirname $0)
|
||||
|
||||
source ${DRIVER_PATH}/../../datastore/iscsi/iscsi.conf
|
||||
|
||||
# {:path=>
|
||||
# "/var/lib/one/remotes/tm/iscsi/mv o202:/var/lib/one//datastores/0/3/disk.0 rama:/var/lib/one/datastores/0/3/disk.0",
|
||||
# :result=>"SUCCESS",
|
||||
# :info=>"-"}
|
||||
|
||||
# {:path=>
|
||||
# "/var/lib/one/remotes/tm/shared/mv o202:/var/lib/one//datastores/0/3 rama:/var/lib/one/datastores/0/3",
|
||||
# :result=>"SUCCESS",
|
||||
# :info=>"-"}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Return if moving a disk, we will move them when moving the whole system_ds
|
||||
# directory for the VM
|
||||
|
@ -22,8 +22,8 @@
|
||||
# - host is the target host to deploy the VM
|
||||
# - remote_system_ds is the path for the system datastore in the host
|
||||
|
||||
SRC=$1 # o202:/var/lib/one//datastores/0/1/disk.0
|
||||
DST=$2 # iqn.2012-02.org.opennebula:o200.vg-one.lv-one-0
|
||||
SRC=$1
|
||||
DST=$2
|
||||
|
||||
if [ -z "${ONE_LOCATION}" ]; then
|
||||
TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh
|
||||
@ -33,7 +33,7 @@ fi
|
||||
|
||||
. $TMCOMMON
|
||||
|
||||
SRC_HOST=`arg_host $SRC` # o202
|
||||
SRC_HOST=`arg_host $SRC`
|
||||
IQN=$DST
|
||||
|
||||
log "Logging out $IQN"
|
||||
|
@ -33,6 +33,9 @@ ONE_SH=$ONE_LIB/sh
|
||||
|
||||
. $ONE_SH/scripts_common.sh
|
||||
|
||||
# Set umask
|
||||
umask 0007
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Function to get hosts and paths from arguments
|
||||
# ------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user