Created
October 23, 2019 18:01
-
-
Save mrschyte/95f60d7c30616f926c22cae1948a0ec6 to your computer and use it in GitHub Desktop.
Debug logs for linstor_un undeploy/redeploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed Oct 23 19:53:45 CEST 2019] /var/lib/one/remotes/tm/linstor_un/mv nebula01:/var/lib/one//datastores/106/192/disk.0 nebula01:/var/lib/one//datastores/106/192/disk.0 192 107 | |
+ '[' 1 '!=' 1 ']' | |
+ SRC=nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+ DST=nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+ VMID=192 | |
+ DSID=107 | |
+ '[' -z '' ']' | |
+ TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh | |
++ dirname /var/lib/one/remotes/tm/linstor_un/mv | |
+ DRIVER_PATH=/var/lib/one/remotes/tm/linstor_un | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/tm/fs_lvm/fs_lvm.conf | |
++ ZERO_LVM_ON_CREATE=yes | |
++ ZERO_LVM_ON_DELETE=yes | |
+ source /var/lib/one/remotes/tm/tm_common.sh | |
++ export LANG=C | |
++ LANG=C | |
++ '[' -z '' ']' | |
++ ONE_LOCAL_VAR=/var/lib/one | |
++ ONE_LIB=/usr/lib/one | |
++ DS_DIR=/var/lib/one/datastores | |
++ ONE_SH=/usr/lib/one/sh | |
++ . /usr/lib/one/sh/scripts_common.sh | |
+++ export LANG=C | |
+++ LANG=C | |
+++ export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ AWK=awk | |
+++ BASH=/bin/bash | |
+++ CUT=cut | |
+++ CEPH=ceph | |
+++ DATE=date | |
+++ DD=dd | |
+++ DF=df | |
+++ DU=du | |
+++ GREP=grep | |
+++ ISCSIADM=iscsiadm | |
+++ LVCREATE=lvcreate | |
+++ LVREMOVE=lvremove | |
+++ LVCHANGE=lvchange | |
+++ LVSCAN=lvscan | |
+++ LVEXTEND=lvextend | |
+++ LVS=lvs | |
+++ LN=ln | |
+++ MD5SUM=md5sum | |
+++ MKFS=mkfs | |
+++ MKISOFS=genisoimage | |
+++ MKSWAP=mkswap | |
+++ QEMU_IMG=qemu-img | |
+++ RADOS=rados | |
+++ RBD=rbd | |
+++ READLINK=readlink | |
+++ RM=rm | |
+++ CP=cp | |
+++ SCP=scp | |
+++ SED=sed | |
+++ SSH=ssh | |
+++ SUDO=sudo | |
+++ SYNC=sync | |
+++ TAR=tar | |
+++ TGTADM=tgtadm | |
+++ TGTADMIN=tgt-admin | |
+++ TGTSETUPLUN=tgt-setup-lun-one | |
+++ TR=tr | |
+++ VGDISPLAY=vgdisplay | |
+++ VMKFSTOOLS=vmkfstools | |
+++ WGET=wget | |
++++ uname -s | |
+++ '[' xLinux = xLinux ']' | |
+++ SED='sed -r' | |
++++ basename /var/lib/one/remotes/tm/linstor_un/mv | |
+++ SCRIPT_NAME=mv | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/libfs.sh | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/datastore/linstor_un/linstor_un.conf | |
++ LINSTOR=linstor | |
++ JQ=jq | |
++ STAGING_DIR=/var/tmp | |
++ DD_BLOCK_SIZE=64k | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/linstor_un/linstor_utils.sh | |
+ XPATH='/var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin' | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onedatastore show -x 107 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin /DATASTORE/TEMPLATE/BRIDGE_LIST /DATASTORE/TEMPLATE/LS_CONTROLLERS /DATASTORE/TEMPLATE/NODE_LIST /DATASTORE/TEMPLATE/LAYER_LIST /DATASTORE/TEMPLATE/PROVIDERS /DATASTORE/TEMPLATE/REPLICAS_ON_SAME /DATASTORE/TEMPLATE/REPLICAS_ON_DIFFERENT /DATASTORE/TEMPLATE/AUTO_PLACE /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH_REGEX /DATASTORE/TEMPLATE/STORAGE_POOL /DATASTORE/TEMPLATE/DISKLESS_POOL /DATASTORE/TEMPLATE/ENCRYPTION | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=2 | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=one-image | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ BRIDGE_LIST= | |
+ LS_CONTROLLERS= | |
+ NODE_LIST= | |
+ LAYER_LIST= | |
+ PROVIDERS= | |
+ REPLICAS_ON_SAME= | |
+ REPLICAS_ON_DIFFERENT= | |
+ AUTO_PLACE=2 | |
+ DO_NOT_PLACE_WITH= | |
+ DO_NOT_PLACE_WITH_REGEX= | |
+ STORAGE_POOL=one-image | |
+ DISKLESS_POOL=DfltDisklessStorPool | |
+ ENCRYPTION= | |
+ linstor_load_keys | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n 2 ']' | |
+ RES_CREATE_ARGS=' --auto-place 2' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' '' = yes ']' | |
++ arg_path nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192/disk.0 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192/disk.0 | |
++ dirname /var/lib/one//datastores/106/192/disk.0/file | |
++ sed -r 's/\/+/\//g' | |
+ SRC_PATH=/var/lib/one/datastores/106/192/disk.0 | |
++ arg_path nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192/disk.0 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192/disk.0 | |
++ dirname /var/lib/one//datastores/106/192/disk.0/file | |
++ sed -r 's/\/+/\//g' | |
+ DST_PATH=/var/lib/one/datastores/106/192/disk.0 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ SRC_HOST=nebula01 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ DST_HOST=nebula01 | |
++ dirname /var/lib/one/datastores/106/192/disk.0 | |
+ SRC_DIR=/var/lib/one/datastores/106/192 | |
++ dirname /var/lib/one/datastores/106/192/disk.0 | |
+ DST_DIR=/var/lib/one/datastores/106/192 | |
++ is_disk /var/lib/one/datastores/106/192/disk.0 | |
++ echo /var/lib/one/datastores/106/192/disk.0 | |
++ grep '/disk\.[0-9]\+' | |
++ '[' 0 -eq 0 ']' | |
++ echo 1 | |
+ '[' 1 -eq 1 ']' | |
++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ awk -F. '{print $NF}' | |
+ DISK_ID=0 | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onevm show -x 192 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin '/VM/TEMPLATE/DISK[DISK_ID=0]/SOURCE' '/VM/TEMPLATE/DISK[DISK_ID=0]/CLONE' | |
+ XPATH_ELEMENTS[i++]=/dev/drbd/by-res/one-image-33/0 | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=YES | |
+ IFS= | |
+ read -r -d '' element | |
+ SRC_DEV=/dev/drbd/by-res/one-image-33/0 | |
+ CLONE=YES | |
++ echo /dev/drbd/by-res/one-image-33/0 | |
++ awk -F/ '{print $(NF-1)}' | |
+ SRC_RES=one-image-33 | |
+ '[' YES '!=' NO ']' | |
+ SRC_RES=one-vm-192-disk-0 | |
+ SRC_DEV=/dev/drbd/by-res/one-vm-192-disk-0/0 | |
+ DST_RES=one-vm-192-disk-0 | |
+ DST_DEV=/dev/drbd/by-res/one-vm-192-disk-0/0 | |
++ echo /var/lib/one/datastores/106/192 | |
++ awk -F / '{print $(NF-1)}' | |
+ SRC_DS_SYS_ID=106 | |
++ echo /var/lib/one/datastores/106/192 | |
++ awk -F / '{print $(NF-1)}' | |
+ DST_DS_SYS_ID=106 | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onevm show -x 192 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin /VM/LCM_STATE | |
+ XPATH_ELEMENTS[i++]=30 | |
+ IFS= | |
+ read -r -d '' element | |
+ LCM_STATE=30 | |
+ [[ 30 =~ ^(9|31|49|50)$ ]] | |
++ linstor_get_diskless_hosts_for_res one-vm-192-disk-0 | |
++ local RES=one-vm-192-disk-0 | |
++ linstor -m --output-version v0 resource list -r one-vm-192-disk-0 | |
++ jq -r '.[].resources[]? | select(.rsc_flags[]? | | |
contains("DISKLESS")) | .node_name' | |
++ xargs | |
+ SRC_RES_DISKLESS_HOSTS= | |
+ [[ =~ nebula01 ]] | |
+ ssh_exec_and_log nebula01 'rm -f /var/lib/one/datastores/106/192/disk.0' 'Error unlinking /var/lib/one/datastores/106/192/disk.0 on nebula01' | |
+ ssh_exec_and_log_no_error nebula01 'rm -f /var/lib/one/datastores/106/192/disk.0' 'Error unlinking /var/lib/one/datastores/106/192/disk.0 on nebula01' | |
++ ssh nebula01 bash -s | |
+ SSH_EXEC_ERR= | |
+ SSH_EXEC_RC=0 | |
+ '[' 0 -ne 0 ']' | |
+ return 0 | |
+ EXEC_RC=0 | |
+ '[' 0 '!=' 0 ']' | |
+ [[ 30 =~ ^(10|30|41|42)$ ]] | |
+ exit 0 | |
[Wed Oct 23 19:53:49 CEST 2019] /var/lib/one/remotes/tm/linstor_un/mv nebula01:/var/lib/one//datastores/106/192 nebula01:/var/lib/one//datastores/106/192 192 106 | |
+ '[' 1 '!=' 1 ']' | |
+ SRC=nebula01:/var/lib/one//datastores/106/192 | |
+ DST=nebula01:/var/lib/one//datastores/106/192 | |
+ VMID=192 | |
+ DSID=106 | |
+ '[' -z '' ']' | |
+ TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh | |
++ dirname /var/lib/one/remotes/tm/linstor_un/mv | |
+ DRIVER_PATH=/var/lib/one/remotes/tm/linstor_un | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/tm/fs_lvm/fs_lvm.conf | |
++ ZERO_LVM_ON_CREATE=yes | |
++ ZERO_LVM_ON_DELETE=yes | |
+ source /var/lib/one/remotes/tm/tm_common.sh | |
++ export LANG=C | |
++ LANG=C | |
++ '[' -z '' ']' | |
++ ONE_LOCAL_VAR=/var/lib/one | |
++ ONE_LIB=/usr/lib/one | |
++ DS_DIR=/var/lib/one/datastores | |
++ ONE_SH=/usr/lib/one/sh | |
++ . /usr/lib/one/sh/scripts_common.sh | |
+++ export LANG=C | |
+++ LANG=C | |
+++ export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ AWK=awk | |
+++ BASH=/bin/bash | |
+++ CUT=cut | |
+++ CEPH=ceph | |
+++ DATE=date | |
+++ DD=dd | |
+++ DF=df | |
+++ DU=du | |
+++ GREP=grep | |
+++ ISCSIADM=iscsiadm | |
+++ LVCREATE=lvcreate | |
+++ LVREMOVE=lvremove | |
+++ LVCHANGE=lvchange | |
+++ LVSCAN=lvscan | |
+++ LVEXTEND=lvextend | |
+++ LVS=lvs | |
+++ LN=ln | |
+++ MD5SUM=md5sum | |
+++ MKFS=mkfs | |
+++ MKISOFS=genisoimage | |
+++ MKSWAP=mkswap | |
+++ QEMU_IMG=qemu-img | |
+++ RADOS=rados | |
+++ RBD=rbd | |
+++ READLINK=readlink | |
+++ RM=rm | |
+++ CP=cp | |
+++ SCP=scp | |
+++ SED=sed | |
+++ SSH=ssh | |
+++ SUDO=sudo | |
+++ SYNC=sync | |
+++ TAR=tar | |
+++ TGTADM=tgtadm | |
+++ TGTADMIN=tgt-admin | |
+++ TGTSETUPLUN=tgt-setup-lun-one | |
+++ TR=tr | |
+++ VGDISPLAY=vgdisplay | |
+++ VMKFSTOOLS=vmkfstools | |
+++ WGET=wget | |
++++ uname -s | |
+++ '[' xLinux = xLinux ']' | |
+++ SED='sed -r' | |
++++ basename /var/lib/one/remotes/tm/linstor_un/mv | |
+++ SCRIPT_NAME=mv | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/libfs.sh | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/datastore/linstor_un/linstor_un.conf | |
++ LINSTOR=linstor | |
++ JQ=jq | |
++ STAGING_DIR=/var/tmp | |
++ DD_BLOCK_SIZE=64k | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/linstor_un/linstor_utils.sh | |
+ XPATH='/var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin' | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onedatastore show -x 106 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin /DATASTORE/TEMPLATE/BRIDGE_LIST /DATASTORE/TEMPLATE/LS_CONTROLLERS /DATASTORE/TEMPLATE/NODE_LIST /DATASTORE/TEMPLATE/LAYER_LIST /DATASTORE/TEMPLATE/PROVIDERS /DATASTORE/TEMPLATE/REPLICAS_ON_SAME /DATASTORE/TEMPLATE/REPLICAS_ON_DIFFERENT /DATASTORE/TEMPLATE/AUTO_PLACE /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH_REGEX /DATASTORE/TEMPLATE/STORAGE_POOL /DATASTORE/TEMPLATE/DISKLESS_POOL /DATASTORE/TEMPLATE/ENCRYPTION | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=2 | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=one-system | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ BRIDGE_LIST= | |
+ LS_CONTROLLERS= | |
+ NODE_LIST= | |
+ LAYER_LIST= | |
+ PROVIDERS= | |
+ REPLICAS_ON_SAME= | |
+ REPLICAS_ON_DIFFERENT= | |
+ AUTO_PLACE=2 | |
+ DO_NOT_PLACE_WITH= | |
+ DO_NOT_PLACE_WITH_REGEX= | |
+ STORAGE_POOL=one-system | |
+ DISKLESS_POOL=DfltDisklessStorPool | |
+ ENCRYPTION= | |
+ linstor_load_keys | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n 2 ']' | |
+ RES_CREATE_ARGS=' --auto-place 2' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' '' = yes ']' | |
++ arg_path nebula01:/var/lib/one//datastores/106/192 | |
+++ echo nebula01:/var/lib/one//datastores/106/192 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192 | |
++ dirname /var/lib/one//datastores/106/192/file | |
++ sed -r 's/\/+/\//g' | |
+ SRC_PATH=/var/lib/one/datastores/106/192 | |
++ arg_path nebula01:/var/lib/one//datastores/106/192 | |
+++ echo nebula01:/var/lib/one//datastores/106/192 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192 | |
++ dirname /var/lib/one//datastores/106/192/file | |
++ sed -r 's/\/+/\//g' | |
+ DST_PATH=/var/lib/one/datastores/106/192 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192 | |
++ echo nebula01:/var/lib/one//datastores/106/192 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ SRC_HOST=nebula01 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192 | |
++ echo nebula01:/var/lib/one//datastores/106/192 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ DST_HOST=nebula01 | |
++ dirname /var/lib/one/datastores/106/192 | |
+ SRC_DIR=/var/lib/one/datastores/106 | |
++ dirname /var/lib/one/datastores/106/192 | |
+ DST_DIR=/var/lib/one/datastores/106 | |
++ is_disk /var/lib/one/datastores/106/192 | |
++ echo /var/lib/one/datastores/106/192 | |
++ grep '/disk\.[0-9]\+' | |
++ '[' 1 -eq 0 ']' | |
++ echo 0 | |
+ '[' 0 -eq 1 ']' | |
+ [[ '' =~ ^(9|31|49|50)$ ]] | |
+ ssh_exec_and_log_no_error nebula01 'rm -rf /var/lib/one/datastores/106/192' 'Error removing VM files on System DS: /var/lib/one/datastores/106/192 on nebula01' | |
++ ssh nebula01 bash -s | |
+ SSH_EXEC_ERR= | |
+ SSH_EXEC_RC=0 | |
+ '[' 0 -ne 0 ']' | |
+ return 0 | |
+ exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed Oct 23 19:54:42 CEST 2019] /var/lib/one/remotes/tm/linstor_un/mv nebula01:/var/lib/one//datastores/106/192/disk.0 nebula01:/var/lib/one//datastores/106/192/disk.0 192 107 | |
+ '[' 1 '!=' 1 ']' | |
+ SRC=nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+ DST=nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+ VMID=192 | |
+ DSID=107 | |
+ '[' -z '' ']' | |
+ TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh | |
++ dirname /var/lib/one/remotes/tm/linstor_un/mv | |
+ DRIVER_PATH=/var/lib/one/remotes/tm/linstor_un | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/tm/fs_lvm/fs_lvm.conf | |
++ ZERO_LVM_ON_CREATE=yes | |
++ ZERO_LVM_ON_DELETE=yes | |
+ source /var/lib/one/remotes/tm/tm_common.sh | |
++ export LANG=C | |
++ LANG=C | |
++ '[' -z '' ']' | |
++ ONE_LOCAL_VAR=/var/lib/one | |
++ ONE_LIB=/usr/lib/one | |
++ DS_DIR=/var/lib/one/datastores | |
++ ONE_SH=/usr/lib/one/sh | |
++ . /usr/lib/one/sh/scripts_common.sh | |
+++ export LANG=C | |
+++ LANG=C | |
+++ export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ AWK=awk | |
+++ BASH=/bin/bash | |
+++ CUT=cut | |
+++ CEPH=ceph | |
+++ DATE=date | |
+++ DD=dd | |
+++ DF=df | |
+++ DU=du | |
+++ GREP=grep | |
+++ ISCSIADM=iscsiadm | |
+++ LVCREATE=lvcreate | |
+++ LVREMOVE=lvremove | |
+++ LVCHANGE=lvchange | |
+++ LVSCAN=lvscan | |
+++ LVEXTEND=lvextend | |
+++ LVS=lvs | |
+++ LN=ln | |
+++ MD5SUM=md5sum | |
+++ MKFS=mkfs | |
+++ MKISOFS=genisoimage | |
+++ MKSWAP=mkswap | |
+++ QEMU_IMG=qemu-img | |
+++ RADOS=rados | |
+++ RBD=rbd | |
+++ READLINK=readlink | |
+++ RM=rm | |
+++ CP=cp | |
+++ SCP=scp | |
+++ SED=sed | |
+++ SSH=ssh | |
+++ SUDO=sudo | |
+++ SYNC=sync | |
+++ TAR=tar | |
+++ TGTADM=tgtadm | |
+++ TGTADMIN=tgt-admin | |
+++ TGTSETUPLUN=tgt-setup-lun-one | |
+++ TR=tr | |
+++ VGDISPLAY=vgdisplay | |
+++ VMKFSTOOLS=vmkfstools | |
+++ WGET=wget | |
++++ uname -s | |
+++ '[' xLinux = xLinux ']' | |
+++ SED='sed -r' | |
++++ basename /var/lib/one/remotes/tm/linstor_un/mv | |
+++ SCRIPT_NAME=mv | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/libfs.sh | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/datastore/linstor_un/linstor_un.conf | |
++ LINSTOR=linstor | |
++ JQ=jq | |
++ STAGING_DIR=/var/tmp | |
++ DD_BLOCK_SIZE=64k | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/linstor_un/linstor_utils.sh | |
+ XPATH='/var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin' | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onedatastore show -x 107 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin /DATASTORE/TEMPLATE/BRIDGE_LIST /DATASTORE/TEMPLATE/LS_CONTROLLERS /DATASTORE/TEMPLATE/NODE_LIST /DATASTORE/TEMPLATE/LAYER_LIST /DATASTORE/TEMPLATE/PROVIDERS /DATASTORE/TEMPLATE/REPLICAS_ON_SAME /DATASTORE/TEMPLATE/REPLICAS_ON_DIFFERENT /DATASTORE/TEMPLATE/AUTO_PLACE /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH_REGEX /DATASTORE/TEMPLATE/STORAGE_POOL /DATASTORE/TEMPLATE/DISKLESS_POOL /DATASTORE/TEMPLATE/ENCRYPTION | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=2 | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=one-image | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ BRIDGE_LIST= | |
+ LS_CONTROLLERS= | |
+ NODE_LIST= | |
+ LAYER_LIST= | |
+ PROVIDERS= | |
+ REPLICAS_ON_SAME= | |
+ REPLICAS_ON_DIFFERENT= | |
+ AUTO_PLACE=2 | |
+ DO_NOT_PLACE_WITH= | |
+ DO_NOT_PLACE_WITH_REGEX= | |
+ STORAGE_POOL=one-image | |
+ DISKLESS_POOL=DfltDisklessStorPool | |
+ ENCRYPTION= | |
+ linstor_load_keys | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n 2 ']' | |
+ RES_CREATE_ARGS=' --auto-place 2' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' '' = yes ']' | |
++ arg_path nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192/disk.0 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192/disk.0 | |
++ dirname /var/lib/one//datastores/106/192/disk.0/file | |
++ sed -r 's/\/+/\//g' | |
+ SRC_PATH=/var/lib/one/datastores/106/192/disk.0 | |
++ arg_path nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192/disk.0 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192/disk.0 | |
++ dirname /var/lib/one//datastores/106/192/disk.0/file | |
++ sed -r 's/\/+/\//g' | |
+ DST_PATH=/var/lib/one/datastores/106/192/disk.0 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ SRC_HOST=nebula01 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ DST_HOST=nebula01 | |
++ dirname /var/lib/one/datastores/106/192/disk.0 | |
+ SRC_DIR=/var/lib/one/datastores/106/192 | |
++ dirname /var/lib/one/datastores/106/192/disk.0 | |
+ DST_DIR=/var/lib/one/datastores/106/192 | |
++ is_disk /var/lib/one/datastores/106/192/disk.0 | |
++ echo /var/lib/one/datastores/106/192/disk.0 | |
++ grep '/disk\.[0-9]\+' | |
++ '[' 0 -eq 0 ']' | |
++ echo 1 | |
+ '[' 1 -eq 1 ']' | |
++ echo nebula01:/var/lib/one//datastores/106/192/disk.0 | |
++ awk -F. '{print $NF}' | |
+ DISK_ID=0 | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onevm show -x 192 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin '/VM/TEMPLATE/DISK[DISK_ID=0]/SOURCE' '/VM/TEMPLATE/DISK[DISK_ID=0]/CLONE' | |
+ XPATH_ELEMENTS[i++]=/dev/drbd/by-res/one-image-33/0 | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=YES | |
+ IFS= | |
+ read -r -d '' element | |
+ SRC_DEV=/dev/drbd/by-res/one-image-33/0 | |
+ CLONE=YES | |
++ echo /dev/drbd/by-res/one-image-33/0 | |
++ awk -F/ '{print $(NF-1)}' | |
+ SRC_RES=one-image-33 | |
+ '[' YES '!=' NO ']' | |
+ SRC_RES=one-vm-192-disk-0 | |
+ SRC_DEV=/dev/drbd/by-res/one-vm-192-disk-0/0 | |
+ DST_RES=one-vm-192-disk-0 | |
+ DST_DEV=/dev/drbd/by-res/one-vm-192-disk-0/0 | |
++ echo /var/lib/one/datastores/106/192 | |
++ awk -F / '{print $(NF-1)}' | |
+ SRC_DS_SYS_ID=106 | |
++ echo /var/lib/one/datastores/106/192 | |
++ awk -F / '{print $(NF-1)}' | |
+ DST_DS_SYS_ID=106 | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onevm show -x 192 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin /VM/LCM_STATE | |
+ XPATH_ELEMENTS[i++]=31 | |
+ IFS= | |
+ read -r -d '' element | |
+ LCM_STATE=31 | |
+ [[ 31 =~ ^(9|31|49|50)$ ]] | |
+ [[ 31 =~ ^(10|30|41|42)$ ]] | |
+ '[' /var/lib/one/datastores/106/192/disk.0 '!=' /var/lib/one/datastores/106/192/disk.0 ']' | |
++ linstor_get_hosts_for_res one-vm-192-disk-0 | |
++ local RES=one-vm-192-disk-0 | |
++ linstor -m --output-version v0 resource list -r one-vm-192-disk-0 | |
++ jq -r '.[].resources[]?.node_name' | |
++ xargs | |
+ DST_RES_HOSTS='nebula01 nebula02' | |
+ [[ nebula01 nebula02 =~ nebula01 ]] | |
++ cat | |
+ LINK_CMD=' set -e -o pipefail | |
mkdir -p /var/lib/one/datastores/106/192 | |
rm -f /var/lib/one/datastores/106/192/disk.0 | |
ln -s /dev/drbd/by-res/one-vm-192-disk-0/0 /var/lib/one/datastores/106/192/disk.0' | |
+ ssh_exec_and_log nebula01 ' set -e -o pipefail | |
mkdir -p /var/lib/one/datastores/106/192 | |
rm -f /var/lib/one/datastores/106/192/disk.0 | |
ln -s /dev/drbd/by-res/one-vm-192-disk-0/0 /var/lib/one/datastores/106/192/disk.0' 'Error linking /dev/drbd/by-res/one-vm-192-disk-0/0 to /var/lib/one/datastores/106/192/disk.0 on nebula01' | |
+ ssh_exec_and_log_no_error nebula01 ' set -e -o pipefail | |
mkdir -p /var/lib/one/datastores/106/192 | |
rm -f /var/lib/one/datastores/106/192/disk.0 | |
ln -s /dev/drbd/by-res/one-vm-192-disk-0/0 /var/lib/one/datastores/106/192/disk.0' 'Error linking /dev/drbd/by-res/one-vm-192-disk-0/0 to /var/lib/one/datastores/106/192/disk.0 on nebula01' | |
++ ssh nebula01 bash -s | |
+ SSH_EXEC_ERR= | |
+ SSH_EXEC_RC=0 | |
+ '[' 0 -ne 0 ']' | |
+ return 0 | |
+ EXEC_RC=0 | |
+ '[' 0 '!=' 0 ']' | |
+ exit 0 | |
[Wed Oct 23 19:54:45 CEST 2019] /var/lib/one/remotes/tm/linstor_un/mv nebula01:/var/lib/one//datastores/106/192 nebula01:/var/lib/one//datastores/106/192 192 106 | |
+ '[' 1 '!=' 1 ']' | |
+ SRC=nebula01:/var/lib/one//datastores/106/192 | |
+ DST=nebula01:/var/lib/one//datastores/106/192 | |
+ VMID=192 | |
+ DSID=106 | |
+ '[' -z '' ']' | |
+ TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh | |
++ dirname /var/lib/one/remotes/tm/linstor_un/mv | |
+ DRIVER_PATH=/var/lib/one/remotes/tm/linstor_un | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/tm/fs_lvm/fs_lvm.conf | |
++ ZERO_LVM_ON_CREATE=yes | |
++ ZERO_LVM_ON_DELETE=yes | |
+ source /var/lib/one/remotes/tm/tm_common.sh | |
++ export LANG=C | |
++ LANG=C | |
++ '[' -z '' ']' | |
++ ONE_LOCAL_VAR=/var/lib/one | |
++ ONE_LIB=/usr/lib/one | |
++ DS_DIR=/var/lib/one/datastores | |
++ ONE_SH=/usr/lib/one/sh | |
++ . /usr/lib/one/sh/scripts_common.sh | |
+++ export LANG=C | |
+++ LANG=C | |
+++ export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
+++ AWK=awk | |
+++ BASH=/bin/bash | |
+++ CUT=cut | |
+++ CEPH=ceph | |
+++ DATE=date | |
+++ DD=dd | |
+++ DF=df | |
+++ DU=du | |
+++ GREP=grep | |
+++ ISCSIADM=iscsiadm | |
+++ LVCREATE=lvcreate | |
+++ LVREMOVE=lvremove | |
+++ LVCHANGE=lvchange | |
+++ LVSCAN=lvscan | |
+++ LVEXTEND=lvextend | |
+++ LVS=lvs | |
+++ LN=ln | |
+++ MD5SUM=md5sum | |
+++ MKFS=mkfs | |
+++ MKISOFS=genisoimage | |
+++ MKSWAP=mkswap | |
+++ QEMU_IMG=qemu-img | |
+++ RADOS=rados | |
+++ RBD=rbd | |
+++ READLINK=readlink | |
+++ RM=rm | |
+++ CP=cp | |
+++ SCP=scp | |
+++ SED=sed | |
+++ SSH=ssh | |
+++ SUDO=sudo | |
+++ SYNC=sync | |
+++ TAR=tar | |
+++ TGTADM=tgtadm | |
+++ TGTADMIN=tgt-admin | |
+++ TGTSETUPLUN=tgt-setup-lun-one | |
+++ TR=tr | |
+++ VGDISPLAY=vgdisplay | |
+++ VMKFSTOOLS=vmkfstools | |
+++ WGET=wget | |
++++ uname -s | |
+++ '[' xLinux = xLinux ']' | |
+++ SED='sed -r' | |
++++ basename /var/lib/one/remotes/tm/linstor_un/mv | |
+++ SCRIPT_NAME=mv | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/libfs.sh | |
+ source /var/lib/one/remotes/tm/linstor_un/../../etc/datastore/linstor_un/linstor_un.conf | |
++ LINSTOR=linstor | |
++ JQ=jq | |
++ STAGING_DIR=/var/tmp | |
++ DD_BLOCK_SIZE=64k | |
+ source /var/lib/one/remotes/tm/linstor_un/../../datastore/linstor_un/linstor_utils.sh | |
+ XPATH='/var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin' | |
+ unset i j XPATH_ELEMENTS | |
+ IFS= | |
+ read -r -d '' element | |
++ onedatastore show -x 106 | |
++ /var/lib/one/remotes/tm/linstor_un/../../datastore/xpath.rb --stdin /DATASTORE/TEMPLATE/BRIDGE_LIST /DATASTORE/TEMPLATE/LS_CONTROLLERS /DATASTORE/TEMPLATE/NODE_LIST /DATASTORE/TEMPLATE/LAYER_LIST /DATASTORE/TEMPLATE/PROVIDERS /DATASTORE/TEMPLATE/REPLICAS_ON_SAME /DATASTORE/TEMPLATE/REPLICAS_ON_DIFFERENT /DATASTORE/TEMPLATE/AUTO_PLACE /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH /DATASTORE/TEMPLATE/DO_NOT_PLACE_WITH_REGEX /DATASTORE/TEMPLATE/STORAGE_POOL /DATASTORE/TEMPLATE/DISKLESS_POOL /DATASTORE/TEMPLATE/ENCRYPTION | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=2 | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]=one-system | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ XPATH_ELEMENTS[i++]= | |
+ IFS= | |
+ read -r -d '' element | |
+ BRIDGE_LIST= | |
+ LS_CONTROLLERS= | |
+ NODE_LIST= | |
+ LAYER_LIST= | |
+ PROVIDERS= | |
+ REPLICAS_ON_SAME= | |
+ REPLICAS_ON_DIFFERENT= | |
+ AUTO_PLACE=2 | |
+ DO_NOT_PLACE_WITH= | |
+ DO_NOT_PLACE_WITH_REGEX= | |
+ STORAGE_POOL=one-system | |
+ DISKLESS_POOL=DfltDisklessStorPool | |
+ ENCRYPTION= | |
+ linstor_load_keys | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n 2 ']' | |
+ RES_CREATE_ARGS=' --auto-place 2' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' '' = yes ']' | |
++ arg_path nebula01:/var/lib/one//datastores/106/192 | |
+++ echo nebula01:/var/lib/one//datastores/106/192 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192 | |
++ dirname /var/lib/one//datastores/106/192/file | |
++ sed -r 's/\/+/\//g' | |
+ SRC_PATH=/var/lib/one/datastores/106/192 | |
++ arg_path nebula01:/var/lib/one//datastores/106/192 | |
+++ echo nebula01:/var/lib/one//datastores/106/192 | |
+++ sed -r 's/^[^:]*:(.*)$/\1/' | |
++ ARG_PATH=/var/lib/one//datastores/106/192 | |
++ fix_dir_slashes /var/lib/one//datastores/106/192 | |
++ dirname /var/lib/one//datastores/106/192/file | |
++ sed -r 's/\/+/\//g' | |
+ DST_PATH=/var/lib/one/datastores/106/192 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192 | |
++ echo nebula01:/var/lib/one//datastores/106/192 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ SRC_HOST=nebula01 | |
++ arg_host nebula01:/var/lib/one//datastores/106/192 | |
++ echo nebula01:/var/lib/one//datastores/106/192 | |
++ sed -r 's/^([^:]*):.*$/\1/' | |
+ DST_HOST=nebula01 | |
++ dirname /var/lib/one/datastores/106/192 | |
+ SRC_DIR=/var/lib/one/datastores/106 | |
++ dirname /var/lib/one/datastores/106/192 | |
+ DST_DIR=/var/lib/one/datastores/106 | |
++ is_disk /var/lib/one/datastores/106/192 | |
++ echo /var/lib/one/datastores/106/192 | |
++ grep '/disk\.[0-9]\+' | |
++ '[' 1 -eq 0 ']' | |
++ echo 0 | |
+ '[' 0 -eq 1 ']' | |
+ [[ '' =~ ^(9|31|49|50)$ ]] | |
+ ssh_exec_and_log_no_error nebula01 'rm -rf /var/lib/one/datastores/106/192' 'Error removing VM files on System DS: /var/lib/one/datastores/106/192 on nebula01' | |
++ ssh nebula01 bash -s | |
+ SSH_EXEC_ERR= | |
+ SSH_EXEC_RC=0 | |
+ '[' 0 -ne 0 ']' | |
+ return 0 | |
+ exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment