Hi guys,
I have the following issue. I wanted to try ssh datastores (we only used Ceph and NFS until now) and therefor created two Datastores. When the VM is instantiated the image is transferred correctly via ssh to the system datastore on the host. When the machine is shutdown it is not transferred back to the frontend. The tm tries to copy it locally on the kvm host to the corresponding imagedatastore dir (when i create that dir it actually gets copied there)
in the log i see:
Command execution fail: /var/lib/one/remotes/tm/ssh/mvds kvm-host-name:/var/lib/one//datastores/113/2228/disk.0 /var/lib/one//datastores/112/fca4482948f631360567b1cdbc6fb45a 2228 112
and
+ SRC=kvm-host-name:/var/lib/one//datastores/113/2228/disk.0 Tue May 10 10:15:49 2016 [Z0][TM][I]: + DST=/var/lib/one//datastores/112/fca4482948f631360567b1cdbc6fb45a Tue May 10 10:15:49 2016 [Z0][TM][I]: + VMID=2228 Tue May 10 10:15:49 2016 [Z0][TM][I]: + DSID=112 Tue May 10 10:15:49 2016 [Z0][TM][I]: + '[' -z '' ']' Tue May 10 10:15:49 2016 [Z0][TM][I]: + TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh Tue May 10 10:15:49 2016 [Z0][TM][I]: + . /var/lib/one/remotes/tm/tm_common.sh
what did I do wrong here?
we are using Opennebula 4.14.2 on Ubuntu 14.04
that is the configuration of the datastores:
the imagedatastore (accessible on the frontend only) with the following configuration:
<DATASTORE> <ID>112</ID> <UID>0</UID> <GID>0</GID> <UNAME>oneadmin</UNAME> <GNAME>oneadmin</GNAME> <NAME>ssh-test</NAME> <PERMISSIONS> <OWNER_U>1</OWNER_U> <OWNER_M>1</OWNER_M> <OWNER_A>0</OWNER_A> <GROUP_U>1</GROUP_U> <GROUP_M>0</GROUP_M> <GROUP_A>0</GROUP_A> <OTHER_U>0</OTHER_U> <OTHER_M>0</OTHER_M> <OTHER_A>0</OTHER_A> </PERMISSIONS> <DS_MAD><![CDATA[fs]]></DS_MAD> <TM_MAD><![CDATA[ssh]]></TM_MAD> <BASE_PATH><![CDATA[/var/lib/one//datastores/112]]></BASE_PATH> <TYPE>0</TYPE> <DISK_TYPE>0</DISK_TYPE> <STATE>0</STATE> <CLUSTER_ID>100</CLUSTER_ID> <CLUSTER>cluster01</CLUSTER> <TOTAL_MB>100666</TOTAL_MB> <FREE_MB>92803</FREE_MB> <USED_MB>2728</USED_MB> <IMAGES> <ID>841</ID> </IMAGES> <TEMPLATE> <BASE_PATH><![CDATA[/var/lib/one//datastores/]]></BASE_PATH> <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET> <DISK_TYPE><![CDATA[FILE]]></DISK_TYPE> <DS_MAD><![CDATA[fs]]></DS_MAD> <LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET> <TM_MAD><![CDATA[ssh]]></TM_MAD> <TYPE><![CDATA[IMAGE_DS]]></TYPE> </TEMPLATE> </DATASTORE>
and the system datastore (accessible on the kvm host only) with the following configuration:
<DATASTORE> <ID>113</ID> <UID>0</UID> <GID>0</GID> <UNAME>oneadmin</UNAME> <GNAME>oneadmin</GNAME> <NAME>system-test</NAME> <PERMISSIONS> <OWNER_U>1</OWNER_U> <OWNER_M>1</OWNER_M> <OWNER_A>0</OWNER_A> <GROUP_U>1</GROUP_U> <GROUP_M>0</GROUP_M> <GROUP_A>0</GROUP_A> <OTHER_U>0</OTHER_U> <OTHER_M>0</OTHER_M> <OTHER_A>0</OTHER_A> </PERMISSIONS> <DS_MAD><![CDATA[-]]></DS_MAD> <TM_MAD><![CDATA[ssh]]></TM_MAD> <BASE_PATH><![CDATA[/var/lib/one//datastores/113]]></BASE_PATH> <TYPE>1</TYPE> <DISK_TYPE>0</DISK_TYPE> <STATE>0</STATE> <CLUSTER_ID>100</CLUSTER_ID> <CLUSTER>cluster01</CLUSTER> <TOTAL_MB>0</TOTAL_MB> <FREE_MB>0</FREE_MB> <USED_MB>0</USED_MB> <IMAGES/> <TEMPLATE> <BASE_PATH><![CDATA[/var/lib/one//datastores/]]></BASE_PATH> <SHARED><![CDATA[NO]]></SHARED> <TM_MAD><![CDATA[ssh]]></TM_MAD> <TYPE><![CDATA[SYSTEM_DS]]></TYPE> </TEMPLATE> </DATASTORE>