[one-users] Accounting of storage used by user

ML mail mlnospam at yahoo.com
Tue Jan 28 05:51:35 PST 2014


Hi,

Thanks for the tips on accounting the storage of a user. I wasn't aware that the XML output has so much more information.. Actually there is everything I need in there, even IP information. That's perfect!

Regards
ML




On Tuesday, January 28, 2014 12:03 PM, Carlos Martín Sánchez <cmartin at opennebula.org> wrote:
 
Hi,

I see three ways to approach storage billing:

- Bill according to the available storage (limit set in the quotas).

- Bill the storage used by the running VMs. This was not possible before 4.4, the DISK/SIZE was added for the storage scheduling. Now you can do this:
$ oneacct -u 0 -x | xpath -e "/HISTORY_RECORDS/HISTORY/VM/TEMPLATE/DISK/SIZE"

- Bill the DS usage. This usage is tracked in the user quotas, but we don't keep a history for the changes made here. You could create a script to store the user quotas information in a database with a timestamp, and trigger it with a hook [1] on image create and image remove.

Regards

[1] http://docs.opennebula.org/stable/integration/infrastructure_integration/hooks.html




--

Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple

www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula


On Sat, Jan 25, 2014 at 11:53 PM, ML mail <mlnospam at yahoo.com> wrote:

Hello,
>
>
>I was checking the oneacct tool and I noticed that there is no accounting of the storage used by a user. Am I missing something? 
>
>
>
>How does someone bill the storage usage (OS, DATABLOCK, etc) of a customer on a hourly rate for example? 
>
>
>Regards,
>M.L.
>_______________________________________________
>Users mailing list
>Users at lists.opennebula.org
>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140128/648eb362/attachment-0002.htm>


More information about the Users mailing list