[one-users] oneacct: accounting information not correct?

Tino Vazquez cvazquez at c12g.com
Wed Jan 29 03:01:45 PST 2014


Hi Dirk,

Thanks a lot for opening the issue. I wasn't aware of the NET_TX value
always being 0 at the table, could you please add that as a comment?

We'll tackle all of this together for next release.

Cheers,

-Tino

--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at abuse at c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On 29 January 2014 11:31, Daems Dirk <dirk.daems at vito.be> wrote:
> Hi Tino,
>
> Ticket was logged: http://dev.opennebula.org/issues/2688
>
> I also noticed that the value of the NET_TX element in the vm_monitoring table is always zero bytes, which causes the value in the oneacct output to be zero as well of course.
> Looks like this is not related to the oneacct tool but rather to the VMware network driver? Is this a known issue?
>
> Regards,
> Dirk
>
> -----Original Message-----
> From: Tino Vazquez [mailto:cvazquez at c12g.com]
> Sent: woensdag 29 januari 2014 11:14
> To: Daems Dirk
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] oneacct: accounting information not correct?
>
> Hi Dirk,
>
> You are right, the NET values are not accumulated and their value are the aggregation of the last 300 * 5 ms:
>
>       start_time = Time.now - 300 * 5
>
> This is obviously wrong, please open a ticket and we will fix it for the upcoming release.
>
> Thanks a lot for the feedback!
>
> -Tino
>
> --
> OpenNebula - Flexible Enterprise Cloud Made Simple
>
> --
> Constantino Vázquez Blanco, PhD, MSc
> Senior Infrastructure Architect at C12G Labs www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
> --
> Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the "To" and "cc" box). They are the property of C12G Labs S.L..
> Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at abuse at c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation.
>
>
> On 29 January 2014 11:09, Daems Dirk <dirk.daems at vito.be> wrote:
>> Hi,
>>
>>
>>
>> Looking at the vm_monitoring table in sqlite, it becomes clear that
>> the NET_RX and NET_TX values reported by oneacct are not accumulated.
>>
>> Only the most recent value is shown for the filtered dataset.
>>
>> Should I file a ticket describing my findings?
>>
>>
>>
>> Regards,
>>
>> Dirk
>>
>>
>>
>> From: Daems Dirk
>> Sent: dinsdag 28 januari 2014 10:11
>> To: 'users at lists.opennebula.org'
>> Subject: oneacct: accounting information not correct?
>>
>>
>>
>> Hi,
>>
>>
>>
>> I use OpenNebula 4.2 with a VMWare hypervisor (v 5.1.0). I am
>> experimenting with the oneacct accounting tool. It looks like the
>> network consumption in my setup is not correctly monitored.
>>
>> I sent a file of 2.4 GB to my VM with ID 52. After uploading the file,
>> oneacct only reports 794.1K of received bytes.
>>
>> When I execute the command a couple of second later, the NET_RX
>> property only shows 0.1K of bytes received. If I understand the
>> documentation correct [1], the amount of received bytes should be
>> accumulated for a history record.
>>
>>
>>
>> [1] -
>> http://docs.opennebula.org/stable/administration/users_and_groups/acco
>> unting.html
>>
>>
>>
>> -bash-4.1$ oneacct -u 2 -s '01/27/2014' -e '01/29/2014'
>>
>> Showing active history records from Mon Jan 27 00:00:00 +0100 2014 to
>> Wed Jan 29 00:00:00 +0100 2014
>>
>>
>>
>> # User 2
>>
>>
>>
>> VID HOSTNAME        ACTION           REAS     START_TIME       END_TIME
>> MEMORY CPU NET_RX NET_TX
>>
>>   52 devmesx1.intern none             none 01/27 17:26:18              -
>> 2G   2 794.1K     0K
>>
>>
>>
>> -bash-4.1$
>>
>> -bash-4.1$
>>
>> -bash-4.1$ oneacct -u 2 -s '01/27/2014' -e '01/29/2014'
>>
>> Showing active history records from Mon Jan 27 00:00:00 +0100 2014 to
>> Wed Jan 29 00:00:00 +0100 2014
>>
>>
>>
>> # User 2
>>
>>
>>
>> VID HOSTNAME        ACTION           REAS     START_TIME       END_TIME
>> MEMORY CPU NET_RX NET_TX
>>
>>   52 devmesx1.intern none             none 01/27 17:26:18              -
>> 2G   2   0.1K     0K
>>
>>
>>
>> Did anyone experience similar problems or could this be due to
>> incorrect setup?
>>
>>
>>
>> Thanks,
>>
>> Dirk
>>
>>
>>
>> VITO Disclaimer: http://www.vito.be/e-maildisclaimer
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
> VITO Disclaimer: http://www.vito.be/e-maildisclaimer
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list