[one-users] [OpenNebula-2.2.1] add a custom attribute to image

knawnd at gmail.com knawnd at gmail.com
Wed Aug 31 11:27:34 PDT 2011


Hi Tino,

Sorry for the noise. It seems I specified the arguments for 'oneimage' 
command in a wrong sequence:
 > oneimage<image_id>  addattr OSTEMPLATE centos-5
whereas the proper format is
$ oneimage  addattr <image_id> OSTEMPLATE centos-5

That's why I was getting a help content.
It's even possible to specified custom attribute in image description 
file and that is really convenient!
But now the problem is that such attribute is not passed to xml 
deployment.0 file and hence can't be used. Is there any way to transfer 
a custom image attribute to VM deployment.0 file?

Regards,
Nikolay.

Tino Vazquez wrote on 31/08/11 20:30:
> Hi Nikolay,
>
> Can you post the relevant lines in oned.log when you run the "oneimage
> addattr" command?
>
> Also, the oneimage show before and after.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Fri, Aug 26, 2011 at 1:22 PM,<knawnd at gmail.com>  wrote:
>> Hi!
>>
>> Is it possible to add a custom attribute to image registered in Image
>> Repository using OpenNebula 2.2.1?
>> For example, the command 'oneimage<image_id>  addattr OSTEMPLATE centos-5'
>> produces the help on oneimage usage and doesn't add specified attribute.
>> So I wonder if it's expected behavior or I am doing something wrong?
>> I am looking for a way to pass a OpenVZ specific parameter to VM deployment
>> file. For the time being I am using the image attribute NAME but as it is
>> explained in [1] such attribute has to be unique among all registered images
>> i.e. it is impossible to register two images in Image Repository with the
>> same NAME.
>>
>> [1]
>> http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002890.html
>>
>> Regards,
>> Nikolay.
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>



More information about the Users mailing list