[one-users] [one-ecosystem] Custom monitoring attributes in VM TEMPLATE

Ruben S. Montero rsmontero at opennebula.org
Thu Apr 25 12:24:17 PDT 2013


Hi


> USER_TEMPLATE = updated on vm.update or when a VM action fails (and the
> ERROR attribute is updated)
> TEMPLATE = updated on vm.resize, attach, detach, etc. operation
> MONITOR = updated on each poll (typically LASTPOLL + MONITORING_INTERVAL
> in oned.conf.. perhaps add a NEXTPOLL attribute to make caching lifetime
> easier)
> HISTORY_RECORDS = updated on VM state changes (one.vm.action) etc.
>

 Exactly that would be perfect!


> Then perhaps vm.vmpool could return only the base <VM> attributes (nothing
> below the USER_TEMPLATE, TEMPLATE, MONITOR) and one would have to call
> one.vm.info to retrieve the full VM XML.
>

As the DB is structured in XML blobs it is in fact faster for the  oned
daemon to deliver the whole thing and let the clients parse the XML.


> I understand that would break backward compatibility. But I think it would
> be a huge improvement to ease caching of the OpenNebula information.
>

This has been a long debate within the team. If we go for this:

1.- This can not happen in the 4.0 timeframe as we are just fixing the last
bugs and this would require touching to many parts now. 4.0 would be the
perfect release as we are changing major...

2.- I think we can fix something in the onedb upgrade process to
restructure the xml's

3.- This would only impact on custom applications on top of OpenNebula

4.- As we are sending the whole XML, probably we would not help on the
caching...

5.- We need to address similar situations in other objects e.g.. <MONITOR>
in hosts...

Let's go like this:

1.- I've created an issue http://dev.opennebula.org/issues/1967

2.- We'll add a proposal there with the changes

3.- Then we can discuss if we want this change or not... if it'll break to
many things...


>
> > I'd say that comments to issues in redmine is a good place to link the
> discussions to specific features, new things and general aspects should go
> to the mailing list.
>
> Users or ecosystem list?
>


Users


Ruben

>
> Simon
>
>
> On Thu, Apr 25, 2013 at 6:23 AM, Ruben S. Montero <
> rsmontero at opennebula.org> wrote:
>
>> Hi Simon
>>
>> The criteria is that every thing to be consumed by OpenNebula should be
>> in the Template, so the user can not modify it. Otherwise it may lead to
>> OpenNebula incorrectly manage the object (e.g. remove or modify an
>> attribute from the DISK section) or a security threat (e.g. a user
>> modifying the SOURCE attribute to access someone else's image ) That is the
>> main reason to place the system generated information in the TEMPLATE
>> section, including monitoring info (you may bypass a billing system based
>> on a probe).
>>
>> You are right that ERROR should be moved to USER TEMPLATE. The user may
>> want to delete the error once she is notified... I've opened an issue for
>> this [1]
>>
>> Now the other probes. This is for historical reasons. First versions of
>> OpenNebula 1.0 (4 years ago!) did not have the functionality that we have
>> now, and that lead to some inconsistencies in the data model. Probably CPU,
>> NETRX... and the other probe results should be placed probably under a
>> MONITOR section. During the development of the project we've opted to keep
>> backwards compatibility over a more consistent data model. Probably we are
>> wrong, but trying to keep the ecosystem and other adaption working from one
>> release to other has been a priority for us.
>>
>> You've raised other interesting issue. First, we are sorry if we failed
>> to engage in any discussion about the implementation of new issues. This is
>> by no means because of a lack of interest but for the trillions of things
>> we have to deal with. Your feedback is very valuable for us and always
>> considered internally even if we fail to answer it.
>>
>> I'd say that comments to issues in redmine is a good place to link the
>> discussions to specific features, new things and general aspects should go
>> to the mailing list.
>>
>> However, this is probably not as fluent and agile as it should. We've
>> done in the past IRC meetings that we may restore plan a regular hangout
>> for example. We'll work on this and send a proposal to the mailing list.
>>
>> Thank you very much for feedback!
>>
>> [1] http://dev.opennebula.org/issues/1955
>>
>>
>>
>>
>> On Wed, Apr 24, 2013 at 4:24 PM, Simon Boulet <simon at nostalgeek.com>wrote:
>>
>>> Hi,
>>>
>>> Custom monitoring attributes (extra attributes returned by the IM
>>> MONITOR or VMM POLL) are currently being added under the TEMPLATE section
>>> of the VM definition (from vm/VirtualMachine.cc:3165)
>>>
>>> Perhaps I'm wrong, but I am seeing the TEMPLATE section a block that
>>> containt the "static" definition of the VM (number of CPU, maximum memory,
>>> attached NICs, Disks, etc.). Ex. one could cache the information found in
>>> the TEMPLATE section on their frontend for a certain period of time. And it
>>> starts to make even more sense now that we have a USER_TEMPLATE section
>>> (since OpenNebula 4.0).
>>>
>>> Also errors are added under the TEMPLATE section.
>>>
>>> Wouldn't it make more sense if the custom monitoring attributes (and
>>> errors) were being reported directly under the VM section (just like the
>>> other monitoring attributes NETRX, NETTX, etc. are being reported).
>>>
>>> PS. Not sure if the ecosystem list is the right place for this. In the
>>> past I used the users list as well as the bug tracker to submit technical
>>> questions and discussions. And I find it difficult to be informed, sharing
>>> the vision and debating some implementations of upcoming features in
>>> OpenNebula.
>>>
>>> Simon
>>>
>>> _______________________________________________
>>> Ecosystem mailing list
>>> Ecosystem at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/ecosystem-opennebula.org
>>>
>>>
>>
>>
>> --
>> Ruben S. Montero, PhD
>> Project co-Lead and Chief Architect
>> OpenNebula - The Open Source Solution for Data Center Virtualization
>> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>>
>
>


-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/5d624458/attachment-0002.htm>


More information about the Users mailing list