<div dir="ltr">Hi,<div><br></div><div>I see three ways to approach storage billing:</div><div><br></div><div>- Bill according to the available storage (limit set in the quotas).</div><div><br></div><div>- 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:</div>

<div>$ oneacct -u 0 -x | xpath -e "/HISTORY_RECORDS/HISTORY/VM/TEMPLATE/DISK/SIZE"</div><div><br></div><div>- 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.</div>

<div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://docs.opennebula.org/stable/integration/infrastructure_integration/hooks.html">http://docs.opennebula.org/stable/integration/infrastructure_integration/hooks.html</a><br>

</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

</div></div></div>
<br><br><div class="gmail_quote">On Sat, Jan 25, 2014 at 11:53 PM, ML mail <span dir="ltr"><<a href="mailto:mlnospam@yahoo.com" target="_blank">mlnospam@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div>Hello,</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

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? <br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">How does someone bill the storage usage (OS, DATABLOCK, etc) of a
 customer on a hourly rate for example? </div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

Regards,</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">M.L.</div></div></div><br>_______________________________________________<br>


Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>