You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Enric Muñoz <em...@intecom.ad> on 2013/05/31 11:21:18 UTC
Usage Records
Hi all,
I'm using Cloudstack 4.0.2 and I have problems to see the usage records. I've already installed the usage server and it is running. I've also set the global settings from the UI enable.usage.server to true and the usage.stats.job.aggregation.range to 10 minutes in order to test the usage server. If I'm not wrong, the usage server should fill the cloud_usage database every ten minutes with the new usage records. However, the cloud_usage database is always empty. I have also tried to execute the generateUsageRecords and listUsageRecords API commands but no usage data appears. Anyone can help me to get the usage records??
Thank you in advance,
Enric
RE: Usage Records
Posted by Enric Muñoz <em...@intecom.ad>.
I tried and it works now!! Thank you!!
-----Mensaje original-----
De: Kishan Kavala [mailto:Kishan.Kavala@citrix.com]
Enviado el: lunes, 03 de junio de 2013 11:54
Para: users@cloudstack.apache.org
Asunto: RE: Usage Records
You can try clearing the entries in usage_job table and restart usage service.
> -----Original Message-----
> From: Enric Muñoz [mailto:emunoz@intecom.ad]
> Sent: Monday, 3 June 2013 1:51 PM
> To: users@cloudstack.apache.org
> Subject: RE: Usage Records
>
> Yes, I did restart both the management-server and the usage-server.
> I've checked now the logs from the usage server and it appears the
> following every 10 minutes which is the time I set in usage.stats.job.aggregation.range:
>
> 2013-06-03 04:10:00,000 INFO [cloud.usage.UsageManagerImpl]
> (Usage-Job-
> 1:null) starting usage job...
> 2013-06-03 04:10:00,004 DEBUG [cloud.usage.UsageManagerImpl] (Usage-
> Job-1:null) Not owner of usage job, skipping...
> 2013-06-03 04:10:00,004 INFO [cloud.usage.UsageManagerImpl]
> (Usage-Job-
> 1:null) usage job complete
>
> Maybe this can help a little more to find the solution.
>
> -----Mensaje original-----
> De: Kirk Jantzer [mailto:kirk.jantzer@gmail.com] Enviado el: viernes,
> 31 de mayo de 2013 11:38
> Para: Cloudstack users mailing list
> Asunto: Re: Usage Records
>
> Silly question, but did you restart the management service after
> making those changes?
> On May 31, 2013 5:21 AM, "Enric Muñoz" <em...@intecom.ad> wrote:
>
> > Hi all,
> >
> > I'm using Cloudstack 4.0.2 and I have problems to see the usage records.
> > I've already installed the usage server and it is running. I've also
> > set the global settings from the UI enable.usage.server to true and
> > the usage.stats.job.aggregation.range to 10 minutes in order to test
> > the usage server. If I'm not wrong, the usage server should fill the
> > cloud_usage database every ten minutes with the new usage records.
> > However, the cloud_usage database is always empty. I have also tried
> > to execute the generateUsageRecords and listUsageRecords API
> commands
> > but no usage data appears. Anyone can help me to get the usage records??
> >
> > Thank you in advance,
> >
> > Enric
> >
RE: Usage Records
Posted by Kishan Kavala <Ki...@citrix.com>.
You can try clearing the entries in usage_job table and restart usage service.
> -----Original Message-----
> From: Enric Muñoz [mailto:emunoz@intecom.ad]
> Sent: Monday, 3 June 2013 1:51 PM
> To: users@cloudstack.apache.org
> Subject: RE: Usage Records
>
> Yes, I did restart both the management-server and the usage-server. I've
> checked now the logs from the usage server and it appears the following
> every 10 minutes which is the time I set in usage.stats.job.aggregation.range:
>
> 2013-06-03 04:10:00,000 INFO [cloud.usage.UsageManagerImpl] (Usage-Job-
> 1:null) starting usage job...
> 2013-06-03 04:10:00,004 DEBUG [cloud.usage.UsageManagerImpl] (Usage-
> Job-1:null) Not owner of usage job, skipping...
> 2013-06-03 04:10:00,004 INFO [cloud.usage.UsageManagerImpl] (Usage-Job-
> 1:null) usage job complete
>
> Maybe this can help a little more to find the solution.
>
> -----Mensaje original-----
> De: Kirk Jantzer [mailto:kirk.jantzer@gmail.com] Enviado el: viernes, 31 de
> mayo de 2013 11:38
> Para: Cloudstack users mailing list
> Asunto: Re: Usage Records
>
> Silly question, but did you restart the management service after making
> those changes?
> On May 31, 2013 5:21 AM, "Enric Muñoz" <em...@intecom.ad> wrote:
>
> > Hi all,
> >
> > I'm using Cloudstack 4.0.2 and I have problems to see the usage records.
> > I've already installed the usage server and it is running. I've also
> > set the global settings from the UI enable.usage.server to true and
> > the usage.stats.job.aggregation.range to 10 minutes in order to test
> > the usage server. If I'm not wrong, the usage server should fill the
> > cloud_usage database every ten minutes with the new usage records.
> > However, the cloud_usage database is always empty. I have also tried
> > to execute the generateUsageRecords and listUsageRecords API
> commands
> > but no usage data appears. Anyone can help me to get the usage records??
> >
> > Thank you in advance,
> >
> > Enric
> >
RE: Usage Records
Posted by Enric Muñoz <em...@intecom.ad>.
Yes, I did restart both the management-server and the usage-server. I've checked now the logs from the usage server and it appears the following every 10 minutes which is the time I set in usage.stats.job.aggregation.range:
2013-06-03 04:10:00,000 INFO [cloud.usage.UsageManagerImpl] (Usage-Job-1:null) starting usage job...
2013-06-03 04:10:00,004 DEBUG [cloud.usage.UsageManagerImpl] (Usage-Job-1:null) Not owner of usage job, skipping...
2013-06-03 04:10:00,004 INFO [cloud.usage.UsageManagerImpl] (Usage-Job-1:null) usage job complete
Maybe this can help a little more to find the solution.
-----Mensaje original-----
De: Kirk Jantzer [mailto:kirk.jantzer@gmail.com]
Enviado el: viernes, 31 de mayo de 2013 11:38
Para: Cloudstack users mailing list
Asunto: Re: Usage Records
Silly question, but did you restart the management service after making those changes?
On May 31, 2013 5:21 AM, "Enric Muñoz" <em...@intecom.ad> wrote:
> Hi all,
>
> I'm using Cloudstack 4.0.2 and I have problems to see the usage records.
> I've already installed the usage server and it is running. I've also
> set the global settings from the UI enable.usage.server to true and
> the usage.stats.job.aggregation.range to 10 minutes in order to test
> the usage server. If I'm not wrong, the usage server should fill the
> cloud_usage database every ten minutes with the new usage records.
> However, the cloud_usage database is always empty. I have also tried
> to execute the generateUsageRecords and listUsageRecords API commands
> but no usage data appears. Anyone can help me to get the usage records??
>
> Thank you in advance,
>
> Enric
>
Re: Usage Records
Posted by Kirk Jantzer <ki...@gmail.com>.
Silly question, but did you restart the management service after making
those changes?
On May 31, 2013 5:21 AM, "Enric Muñoz" <em...@intecom.ad> wrote:
> Hi all,
>
> I'm using Cloudstack 4.0.2 and I have problems to see the usage records.
> I've already installed the usage server and it is running. I've also set
> the global settings from the UI enable.usage.server to true and the
> usage.stats.job.aggregation.range to 10 minutes in order to test the usage
> server. If I'm not wrong, the usage server should fill the cloud_usage
> database every ten minutes with the new usage records. However, the
> cloud_usage database is always empty. I have also tried to execute the
> generateUsageRecords and listUsageRecords API commands but no usage data
> appears. Anyone can help me to get the usage records??
>
> Thank you in advance,
>
> Enric
>
Re: Usage Records
Posted by Steven Liang <st...@yesup.com>.
see this link
https://issues.apache.org/jira/browse/CLOUDSTACK-721
On 05/31/2013 05:21 AM, Enric Muñoz wrote:
> Hi all,
>
> I'm using Cloudstack 4.0.2 and I have problems to see the usage records. I've already installed the usage server and it is running. I've also set the global settings from the UI enable.usage.server to true and the usage.stats.job.aggregation.range to 10 minutes in order to test the usage server. If I'm not wrong, the usage server should fill the cloud_usage database every ten minutes with the new usage records. However, the cloud_usage database is always empty. I have also tried to execute the generateUsageRecords and listUsageRecords API commands but no usage data appears. Anyone can help me to get the usage records??
>
> Thank you in advance,
>
> Enric
>
--
*Steven Liang*
*Linux System Admin*
*Phone*: 1.416.499.8009 ext. 2865
*Cell Phone*: 1.647.718.5292
*Email*: stevenliang@yesup.com <ma...@yesup.com>
www.yesup.com <http://www.yesup.com> | account.yesup.com
<http://account.yesup.com>
Yesup