[one-users] filename in image repository

Joey majunjiev at gmail.com
Tue May 3 08:58:41 PDT 2011


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