From 0b9f67ae930d689d643b74938c4760fa41bef7be Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Wed, 11 Jun 2014 12:38:39 +0200 Subject: [PATCH 1/5] Feature #2970: Manage /dev/* devices in the shared/ln script --- src/tm_mad/shared/ln | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tm_mad/shared/ln b/src/tm_mad/shared/ln index 88bc6ddfb2..500db1e3fc 100755 --- a/src/tm_mad/shared/ln +++ b/src/tm_mad/shared/ln @@ -51,7 +51,11 @@ SRC_ARG_PATH=`arg_path $SRC` DST_DS_PATH="$(dirname $(dirname $(dirname $DST_PATH)))" SRC_DS_PATH="$(dirname $(dirname $SRC_ARG_PATH))" -SRC_PATH="${DST_DS_PATH}${SRC_ARG_PATH##$SRC_DS_PATH}" +if [[ $SRC_ARG_PATH == /dev/* ]]; then + SRC_PATH=$SRC_ARG_PATH +else + SRC_PATH="${DST_DS_PATH}${SRC_ARG_PATH##$SRC_DS_PATH}" +fi #------------------------------------------------------------------------------- # Create DST path From 81d0906d1b7a3d92329ef7ce1c1d40971dfce550 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 17 Jun 2014 19:08:33 +0200 Subject: [PATCH 2/5] Revert "Feature #2970: Manage /dev/* devices in the shared/ln script" A new datastore will be implemented This reverts commit 0b9f67ae930d689d643b74938c4760fa41bef7be. --- src/tm_mad/shared/ln | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/tm_mad/shared/ln b/src/tm_mad/shared/ln index 500db1e3fc..88bc6ddfb2 100755 --- a/src/tm_mad/shared/ln +++ b/src/tm_mad/shared/ln @@ -51,11 +51,7 @@ SRC_ARG_PATH=`arg_path $SRC` DST_DS_PATH="$(dirname $(dirname $(dirname $DST_PATH)))" SRC_DS_PATH="$(dirname $(dirname $SRC_ARG_PATH))" -if [[ $SRC_ARG_PATH == /dev/* ]]; then - SRC_PATH=$SRC_ARG_PATH -else - SRC_PATH="${DST_DS_PATH}${SRC_ARG_PATH##$SRC_DS_PATH}" -fi +SRC_PATH="${DST_DS_PATH}${SRC_ARG_PATH##$SRC_DS_PATH}" #------------------------------------------------------------------------------- # Create DST path From dbea483151d11c7c023647414693651f03e8e449 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 17 Jun 2014 19:31:53 +0200 Subject: [PATCH 3/5] feature 2970: add new ds and tm drivers for devices --- install.sh | 21 +++++++ share/etc/oned.conf | 9 ++- .../remotes/common/not_supported.sh | 8 +++ src/datastore_mad/remotes/dev/clone | 1 + src/datastore_mad/remotes/dev/cp | 55 ++++++++++++++++ src/datastore_mad/remotes/dev/mkfs | 1 + src/datastore_mad/remotes/dev/monitor | 23 +++++++ src/datastore_mad/remotes/dev/rm | 20 ++++++ src/datastore_mad/remotes/dev/stat | 20 ++++++ src/tm_mad/common/not_supported.sh | 8 +++ src/tm_mad/dev/clone | 1 + src/tm_mad/dev/context | 1 + src/tm_mad/dev/cpds | 1 + src/tm_mad/dev/delete | 1 + src/tm_mad/dev/ln | 62 +++++++++++++++++++ src/tm_mad/dev/mkimage | 1 + src/tm_mad/dev/mkswap | 1 + src/tm_mad/dev/mv | 1 + src/tm_mad/dev/mvds | 1 + src/tm_mad/dev/postmigrate | 1 + src/tm_mad/dev/premigrate | 1 + 21 files changed, 236 insertions(+), 2 deletions(-) create mode 100755 src/datastore_mad/remotes/common/not_supported.sh create mode 120000 src/datastore_mad/remotes/dev/clone create mode 100755 src/datastore_mad/remotes/dev/cp create mode 120000 src/datastore_mad/remotes/dev/mkfs create mode 100755 src/datastore_mad/remotes/dev/monitor create mode 100755 src/datastore_mad/remotes/dev/rm create mode 100755 src/datastore_mad/remotes/dev/stat create mode 100755 src/tm_mad/common/not_supported.sh create mode 120000 src/tm_mad/dev/clone create mode 120000 src/tm_mad/dev/context create mode 120000 src/tm_mad/dev/cpds create mode 120000 src/tm_mad/dev/delete create mode 100755 src/tm_mad/dev/ln create mode 120000 src/tm_mad/dev/mkimage create mode 120000 src/tm_mad/dev/mkswap create mode 120000 src/tm_mad/dev/mv create mode 120000 src/tm_mad/dev/mvds create mode 120000 src/tm_mad/dev/postmigrate create mode 120000 src/tm_mad/dev/premigrate diff --git a/install.sh b/install.sh index d44c1894b9..f2a0104dff 100755 --- a/install.sh +++ b/install.sh @@ -273,6 +273,7 @@ VAR_DIRS="$VAR_LOCATION/remotes \ $VAR_LOCATION/remotes/tm/vmfs \ $VAR_LOCATION/remotes/tm/lvm \ $VAR_LOCATION/remotes/tm/ceph \ + $VAR_LOCATION/remotes/tm/dev \ $VAR_LOCATION/remotes/hooks \ $VAR_LOCATION/remotes/hooks/ft \ $VAR_LOCATION/remotes/datastore \ @@ -281,6 +282,7 @@ VAR_DIRS="$VAR_LOCATION/remotes \ $VAR_LOCATION/remotes/datastore/vmfs \ $VAR_LOCATION/remotes/datastore/lvm \ $VAR_LOCATION/remotes/datastore/ceph \ + $VAR_LOCATION/remotes/datastore/dev \ $VAR_LOCATION/remotes/auth \ $VAR_LOCATION/remotes/auth/plain \ $VAR_LOCATION/remotes/auth/ssh \ @@ -431,6 +433,7 @@ INSTALL_FILES=( TM_VMFS_FILES:$VAR_LOCATION/remotes/tm/vmfs TM_LVM_FILES:$VAR_LOCATION/remotes/tm/lvm TM_CEPH_FILES:$VAR_LOCATION/remotes/tm/ceph + TM_DEV_FILES:$VAR_LOCATION/remotes/tm/dev TM_DUMMY_FILES:$VAR_LOCATION/remotes/tm/dummy DATASTORE_DRIVER_COMMON_SCRIPTS:$VAR_LOCATION/remotes/datastore/ DATASTORE_DRIVER_DUMMY_SCRIPTS:$VAR_LOCATION/remotes/datastore/dummy @@ -438,6 +441,7 @@ INSTALL_FILES=( DATASTORE_DRIVER_VMFS_SCRIPTS:$VAR_LOCATION/remotes/datastore/vmfs DATASTORE_DRIVER_LVM_SCRIPTS:$VAR_LOCATION/remotes/datastore/lvm DATASTORE_DRIVER_CEPH_SCRIPTS:$VAR_LOCATION/remotes/datastore/ceph + DATASTORE_DRIVER_DEV_SCRIPTS:$VAR_LOCATION/remotes/datastore/dev NETWORK_FILES:$VAR_LOCATION/remotes/vnm NETWORK_8021Q_FILES:$VAR_LOCATION/remotes/vnm/802.1Q NETWORK_DUMMY_FILES:$VAR_LOCATION/remotes/vnm/dummy @@ -902,6 +906,7 @@ NETWORK_VMWARE_FILES="src/vnm_mad/remotes/vmware/clean \ # - VMWARE TM, $VAR_LOCATION/tm/vmware # - LVM TM, $VAR_LOCATION/tm/lvm # - CEPH TM, $VAR_LOCATION/tm/ceph +# - DEV TM, $VAR_LOCATION/tm/dev #------------------------------------------------------------------------------- TM_FILES="src/tm_mad/tm_common.sh" @@ -993,6 +998,15 @@ TM_CEPH_FILES="src/tm_mad/ceph/clone \ src/tm_mad/ceph/postmigrate \ src/tm_mad/ceph/delete" +TM_DEV_FILES="src/tm_mad/dev/clone \ + src/tm_mad/dev/ln \ + src/tm_mad/dev/mv \ + src/tm_mad/dev/mvds \ + src/tm_mad/dev/cpds \ + src/tm_mad/dev/premigrate \ + src/tm_mad/dev/postmigrate \ + src/tm_mad/dev/delete" + #------------------------------------------------------------------------------- # Datastore drivers, to be installed under $REMOTES_LOCATION/datastore # - Dummy Image Repository, $REMOTES_LOCATION/datastore/dummy @@ -1043,6 +1057,13 @@ DATASTORE_DRIVER_CEPH_SCRIPTS="src/datastore_mad/remotes/ceph/cp \ src/datastore_mad/remotes/ceph/clone \ src/datastore_mad/remotes/ceph/ceph.conf" +DATASTORE_DRIVER_DEV_SCRIPTS="src/datastore_mad/remotes/dev/cp \ + src/datastore_mad/remotes/dev/mkfs \ + src/datastore_mad/remotes/dev/stat \ + src/datastore_mad/remotes/dev/rm \ + src/datastore_mad/remotes/dev/monitor \ + src/datastore_mad/remotes/dev/clone" + #------------------------------------------------------------------------------- # Migration scripts for onedb command, to be installed under $LIB_LOCATION #------------------------------------------------------------------------------- diff --git a/share/etc/oned.conf b/share/etc/oned.conf index 880ac93b27..a5674ed632 100644 --- a/share/etc/oned.conf +++ b/share/etc/oned.conf @@ -443,7 +443,7 @@ VM_MAD = [ TM_MAD = [ executable = "one_tm", - arguments = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph" + arguments = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,ceph,dev" ] #******************************************************************************* @@ -461,7 +461,7 @@ TM_MAD = [ DATASTORE_MAD = [ executable = "one_datastore", - arguments = "-t 15 -d dummy,fs,vmfs,lvm,ceph" + arguments = "-t 15 -d dummy,fs,vmfs,lvm,ceph,dev" ] #******************************************************************************* @@ -758,3 +758,8 @@ TM_MAD_CONF = [ TM_MAD_CONF = [ name = "ceph", ln_target = "NONE", clone_target = "SELF", shared = "yes" ] + +TM_MAD_CONF = [ + name = "dev", ln_target = "NONE", clone_target = "SELF", shared = "yes" +] + diff --git a/src/datastore_mad/remotes/common/not_supported.sh b/src/datastore_mad/remotes/common/not_supported.sh new file mode 100755 index 0000000000..8eda482486 --- /dev/null +++ b/src/datastore_mad/remotes/common/not_supported.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +script_name=$(basename $0) + +echo "$script_name: Operation not supported" &>2 + +exit 1 + diff --git a/src/datastore_mad/remotes/dev/clone b/src/datastore_mad/remotes/dev/clone new file mode 120000 index 0000000000..9c454e8cd4 --- /dev/null +++ b/src/datastore_mad/remotes/dev/clone @@ -0,0 +1 @@ +../common/not_supported.sh \ No newline at end of file diff --git a/src/datastore_mad/remotes/dev/cp b/src/datastore_mad/remotes/dev/cp new file mode 100755 index 0000000000..788dc81aec --- /dev/null +++ b/src/datastore_mad/remotes/dev/cp @@ -0,0 +1,55 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +############################################################################### +# This script is used to copy a VM image (SRC) to the image repository as DST +# Several SRC types are supported +############################################################################### + +# -------- Set up the environment to source common tools & conf ------------ + +if [ -z "${ONE_LOCATION}" ]; then + LIB_LOCATION=/usr/lib/one +else + LIB_LOCATION=$ONE_LOCATION/lib +fi + +. $LIB_LOCATION/sh/tm_common.sh + +DRIVER_PATH=$(dirname $0) +source ${DRIVER_PATH}/../libfs.sh + +# -------- Get cp and datastore arguments from OpenNebula core ------------ + +DRV_ACTION=$1 +ID=$2 + +UTILS_PATH="${DRIVER_PATH}/.." + +XPATH="$UTILS_PATH/xpath.rb -b $DRV_ACTION" + +unset i XPATH_ELEMENTS + +while IFS= read -r -d '' element; do + XPATH_ELEMENTS[i++]="$element" +done < <($XPATH /DS_DRIVER_ACTION_DATA/IMAGE/PATH) + +SRC="${XPATH_ELEMENTS[0]}" + +echo "$SRC" + diff --git a/src/datastore_mad/remotes/dev/mkfs b/src/datastore_mad/remotes/dev/mkfs new file mode 120000 index 0000000000..9c454e8cd4 --- /dev/null +++ b/src/datastore_mad/remotes/dev/mkfs @@ -0,0 +1 @@ +../common/not_supported.sh \ No newline at end of file diff --git a/src/datastore_mad/remotes/dev/monitor b/src/datastore_mad/remotes/dev/monitor new file mode 100755 index 0000000000..a748c88a5e --- /dev/null +++ b/src/datastore_mad/remotes/dev/monitor @@ -0,0 +1,23 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +echo "USED_MB=0" +echo "TOTAL_MB=1" +echo "FREE_MB=1" + + diff --git a/src/datastore_mad/remotes/dev/rm b/src/datastore_mad/remotes/dev/rm new file mode 100755 index 0000000000..55b39c8686 --- /dev/null +++ b/src/datastore_mad/remotes/dev/rm @@ -0,0 +1,20 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +exit 0 + diff --git a/src/datastore_mad/remotes/dev/stat b/src/datastore_mad/remotes/dev/stat new file mode 100755 index 0000000000..d09d8b82dd --- /dev/null +++ b/src/datastore_mad/remotes/dev/stat @@ -0,0 +1,20 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +echo "0" + diff --git a/src/tm_mad/common/not_supported.sh b/src/tm_mad/common/not_supported.sh new file mode 100755 index 0000000000..8eda482486 --- /dev/null +++ b/src/tm_mad/common/not_supported.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +script_name=$(basename $0) + +echo "$script_name: Operation not supported" &>2 + +exit 1 + diff --git a/src/tm_mad/dev/clone b/src/tm_mad/dev/clone new file mode 120000 index 0000000000..dbed61abf6 --- /dev/null +++ b/src/tm_mad/dev/clone @@ -0,0 +1 @@ +ln \ No newline at end of file diff --git a/src/tm_mad/dev/context b/src/tm_mad/dev/context new file mode 120000 index 0000000000..9c454e8cd4 --- /dev/null +++ b/src/tm_mad/dev/context @@ -0,0 +1 @@ +../common/not_supported.sh \ No newline at end of file diff --git a/src/tm_mad/dev/cpds b/src/tm_mad/dev/cpds new file mode 120000 index 0000000000..9c454e8cd4 --- /dev/null +++ b/src/tm_mad/dev/cpds @@ -0,0 +1 @@ +../common/not_supported.sh \ No newline at end of file diff --git a/src/tm_mad/dev/delete b/src/tm_mad/dev/delete new file mode 120000 index 0000000000..300563f2ad --- /dev/null +++ b/src/tm_mad/dev/delete @@ -0,0 +1 @@ +../common/dummy.sh \ No newline at end of file diff --git a/src/tm_mad/dev/ln b/src/tm_mad/dev/ln new file mode 100755 index 0000000000..cc8b4d4435 --- /dev/null +++ b/src/tm_mad/dev/ln @@ -0,0 +1,62 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +# clone fe:SOURCE host:remote_system_ds/disk.i vmid dsid +# - fe is the front-end hostname +# - SOURCE is the path of the disk image in the form DS_BASE_PATH/disk +# - host is the target host to deploy the VM +# - remote_system_ds is the path for the system datastore in the host +# - vmid is the id of the VM +# - dsid is the target datastore (0 is the system datastore) + +SRC=$1 +DST=$2 + +VMID=$3 +DSID=$4 + +if [ -z "${ONE_LOCATION}" ]; then + TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh +else + TMCOMMON=$ONE_LOCATION/var/remotes/tm/tm_common.sh +fi + +. $TMCOMMON + +DST_PATH=`arg_path $DST` +DST_HOST=`arg_host $DST` +DST_DIR=`dirname $DST_PATH` + +SRC_PATH=`arg_path $SRC` + +#------------------------------------------------------------------------------- +# Create DST path +#------------------------------------------------------------------------------- +ssh_make_path $DST_HOST $DST_DIR + +#------------------------------------------------------------------------------- +# Link (ln) SRC into DST +#------------------------------------------------------------------------------- +log "Linking $SRC_PATH in $DST" + +ssh_exec_and_log $DST_HOST \ + "cd $DST_DIR; rm $DST_PATH ; ln -s $SRC_PATH $DST_PATH" \ + "Error linking $SRC to $DST" + +exit 0 + diff --git a/src/tm_mad/dev/mkimage b/src/tm_mad/dev/mkimage new file mode 120000 index 0000000000..300563f2ad --- /dev/null +++ b/src/tm_mad/dev/mkimage @@ -0,0 +1 @@ +../common/dummy.sh \ No newline at end of file diff --git a/src/tm_mad/dev/mkswap b/src/tm_mad/dev/mkswap new file mode 120000 index 0000000000..300563f2ad --- /dev/null +++ b/src/tm_mad/dev/mkswap @@ -0,0 +1 @@ +../common/dummy.sh \ No newline at end of file diff --git a/src/tm_mad/dev/mv b/src/tm_mad/dev/mv new file mode 120000 index 0000000000..300563f2ad --- /dev/null +++ b/src/tm_mad/dev/mv @@ -0,0 +1 @@ +../common/dummy.sh \ No newline at end of file diff --git a/src/tm_mad/dev/mvds b/src/tm_mad/dev/mvds new file mode 120000 index 0000000000..300563f2ad --- /dev/null +++ b/src/tm_mad/dev/mvds @@ -0,0 +1 @@ +../common/dummy.sh \ No newline at end of file diff --git a/src/tm_mad/dev/postmigrate b/src/tm_mad/dev/postmigrate new file mode 120000 index 0000000000..d580dd8260 --- /dev/null +++ b/src/tm_mad/dev/postmigrate @@ -0,0 +1 @@ +../common/postmigrate \ No newline at end of file diff --git a/src/tm_mad/dev/premigrate b/src/tm_mad/dev/premigrate new file mode 120000 index 0000000000..0e108a8a26 --- /dev/null +++ b/src/tm_mad/dev/premigrate @@ -0,0 +1 @@ +../common/premigrate \ No newline at end of file From b189172f32fa30651bb583236ef19c90cf345e1a Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 23 Jun 2014 11:53:32 +0200 Subject: [PATCH 4/5] feature #2970: enable context script in dev tm --- src/tm_mad/dev/context | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tm_mad/dev/context b/src/tm_mad/dev/context index 9c454e8cd4..921312e950 120000 --- a/src/tm_mad/dev/context +++ b/src/tm_mad/dev/context @@ -1 +1 @@ -../common/not_supported.sh \ No newline at end of file +../common/context \ No newline at end of file From be3ca5d4c6c42d6197575b987920fa269031afe8 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 24 Jun 2014 12:27:05 +0200 Subject: [PATCH 5/5] feature #2970: add copyright notice to scripts --- .../remotes/common/not_supported.sh | 16 ++++++++++++++++ src/tm_mad/common/not_supported.sh | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/datastore_mad/remotes/common/not_supported.sh b/src/datastore_mad/remotes/common/not_supported.sh index 8eda482486..5b6c039162 100755 --- a/src/datastore_mad/remotes/common/not_supported.sh +++ b/src/datastore_mad/remotes/common/not_supported.sh @@ -1,5 +1,21 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + script_name=$(basename $0) echo "$script_name: Operation not supported" &>2 diff --git a/src/tm_mad/common/not_supported.sh b/src/tm_mad/common/not_supported.sh index 8eda482486..5b6c039162 100755 --- a/src/tm_mad/common/not_supported.sh +++ b/src/tm_mad/common/not_supported.sh @@ -1,5 +1,21 @@ #!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + script_name=$(basename $0) echo "$script_name: Operation not supported" &>2