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

Tino Vazquez tinova79 at gmail.com
Thu Sep 1 02:29:16 PDT 2011


Hi Nikolay,

There is no easy way to pass this parameters onto the deployment file.
Why do you need them there? Perhaps you can call, in your drivers, the
OCA library to get hold of the image template attributes.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Wed, Aug 31, 2011 at 8:27 PM,  <knawnd at gmail.com> wrote:
> 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
>>>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>


More information about the Users mailing list