[one-users] VM in Opennebula for Esxi 5.1 failed
Catalina Quinde
catalinaquinde at gmail.com
Sun Nov 10 17:17:38 PST 2013
Hi Daniel,
Thanks for reply,
1. 1. I'm using Opennebula 4.2 and node Esxi version 5.1.
2. I 2. I have used the following links:
http://opennebula.org/documentation:rel4.2:cluster_guide
http://opennebula.org/documentation:rel4.2:vmware_ds
http://opennebula.org/documentation:rel4.2:system_ds#the_system_datastore_for_multi-cluster_setups
and
responses in mail lists.
33. I 3. I have enabled ssh between Opennebula and Esxi to use no
password correctly.
4. 4. According to documentation should I put the Esxi node inside
the cluster, as Opennebula is working with several hypervisors, has been
used the command to create the cluster: “onecluster create [namecluster]”.
5. 5. I added the node Esxi to this cluster with the command:
“onecluster addhost [namecluster] [namenodo]”.
6. 6. I added to the cluster, virtual network created for Esxi, which
is also created on the Esxi node through Vsphere Client, with the
command:“onecluster addvnet [namecluster] [namevirtualred]”
7. 7. I updated the cluster using the command: “onecluster update
[namecluster]”, to add: DATASTORE_LOCATION, which will affect only that
node, by placing the following: DATASTORE_LOCATION=/vmfs/volumes
8. 8. I have created two files that serve as image to create the
datastores:
a. The image file for the datastore system contains:
NAME=dsEsxi
TM_MAD=vmfs
TYPE=SYSTEM_DS
BRIDGE_LIST="192.168.147.131"
b. This datastore is linked to the cluster at the same time created
with the command: “onedatastore create -c [namecluster]
/var/lib/images/system_esxi.ds”.
c. The image file for the datastore image contains:
NAME=diEsxi
DS_MAD=vmfs
TM_MAD=vmfs
TYPE=IMAGE_DS
BRIDGE_LIST="192.168.147.131"
d. This datastore is linked to the cluster at the same time created
with the commando:
“onedatastore create –c [namecluster] /var/lib/images/image_esxi.ds”
9. 9. When I list the datastores, you can see that the image
datastore new created has 0M capacity.
I've done all this procedure since according to the documentation followed
at Opennebula 4.2, it changes how to use Esxi node.
Before all of the above to deploy a VM this error occurred:
oneadmin at ubuntuOpNeb:~$ cat /var/log/one/36.log
Thu Oct 31 11:18:02 2013 [DiM][I]: New VM state is ACTIVE.
Thu Oct 31 11:18:02 2013 [LCM][I]: New VM state is PROLOG.
Thu Oct 31 11:18:03 2013 [TM][I]: Command execution fail:
/var/lib/one/remotes/tm/shared/clone ubuntuOpNeb:/var/lib/one/datastores/1/
02e8c67d4f59826e9fb12ccb48f77557 demos:/var/lib/one/datastores/0/36/disk.0
36 1
Thu Oct 31 11:18:03 2013 [TM][I]: clone: Cloning /var/lib/one/datastores/1/
02e8c67d4f59826e9fb12ccb48f77557 in demos:/var/lib/one/datastores/
0/36/disk.0
Thu Oct 31 11:18:03 2013 [TM][E]: clone: Command "cd
/var/lib/one/datastores/0/36; cp /var/lib/one/datastores/1/
02e8c67d4f59826e9fb12ccb48f77557 /var/lib/one/datastores/0/36/disk.0"
failed: cp: can't stat '/var/lib/one/datastores/1/
02e8c67d4f59826e9fb12ccb48f77557': No such file or directory
Thu Oct 31 11:18:03 2013 [TM][E]: Error copying ubuntuOpNeb:/var/lib/one/
datastores/1/02e8c67d4f59826e9fb12ccb48f77557 to
demos:/var/lib/one/datastores/0/36/disk.0
Thu Oct 31 11:18:03 2013 [TM][I]: ExitCode: 1
Thu Oct 31 11:18:03 2013 [TM][E]: Error executing image transfer script:
Error copying ubuntuOpNeb:/var/lib/one/datastores/1/
02e8c67d4f59826e9fb12ccb48f77557 to demos:/var/lib/one/datastores/
0/36/disk.0
Thu Oct 31 11:18:03 2013 [DiM][I]: New VM state is FAILED
Now, I suppose that I've to create the image for opennebula in the new
image datastore but I can’t do because it has no capacity.
Please help me.
Thanks, Caty
2013/11/10 <users-request at lists.opennebula.org>
> Send Users mailing list submissions to
> users at lists.opennebula.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> or, via email, send a message with subject or body 'help' to
> users-request at lists.opennebula.org
>
> You can reach the person managing the list at
> users-owner at lists.opennebula.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
> 1. VM in Opennebula for Esxi 5.1 failed (Catalina Quinde)
> 2. Re: VM in Opennebula for Esxi 5.1 failed (Daniel Dehennin)
> 3. ask to password when add ceph datastore (12navidb2 at gmail.com)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 9 Nov 2013 19:07:44 -0500
> From: Catalina Quinde <catalinaquinde at gmail.com>
> To: users at lists.opennebula.org
> Subject: [one-users] VM in Opennebula for Esxi 5.1 failed
> Message-ID:
> <CAPgz++yOE=CmekTkFjD=
> yCFo4uwN6oMYb+z+aYY7VtZ4rOoubw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Please help me,I created an OpenNebula cluster in which I have added the
> host Esxi, I've also created two datastores, one for system and one for
> images, with features:
>
> ID 100 system TM_MAD = vmfs
> ID 101 image DS_MAD = vmfs
> TM_MAD = vmfs
>
> These two datastores I have added to the cluster created, the comand
> "onedatastore list" indicates CAPACITY datastore = 0M
>
> And in the path "/ var / lib / one / datastores" here are not these two
> datastores as directories.
>
> I'm using OpenNebula Esxi 4.2 and 5.1.
>
> Greetings.
>
> Caty.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131109/556b453a/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sun, 10 Nov 2013 01:47:35 +0100
> From: Daniel Dehennin <daniel.dehennin at baby-gnu.org>
> To: users at lists.opennebula.org
> Subject: Re: [one-users] VM in Opennebula for Esxi 5.1 failed
> Message-ID: <878uwx9j6g.fsf at hati.baby-gnu.org>
> Content-Type: text/plain; charset="utf-8"
>
> Catalina Quinde <catalinaquinde at gmail.com> writes:
>
> First of all hello,
>
> I do not have proprietary system so I'll only give you information I have.
>
> > Please help me,I created an OpenNebula cluster in which I have added the
> > host Esxi, I've also created two datastores, one for system and one for
> > images, with features:
> >
> > ID 100 system TM_MAD = vmfs
> > ID 101 image DS_MAD = vmfs
> > TM_MAD = vmfs
> >
> > These two datastores I have added to the cluster created, the comand
> > "onedatastore list" indicates CAPACITY datastore = 0M
> >
> > And in the path "/ var / lib / one / datastores" here are not these two
> > datastores as directories.
>
> Reading the documentation[1], I understand that:
>
> 1. oneadmin must be able to SSH ESX servers without password[2]
>
> 2. nothing is under /var/lib/one/datastores of the OpenNebula frontend
> because it's managed by ESX servers, ONE access to VMFS datastores
> though API
>
> Maybe if you describe a little more your setup will help people helping
> you ;-)
>
> > I'm using OpenNebula Esxi 4.2 and 5.1.
>
> I suppose you mean that you use:
>
> - OpenNebula 4.2
> - ESXi 5.1
>
> Right?
>
> Regards.
>
> Footnotes:
> [1] http://opennebula.org/documentation:rel4.2:vmware_ds
>
> [2] http://opennebula.org/documentation:rel4.2:hostsubsystem
>
> --
> Daniel Dehennin
> R?cup?rer ma clef GPG:
> gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 229 bytes
> Desc: not available
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131110/580e83eb/attachment-0001.pgp
> >
>
> ------------------------------
>
> Message: 3
> Date: Sun, 10 Nov 2013 13:26:27 +0330
> From: "12navidb2 at gmail.com" <12navidb2 at gmail.com>
> To: users at lists.opennebula.org
> Subject: [one-users] ask to password when add ceph datastore
> Message-ID:
> <CAK9QDg9znnHjkH=mLc19F=
> CTSd+Yo16arttCEg_erv5-x4WAtg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> hi all
>
>
> when i add new ceph datastore, opennebula run a command like this with
> oneadmin user that needs password
>
>
> oneadmin at one-server2:~$ /var/lib/one/remotes/datastore/ceph/monitor
>
> PERTX0RSSVZFUl9BQ1RJT05fREFUQT48REFUQVNUT1JFPjxJRD4xMTM8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT5jZXBoZHM8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjE8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PERTX01BRD5jZXBoPC9EU19NQUQ+PFRNX01BRD5jZXBoPC9UTV9NQUQ+PEJBU0VfUEFUSD4vdmFyL2xpYi9vbmUvZGF0YXN0b3Jlcy8xMTM8L0JBU0VfUEFUSD48VFlQRT4wPC9UWVBFPjxESVNLX1RZUEU+MzwvRElTS19UWVBFPjxDTFVTVEVSX0lEPi0xPC9DTFVTVEVSX0lEPjxDTFVTVEVSPjwvQ0xVU1RFUj48VE9UQUxfTUI+MDwvVE9UQUxfTUI+PEZSRUVfTUI+MDwvRlJFRV9NQj48VVNFRF9NQj4wPC9VU0VEX01CPjxJTUFHRVM+PC9JTUFHRVM+PFRFTVBMQVRFPjxEU19NQUQ+PCFbQ0RBVEFbY2VwaF1dPjwvRFNfTUFEPjxIT1NUPjwhW0NEQVRBW29uZS1zZXJ2ZXIyXV0+PC9IT1NUPjxQT09MX05BTUU+PCFbQ0RBVEFbcmJkXV0+PC9QT09MX05BTUU+PFNBRkVfRElSUz48IVtDREFUQVsvXV0+PC9TQU
>
> ZFX0RJUlM+PFRNX01BRD48IVtDREFUQVtjZXBoXV0+PC9UTV9NQUQ+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSVZFUl9BQ1RJT05fREFUQT4=
> 113
> oneadmin at one-server2's password:
>
> because it, opennebula cant show datastore space and show (0MB)
>
>
> output this command is
>
> USED_MB=3015
> FREE_MB=1184747
> TOTAL_MB=1193984
>
>
> the point here is that i cant run this command with oneadmin user !
>
> sudo rados df
>
> or even rados df (without sudo)
>
> i add these lines to /etc/sudoers
>
> oneadmin ALL=(ALL) NOPASSWD: /usr/bin/rbd*,/usr/bin/rados*
>
>
>
> best regards
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131110/64242fd6/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> End of Users Digest, Vol 69, Issue 26
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131110/57bacaea/attachment-0002.htm>
More information about the Users
mailing list