[one-users] filename in image repository
Shantanu Pavgi
pavgi at uab.edu
Tue May 3 09:21:29 PDT 2011
Thanks for the explanation Joey.
I updated my OpenNebula install and also started with a new mysql database (essentially fresh install rather than update!). I kept same image repository path after update and it contained image files from previous install. I was getting an error as 'Destination file for image already exists, aborting.', which I resolved by deleting previous image file. I guess changing image name in the template file would have done the trick as well.
--
Shantanu.
On May 3, 2011, at 10:58 AM, Joey wrote:
> Hi,
>
> The unique image filename is gernerated by the SHA1 digestion of
> "user_id:image_name", in opennebula when you first call the
> "one.image.allocate". The user_id is the id of the image owner,
> image_name is the name of this image in the template.
>
> So, when you allocate(or register) an image, make sure that the
> "user_id:image_name" is unique, otherwise it can not be inserted into
> the database.
>
> Best,
> Joey
>
> On 05/03/2011 11:34 PM, Shantanu Pavgi wrote:
>> When an image is registered using oneimage command it is copied to IMAGE_REPOSITORY_PATH with a unique filename. How is this filename generated? Any elaboration on this will be really helpful.
>>
>> --
>> thanks,
>> shantanu.
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
More information about the Users
mailing list