[one-users] Users Digest, Vol 43, Issue 32

bala suru balaqemu at gmail.com
Mon Sep 19 09:11:33 PDT 2011


Hi,

Thanks I just edited  the export file as following.

/srv/cloud           192.168.1.6(rw,no_root_squash,,sync) .

Then I restarted the system  .

Now its working fine



But I'm facing the onemore problem that when I try to save the VM using the
following command .
onevm saveas <vm-id> <disk-id> <imagename>
onevm shutdown <vm-id>

Here I can see the new Image details when I do oneimage show <imagename>

but when I try to deploy the the new VM using the above image I get the
following error .

Tue Sep 13 16:16:57 2011 [TM][D]: Message received: LOG - 59 tm_clone.sh:
Cloning /srv/cloud/one/var/images/def71f75ceab7d2fa444927b8e1588633c547422

Tue Sep 13 16:16:57 2011 [TM][D]: Message received: LOG - 59 tm_clone.sh:
ERROR: Command "cp -r
/srv/cloud/one/var/images/def71f75ceab7d2fa444927b8e1588633c547422
/srv/cloud/one/var/59/images/disk.0" failed.

Tue Sep 13 16:16:57 2011 [TM][D]: Message received: LOG - 59 tm_clone.sh:
ERROR: cp: cannot stat
`/srv/cloud/one/var/images/def71f75ceab7d2fa444927b8e1588633c547422': No
such file or directory

Here is the output of oneimage show 32
ID             : 32
NAME           : alliswell
TYPE           : OS
REGISTER TIME  : 09/13 16:12:13
PUBLIC         : No
PERSISTENT     : No
SOURCE         :
/srv/cloud/one/var/images/def71f75ceab7d2fa444927b8e1588633c547422
STATE          : rdy
RUNNING_VMS    : 1

IMAGE
TEMPLATE
DEV_PREFIX=hd
NAME=alliswell
TYPE=OS


Since I'm able to save/ clone the VM , I guess there is no problem with user
rights access to the nfs shared folder .

what else  may be the problem ..? why it could not save the image .

regards
Bala


On Fri, Sep 16, 2011 at 12:07 PM, <users-request at lists.opennebula.org>wrote:

> 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. Re: onevm saveas error (Fabian Wenk)
>   2. Re: onevm STOP error (Fabian Wenk)
>   3. Re: Workflow Management in Open Nebula (Carlos Mart?n S?nchez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 16 Sep 2011 13:20:19 +0200
> From: Fabian Wenk <fabian at wenks.ch>
> To: users at lists.opennebula.org
> Subject: Re: [one-users] onevm saveas error
> Message-ID: <4E7330F3.30806 at wenks.ch>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello
>
> On 16.09.2011 12:57, bharath pb wrote:
> > The image path location  has set to default location only . i.e
> > /srv/cloud/one/var/images  , but I could not see any image after
> executing
>
> Ok, I think this should also be fine.
>
> >   the saveas and shutdown commands ,.
> > And also there are no errors in the log file .
> >
> > why this cant save the VM ..?
>
> Because it could not write the file
> /srv/cloud/one/var//images/e0561a492c9aaac280479f2f0d85dcced9156fbf as
> the log file you have posted shows. Is the oneadmin user able to
> write into this folder?
>
> Also check your configuration, this // is not normal (but usualy
> should not be a problem). Eventually you have set / at the end of
> the paths in your oned.conf, remove it.
>
> > Note: I use nfs for transferring the image .
>
> You need to have the folder /srv/cloud/one/var/images/ also
> available on the cluster node and there the user oneadmin (or
> eventually libvirtd) needs to be able to write into it.
>
>
> bye
> Fabian
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 16 Sep 2011 13:25:40 +0200
> From: Fabian Wenk <fabian at wenks.ch>
> To: users at lists.opennebula.org
> Subject: Re: [one-users] onevm STOP error
> Message-ID: <4E733234.1050207 at wenks.ch>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello Bala
>
> On 16.09.2011 13:14, bala suru wrote:
> > Sat Sep 10 16:41:05 2011 [VMM][D]: Message received: SAVE FAILURE 49
> error:
> > Failed to save domain one-49 to /srv/cloud/one/var//49/images/checkpoint
> >
> > Sat Sep 10 16:41:05 2011 [VMM][D]: Message received: error: unable to set
> > ownership of '/srv/cloud/one/var//49/images/checkpoint' to user 0:0:
> > Operation not permitted .
> >
> > I run oneadmin as sudo user , and i'm using nfs for transferring the
> images
> > (tm_nfs) .
>
> The cluster node (or libvirtd) needs to be able to write into this
> folder. It looks like it is running as root, so you need to allow
> root to write to the NFS file system, this needs to be adjusted on
> the NFS server in /etc/exports (see 'man exports' for details).
>
>
> bye
> Fabian
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 16 Sep 2011 19:08:09 +0200
> From: Carlos Mart?n S?nchez <cmartin at opennebula.org>
> To: Joydipto Banerjee <joydipto.b at in.ibm.com>
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] Workflow Management in Open Nebula
> Message-ID:
>        <CAEPYvFJ40akGnYybWfwv5yyeWkRFpzbUdm7OXscxu=oE9gCsdg at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> We don't have any tool to manage the workflow, but OpenNebula can be easily
> tweaked with a few shell script lines.
> The scenario you describe can be achieved using hooks [1] in the following
> way:
>
> 1 - After a VM creation (or a Template instantiation), a VM "on create"
> hook
> can be triggered to hold the VM (the scheduler ignores VMs in this state)
> and send that notification email.
> The hook can query OpenNebula for details about the user, the VM or any
> other resources used in the requested VM like Images or VNets. That email
> could look like this:
>
> The user john_doe (8) wants to deploy a VM with
> VM ID  : 31
> CPU    : 2
> MEMORY : 1024
> DISK   : IMAGE ID 15
>         Ubuntu Server
>         10G
>
> 2 - If the administrator decides to approve the request, then he simply has
> to enable that VM. For a denied request, the VM can be deleted.
> This could be done manually, using the CLI or Sunstone.
> I guess it shouldn't be too difficult to configure a mail delivery agent
> such as procmail to enable or delete the VM after reciving a "yes/no" email
> reply from the administrator.
>
> 3 - Another hook can be triggered when the VM reaches the running state.
> This one will send an email to the owner user with the login instructions,
> including VM details like the assigned IP.
> You have to come up with a way to store the user's email. Maybe a small
> sqlite DB, a new table in OpenNebula's DB, or even use the email as the
> OpenNebula username.
>
> This is a basic configuration to get you started, but the hook mechanism
> can
> be combined with:
> - ACLs [2] : you may want to fine-tune the allowed user actions
> - usage quotas [3] : after certain limits, the new VM creation requests
> would be denied without bothering the administrator with more emails
> - Sunstone tuning [4] : you could modify sunstone to adapt it to your
> needs.
> Views can be configured to show only certain tabs, or maybe hide some
> buttons. You could even include a new text input box that would allow users
> to include a personalized message for the administrator each time a VM is
> created. The "on create" hook can look for that attribute in the VM
> template
> and add it to the email.
>
> Best regards,
> Carlos.
>
> [1] http://opennebula.org/documentation:rel3.0:hooks
> [2] http://opennebula.org/documentation:rel3.0:manage_acl
> [3] http://opennebula.org/documentation:rel3.0:quota_auth
> [4] http://opennebula.org/documentation:rel3.0:sunstone#plugins
> --
> Carlos Mart?n, MSc
> Project Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
>
>
> On Fri, Sep 16, 2011 at 11:43 AM, Joydipto Banerjee
> <joydipto.b at in.ibm.com>wrote:
>
> > Hi - Does anyone know if there exists a workflow management system in
> Open
> > Nebula.
> > I am thinking of a scenario where a User requests a Virtual Machine(VM)
> > through the Open Nebula Sunstone web interface, after which an email
> > notification is sent to the Cloud Administrator to approve/reject the
> > request.
> >
> > Post VM creation, an automatic email is sent back to the end user, giving
> > him the details of IP of the new image and login details (userid ,
> password
> > ).
> >
> > Are such scenarios possible ?
> >
> > Thanks in advance.
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110916/0fc26b03/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> End of Users Digest, Vol 43, Issue 32
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110919/34f35a6b/attachment-0001.htm>


More information about the Users mailing list