[one-users] Use of DS driver stat script
Gary S. Cuozzo
gary at isgsoftware.net
Mon Aug 6 05:31:44 PDT 2012
Hello,
That's odd as I see no issues so far.
I have 2 DS & related TS drivers which currently work fine. One is a iSCSI driver which I have tested pretty comprehensively. It supports image create/delete/clone, live migration, etc. I originally wrote it on v3.6. It does not have a stat script.
The other driver is a custom one for local storage. This one I wrote over the weekend on v3.6. That is when I noticed the addition of the stat script in the docs. The driver seems to function fine. Image create/delete/clone is working, I have deployed VM's. As it is a local storage driver, it will not be able to do live migrations. I have not seen the stat script get called yet.
I do only deal with persistent images. Could that be related to the reason I have not seen a need for the stat script? I also do all the interaction so far through sunstone, but I assume that is using the one* commands under the hood.
Thanks for the reply,
gary
----- Original Message -----
From: "Daniel Molina" <dmolina at opennebula.org>
To: "Gary S. Cuozzo" <gary at isgsoftware.net>
Cc: users at lists.opennebula.org
Sent: Monday, August 6, 2012 4:59:32 AM
Subject: Re: [one-users] Use of DS driver stat script
Hi Gary,
On 5 August 2012 18:40, Gary S. Cuozzo <gary at isgsoftware.net> wrote:
> Hello,
> I am developing a custom DS driver. When is the 'stat' script called? I
> have created an implementation of the script, but don't actually know how to
> make it be called by OpenNebula for a "real" test.
>
The 'stat' script is called when adding a new image to the datastore
(oneimage create template.one --datastore your_custom_DS) to determine
the size of the new image.
> I have another drive which I wrote for v3.4 and am also wondering if I need
> to add a stat script for v3.6.
You must, otherwise you won't be able to create new images.
Cheers
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
More information about the Users
mailing list