[one-users] Problem starting VM over a SSH system datastore
Fernando.Felix at esa.int
Fernando.Felix at esa.int
Tue Dec 10 08:32:13 PST 2013
Hi all,
Thank you very very much. Now it is deploying (scp) the VM image to the
host.
Regards/Saludos
Fernando
--
Fernando Felix-Redondo [INSA, S.A.]
fernando.felix at esa.int Phone: +34 91 813 1368
SMOS DPGS Operations
Ground Segment System Engineer
ESA - ESAC
From: "Ruben S. Montero" <rubensm at dacya.ucm.es>
To: Fernando.Felix at esa.int,
Cc: "users at lists.opennebula.org" <users at lists.opennebula.org>
Date: 10/12/2013 17:12
Subject: Re: [one-users] Problem starting VM over a SSH system
datastore
Ok, I see.
1.- DATASTORE_LOCATION, it is used to accessed the datastore in the hosts.
2.- You are using TM SSH for the system ds (i.e. to move the running
images of a VM) but the Image DS is set to shared, so it is assume that
the datastore is mounted under /datastore
3.- So, either you need to update the Image datastore configuration to
use TM_MAD="ssh" as the system DS, or mount the datastore through a shared
FS.
Cheers
On Tue, Dec 10, 2013 at 5:03 PM, <Fernando.Felix at esa.int> wrote:
Hello Ruben,
Ok, I understand it. However, why the logs show this line first:
[...]clone
gpodmc.smos.lan:/var/lib/one//datastores/1/91209cfc6a24a39e60b42d9cd6ae5d7f
dpgsrcorepfw-3.smos.lan:/datastore/109/8/disk.0 8 1
(that I think it is perfectly aligned with your explanation)
and later it really tries this:
cp /datastore/1/91209cfc6a24a39e60b42d9cd6ae5d7f /datastore/109/8/disk.0
Why using /datastore in the source of the copy instead of
/var/lib/one/datastores?
Cheers
Fernando
--
Fernando Felix-Redondo [INSA, S.A.]
fernando.felix at esa.int Phone: +34 91 813 1368
SMOS DPGS Operations
Ground Segment System Engineer
ESA - ESAC
From: "Ruben S. Montero" <rsmontero at opennebula.org>
To: Fernando.Felix at esa.int,
Cc: "users at lists.opennebula.org" <users at lists.opennebula.org>
Date: 10/12/2013 16:17
Subject: Re: [one-users] Problem starting VM over a SSH system
datastore
When the images are registered (oneimage create) they are placed (in
filesystem-based datastores) in
$DATASTORE_BASE_PATH/<ds_id>
DATASTORE_BASE_PATH is either from oned.conf or from datastore template
(BASE_PATH attribute).
This images are then copied in the hosts to
$DATASTORE_LOCATION/<ds_id>/<vm_id>/
Note that those are different paths (one for the front-end) and the other
for the hosts.
If you want to access the default location, there is no need to set
neither DATASTORE_BASE_PATH nor DATASTORE_LOCATION.
Cheers
Ruben
On Tue, Dec 10, 2013 at 3:37 PM, <Fernando.Felix at esa.int> wrote:
Hello everyone,
I'm deploying my first cloud with ONE 4.4 and I'm facing a problem that I
don't understand. I have read all the related guides and I though I had
understand them but obviously it's not the case.
My problem is that after creating a SSH System datastore to just copy the
VM images from the frontend to the hosts, every time I try to start a
virtual machine I end up with the following error messages in the log:
Tue Dec 10 12:10:47 2013 [TM][I]: Command execution fail:
/var/lib/one/remotes/tm/shared/clone
gpodmc.smos.lan:/var/lib/one//datastores/1/91209cfc6a24a39e60b42d9cd6ae5d7f
dpgsrcorepfw-3.smos.lan:/datastore/109/8/disk.0 8 1
Tue Dec 10 12:10:47 2013 [TM][I]: clone: Cloning
/datastore/1/91209cfc6a24a39e60b42d9cd6ae5d7f in
dpgsrcorepfw-3.smos.lan:/datastore/109/8/disk.0
Tue Dec 10 12:10:47 2013 [TM][E]: clone: Command "cd /datastore/109/8; cp
/datastore/1/91209cfc6a24a39e60b42d9cd6ae5d7f /datastore/109/8/disk.0"
failed: cp: cannot stat `/datastore/1/91209cfc6a24a39e60b42d9cd6ae5d7f':
No such file or directory
Tue Dec 10 12:10:47 2013 [TM][E]: Error copying
gpodmc.smos.lan:/var/lib/one//datastores/1/91209cfc6a24a39e60b42d9cd6ae5d7f
to dpgsrcorepfw-3.smos.lan:/datastore/109/8/disk.0
Tue Dec 10 12:10:47 2013 [TM][I]: ExitCode: 1
Tue Dec 10 12:10:47 2013 [TM][E]: Error executing image transfer script:
Error copying
gpodmc.smos.lan:/var/lib/one//datastores/1/91209cfc6a24a39e60b42d9cd6ae5d7f
to dpgsrcorepfw-3.smos.lan:/datastore/109/8/disk.0
Tue Dec 10 12:10:47 2013 [DiM][I]: New VM state is FAILED
Tue Dec 10 12:20:58 2013 [DiM][I]: New VM state is DONE.
Tue Dec 10 12:20:58 2013 [TM][W]: Ignored: TRANSFER SUCCESS 8
The DATASTORE_LOCATION is pointing to "/datastore"
This is the output of the "onedatastore show" command:
=========================================================================================
[oneadmin at gpodmc one]$ onedatastore show 109
DATASTORE 109
INFORMATION
ID : 109
NAME : local_storage
USER : oneadmin
GROUP : oneadmin
CLUSTER : GPOD
TYPE : SYSTEM
DS_MAD : -
TM_MAD : ssh
BASE PATH : /datastore/109
DISK_TYPE : FILE
DATASTORE
CAPACITY
TOTAL: : -
FREE: : -
USED: : -
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE
TEMPLATE
SHARED="NO"
TM_MAD="ssh"
TYPE="SYSTEM_DS"
=================================================================================
What I really dont't understand is why ONE is trying to access the source
image from
/datastore/1/91209cfc6a24a39e60b42d9cd6ae5d7f /datastore/109/8/disk.0
instead of using
/var/lib/one/datastores/1/91209cfc6a24a39e60b42d9cd6ae5d7f
/datastore/109/8/disk.0
?
Any body could explain to me what I'm doing wrong, please?
Regards
Fernando
--
Fernando Felix-Redondo [INSA, S.A.]
fernando.felix at esa.int Phone: +34 91 813 1368
SMOS DPGS Operations
Ground Segment System Engineer
ESA - ESAC
This message and any attachments are intended for the use of the addressee
or addressees only. The unauthorised disclosure, use, dissemination or
copying (either in whole or in part) of its content is not permitted. If
you received this message in error, please notify the sender and delete it
from your system. Emails can be altered and their integrity cannot be
guaranteed by the sender.
Please consider the environment before printing this email.
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
--
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
This message and any attachments are intended for the use of the addressee
or addressees only. The unauthorised disclosure, use, dissemination or
copying (either in whole or in part) of its content is not permitted. If
you received this message in error, please notify the sender and delete it
from your system. Emails can be altered and their integrity cannot be
guaranteed by the sender.
Please consider the environment before printing this email.
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid
URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender.
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131210/7932c1de/attachment-0002.htm>
More information about the Users
mailing list