cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raja sekhar <rajsekhar....@gmail.com>
Subject Re: Usage Records not Generating.
Date Wed, 18 Feb 2015 12:23:07 GMT
Hi Kishan,

I have restarted the usage server, but still i did not get the usage
records and even i generated the usage record from cloudmonkey,usage_job
host is showing NULL.The usage server is unable to get the host id in
usage_job.previously i am getting usage records,this issue arises after the
directly reboot of one of my management server and slave database with out
taking any precautions.

Any Suggesstions?
The configuration files also looks good.

Regards,
Rajasekhar.




On Wed, Feb 18, 2015 at 4:59 PM, Kishan Kavala <Kishan.Kavala@citrix.com>
wrote:

> Rajasekhar,
>  I do not see any errors in the usage server logs posted earlier. As per
> mgmt server heartbeat check, usage server is not updating usage_job tables
> also. Did you try restarting usage server?
>
>
> -----Original Message-----
> From: raja sekhar [mailto:rajsekhar.467@gmail.com]
> Sent: Wednesday, February 18, 2015 4:03 PM
> To: dev@cloudstack.apache.org; users@cloudstack.apache.org
> Subject: Re: Usage Records not Generating.
>
> Hi All,
>
> I have found this error in management server log file saying that usage
> server is not running,but usage server is still running. I am using two
> management servers, on Dec 27 2014 i have rebooted manually one of the
> management server,and the log is showing that date, from that date onwards
> iam not getting usage records.Is this BUG?
> I heard that this is fixed in 4.3.
> https://issues.apache.org/jira/browse/CLOUDSTACK-5613
>
> If not what is the procedure to generate usage records again?
>
> 2015-02-18 00:08:49,700 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-152:ctx-c1bbf117) Seq 1-1418147853: Executing request
> 2015-02-18 00:08:49,991 INFO  [c.c.h.HighAvailabilityManagerImpl]
> (HA-3:ctx-fc33e670) *checking health of usage server*
> 2015-02-18 00:08:49,994 DEBUG [c.c.h.HighAvailabilityManagerImpl]
> (HA-3:ctx-fc33e670) *usage server running? false*, heartbeat: *Sat Dec 27
> 23:14:50 PST* *2014*
> 2015-02-18 00:08:49,995 WARN  [o.a.c.alerts] (HA-3:ctx-fc33e670)
>  alertType:: 13 // dataCenterId:: 0 // podId:: 0 // clusterId:: null //
> message:: *No usage server process running*
> 2015-02-18 00:08:49,998 DEBUG [c.c.a.AlertManagerImpl] (HA-3:ctx-fc33e670)
> Have already sent: 1 emails for alert type '13' -- skipping send email
>
>
> Regards,
> Rajasekhar.
>
>
> On Mon, Feb 9, 2015 at 5:13 PM, raja sekhar <rajsekhar.467@gmail.com>
> wrote:
>
> > Hi Wei,
> >
> > Thanks for your reply.
> > I have found the file in "cd /etc/cloudstack/management/log4j-cloud.xml"
> > and "cd /etc/cloudstack/usage/log4j-cloud.xml".it is same as you told.
> >
> > The log file i have captured in "/var/log/cloudstack/usage/usage.log" is:
> >
> >
> > 2014-12-28 07:15:05,773 DEBUG [db.Transaction.Transaction]
> > (Usage-Job-1:null) Transaction is not closed properly:
> > -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProces
> > sor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-Usa
> > geManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext
> > :291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-D
> > efaultManagedContext.callWithContext:103-DefaultManagedContext.runWith
> > Context:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Exec
> > utors$RunnableAdapter.call:471
> > :
> > -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProces
> > sor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-Usa
> > geManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext
> > :291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-D
> > efaultManagedContext.callWithContext:103-DefaultManagedContext.runWith
> > Context:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Exec
> > utors$RunnableAdapter.call:471,
> > .  Called by
> > -TransactionLegacy.open:166-TransactionLegacy.open:126-UsageManagerImp
> > l.parse:786-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl
> > $1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedCont
> > ext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManaged
> > Context.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerIm
> > pl.run:288-Executors$RunnableAdapter.call:471
> > 2014-12-28 07:15:05,776 INFO  [cloud.usage.UsageManagerImpl]
> > (Usage-Job-1:null) usage job complete
> > 2014-12-29 06:39:27,416 INFO
> >  [context.support.ClassPathXmlApplicationContext] (main:null)
> > Refreshing
> >
> org.springframework.context.support.ClassPathXmlApplicationContext@1055e55f
> :
> > startup date [Sun Dec 28 22:39:27 PST 2014]; root of context hierarchy
> > 2014-12-29 06:39:27,664 INFO  [factory.xml.XmlBeanDefinitionReader]
> > (main:null) Loading XML bean definitions from class path resource
> > [usageApplicationContext.xml]
> > 2014-12-29 06:39:28,929 INFO
> >  [context.annotation.ClassPathBeanDefinitionScanner] (main:null)
> > JSR-330 'javax.inject.Named' annotation found and supported for
> > component scanning
> > 2014-12-29 06:39:30,436 INFO
> >  [factory.annotation.AutowiredAnnotationBeanPostProcessor] (main:null)
> > JSR-330 'javax.inject.Inject' annotation found and supported for
> > autowiring
> > 2014-12-29 06:39:30,912 INFO
> >  [context.support.ClassPathXmlApplicationContext] (main:null) Bean
> > 'transactionContextBuilder' of type [class
> > com.cloud.utils.db.TransactionContextBuilder] is not eligible for
> > getting processed by all BeanPostProcessors (for example: not eligible
> > for
> > auto-proxying)
> > 2014-12-29 06:39:30,992 INFO
> > [factory.support.DefaultListableBeanFactory]
> > (main:null) Pre-instantiating singletons in
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@259e215b
> :
> > defining beans
> > [org.springframework.context.annotation.internalConfigurationAnnotatio
> > nProcessor,org.springframework.context.annotation.internalAutowiredAnn
> > otationProcessor,org.springframework.context.annotation.internalRequir
> > edAnnotationProcessor,org.springframework.context.annotation.internalC
> > ommonAnnotationProcessor,volumeUsageParser,vmDiskUsageParser,portForwa
> > rdingUsageParser,networkOfferingUsageParser,storageUsageParser,securit
> > yGroupUsageParser,VMInstanceUsageParser,IPAddressUsageParser,VPNUserUs
> > ageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsagePa
> > rser,usageAlertManagerImpl,usageManagerImpl,usageVMSnapshotDaoImpl,usa
> > geStorageDaoImpl,usageVmDiskDaoImpl,usageNetworkOfferingDaoImpl,usageV
> > PNUserDaoImpl,usageSecurityGroupDaoImpl,usageIPAddressDaoImpl,usageDao
> > Impl,externalPublicIpStatisticsDaoImpl,usageVMInstanceDaoImpl,usagePor
> > tForwardingRuleDaoImpl,usageVolumeDaoImpl,usageNetworkDaoImpl,usageLoa
> > dBalancerPolicyDaoImpl,usageJobDaoImpl,usageEventDaoImpl,usageEventDet
> > ailsDaoImpl,eventDaoImpl,eventJoinDaoImpl,SSHKeyPairDaoImpl,userStatis
> > ticsDaoImpl,userStatsLogDaoImpl,userDaoImpl,userAccountDaoImpl,account
> > DaoImpl,vmDiskStatisticsDaoImpl,resourceCountDaoImpl,resourceLimitDaoI
> > mpl,alertDaoImpl,domainDaoImpl,configurationDaoImpl,transactionContext
> > Builder,instantiatePostProcessor,ComponentContext,org.springframework.
> > context.annotation.ConfigurationClassPostProcessor.importAwareProcesso
> > r];
> > root of factory hierarchy
> > 2014-12-29 06:39:31,807 DEBUG [utils.crypt.EncryptionSecretKeyChecker]
> > (main:null) Encryption Type: file
> > 2014-12-29 06:39:31,814 INFO  [db.Transaction.Transaction] (main:null)
> > Is Data Base High Availiability enabled? Ans : true
> > 2014-12-29 06:39:31,969 INFO  [db.Transaction.Transaction] (main:null)
> > The slaves configured for Cloud Data base is/are : 10.0.60.204
> > 2014-12-29 06:39:36,673 INFO  [utils.component.ComponentContext]
> > (main:null) Setup Spring Application context
> > 2014-12-29 06:39:41,113 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl_Enhanc
> > erByCloudStack_f252fd4e
> > 2014-12-29 06:39:41,113 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.configuration.dao.ResourceCountDaoImpl_EnhancerByCloudStack_
> > d136baa
> > 2014-12-29 06:39:41,113 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageSecurityGroupDaoImpl_EnhancerByCloudStack_8f7
> > 8d34
> > 2014-12-29 06:39:41,126 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.SSHKeyPairDaoImpl_EnhancerByCloudStack_be462c4f
> > 2014-12-29 06:39:41,126 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.ExternalPublicIpStatisticsDaoImpl_EnhancerByCloudS
> > tack_a1a99254
> > 2014-12-29 06:39:41,127 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.AccountDaoImpl_EnhancerByCloudStack_c97e9195
> > 2014-12-29 06:39:41,127 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.domain.dao.DomainDaoImpl_EnhancerByCloudStack_b0468b85
> > 2014-12-29 06:39:41,139 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVPNUserDaoImpl_EnhancerByCloudStack_5561ccf4
> > 2014-12-29 06:39:41,140 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageNetworkOfferingDaoImpl_EnhancerByCloudStack_4
> > 853ba17
> > 2014-12-29 06:39:41,150 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVmDiskDaoImpl_EnhancerByCloudStack_331dfdf3
> > 2014-12-29 06:39:41,151 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageLoadBalancerPolicyDaoImpl_EnhancerByCloudStac
> > k_1a85ba29
> > 2014-12-29 06:39:41,151 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageStorageDaoImpl_EnhancerByCloudStack_ba3f8378
> > 2014-12-29 06:39:41,152 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserStatsLogDaoImpl_EnhancerByCloudStack_40282df8
> > 2014-12-29 06:39:41,162 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageIPAddressDaoImpl_EnhancerByCloudStack_b7914b7
> > 6
> > 2014-12-29 06:39:41,162 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageDaoImpl_EnhancerByCloudStack_93bda527
> > 2014-12-29 06:39:41,163 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageJobDaoImpl_EnhancerByCloudStack_7710dfa6
> > 2014-12-29 06:39:41,163 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.EventDaoImpl_EnhancerByCloudStack_1d5e3365
> > 2014-12-29 06:39:41,163 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserStatisticsDaoImpl_EnhancerByCloudStack_94aed8a
> > 2014-12-29 06:39:41,174 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVolumeDaoImpl_EnhancerByCloudStack_dde1b61d
> > 2014-12-29 06:39:41,175 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.UsageEventDetailsDaoImpl_EnhancerByCloudStack_899e
> > a3be
> > 2014-12-29 06:39:41,175 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVMInstanceDaoImpl_EnhancerByCloudStack_88cbfe
> > db
> > 2014-12-29 06:39:41,175 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStac
> > k_468b16bd
> > 2014-12-29 06:39:41,176 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.configuration.dao.ResourceLimitDaoImpl_EnhancerByCloudStack_
> > 2f5afa9e
> > 2014-12-29 06:39:41,186 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.UsageEventDaoImpl_EnhancerByCloudStack_afd4f542
> > 2014-12-29 06:39:41,186 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageNetworkDaoImpl_EnhancerByCloudStack_499fffed
> > 2014-12-29 06:39:41,187 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserAccountDaoImpl_EnhancerByCloudStack_a6d319f8
> > 2014-12-29 06:39:41,187 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.alert.dao.AlertDaoImpl_EnhancerByCloudStack_2ab6d541
> > 2014-12-29 06:39:41,187 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.VmDiskStatisticsDaoImpl_EnhancerByCloudStack_66fa69
> > d9
> > 2014-12-29 06:39:41,198 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a7635a25
> > 2014-12-29 06:39:41,198 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVMSnapshotDaoImpl_EnhancerByCloudStack_d7aec8
> > f4
> > 2014-12-29 06:39:41,199 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.EventJoinDaoImpl_EnhancerByCloudStack_2a3b924b
> > 2014-12-29 06:39:41,199 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.UsageManagerImpl_EnhancerByCloudStack_a98b10be
> > 2014-12-29 06:39:41,199 DEBUG [cloud.usage.UsageManagerImpl]
> > (main:null) Checking to see if usage.vmops.pid exists.
> > 2014-12-29 06:39:41,199 INFO  [cloud.usage.UsageManagerImpl]
> > (main:null) Implementation Version is 4.3.1
> > 2014-12-29 06:39:41,486 INFO  [cloud.usage.UsageServer] (main:null)
> > UsageServer ready...
> > 2015-02-09 07:23:49,721 INFO
> >  [context.support.ClassPathXmlApplicationContext] (main:null)
> > Refreshing
> >
> org.springframework.context.support.ClassPathXmlApplicationContext@1055e55f
> :
> > startup date [Sun Feb 08 23:23:49 PST 2015]; root of context hierarchy
> > 2015-02-09 07:23:49,925 INFO  [factory.xml.XmlBeanDefinitionReader]
> > (main:null) Loading XML bean definitions from class path resource
> > [usageApplicationContext.xml]
> > 2015-02-09 07:23:50,461 INFO
> >  [context.annotation.ClassPathBeanDefinitionScanner] (main:null)
> > JSR-330 'javax.inject.Named' annotation found and supported for
> > component scanning
> > 2015-02-09 07:23:51,932 INFO
> >  [factory.annotation.AutowiredAnnotationBeanPostProcessor] (main:null)
> > JSR-330 'javax.inject.Inject' annotation found and supported for
> > autowiring
> > 2015-02-09 07:23:52,533 INFO
> >  [context.support.ClassPathXmlApplicationContext] (main:null) Bean
> > 'transactionContextBuilder' of type [class
> > com.cloud.utils.db.TransactionContextBuilder] is not eligible for
> > getting processed by all BeanPostProcessors (for example: not eligible
> > for
> > auto-proxying)
> > 2015-02-09 07:23:52,558 INFO
> > [factory.support.DefaultListableBeanFactory]
> > (main:null) Pre-instantiating singletons in
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@506835fb
> :
> > defining beans
> > [org.springframework.context.annotation.internalConfigurationAnnotatio
> > nProcessor,org.springframework.context.annotation.internalAutowiredAnn
> > otationProcessor,org.springframework.context.annotation.internalRequir
> > edAnnotationProcessor,org.springframework.context.annotation.internalC
> > ommonAnnotationProcessor,volumeUsageParser,vmDiskUsageParser,portForwa
> > rdingUsageParser,networkOfferingUsageParser,storageUsageParser,securit
> > yGroupUsageParser,VMInstanceUsageParser,IPAddressUsageParser,VPNUserUs
> > ageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsagePa
> > rser,usageAlertManagerImpl,usageManagerImpl,usageVMSnapshotDaoImpl,usa
> > geStorageDaoImpl,usageVmDiskDaoImpl,usageNetworkOfferingDaoImpl,usageV
> > PNUserDaoImpl,usageSecurityGroupDaoImpl,usageIPAddressDaoImpl,usageDao
> > Impl,externalPublicIpStatisticsDaoImpl,usageVMInstanceDaoImpl,usagePor
> > tForwardingRuleDaoImpl,usageVolumeDaoImpl,usageNetworkDaoImpl,usageLoa
> > dBalancerPolicyDaoImpl,usageJobDaoImpl,usageEventDaoImpl,usageEventDet
> > ailsDaoImpl,eventDaoImpl,eventJoinDaoImpl,SSHKeyPairDaoImpl,userStatis
> > ticsDaoImpl,userStatsLogDaoImpl,userDaoImpl,userAccountDaoImpl,account
> > DaoImpl,vmDiskStatisticsDaoImpl,resourceCountDaoImpl,resourceLimitDaoI
> > mpl,alertDaoImpl,domainDaoImpl,configurationDaoImpl,transactionContext
> > Builder,instantiatePostProcessor,ComponentContext,org.springframework.
> > context.annotation.ConfigurationClassPostProcessor.importAwareProcesso
> > r];
> > root of factory hierarchy
> > 2015-02-09 07:23:53,333 DEBUG [utils.crypt.EncryptionSecretKeyChecker]
> > (main:null) Encryption Type: file
> > 2015-02-09 07:23:53,340 INFO  [db.Transaction.Transaction] (main:null)
> > Is Data Base High Availiability enabled? Ans : true
> > 2015-02-09 07:23:53,433 INFO  [db.Transaction.Transaction] (main:null)
> > The slaves configured for Cloud Data base is/are : 10.0.60.204
> > 2015-02-09 07:23:57,027 INFO  [utils.component.ComponentContext]
> > (main:null) Setup Spring Application context
> > 2015-02-09 07:24:00,519 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl_Enhanc
> > erByCloudStack_57682ac4
> > 2015-02-09 07:24:00,519 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.configuration.dao.ResourceCountDaoImpl_EnhancerByCloudStack_
> > 72289920
> > 2015-02-09 07:24:00,520 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageSecurityGroupDaoImpl_EnhancerByCloudStack_6e0
> > cbaaa
> > 2015-02-09 07:24:00,524 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.SSHKeyPairDaoImpl_EnhancerByCloudStack_235b59c5
> > 2015-02-09 07:24:00,525 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.ExternalPublicIpStatisticsDaoImpl_EnhancerByCloudS
> > tack_6bebfca
> > 2015-02-09 07:24:00,525 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.AccountDaoImpl_EnhancerByCloudStack_2e93bf0b
> > 2015-02-09 07:24:00,532 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.domain.dao.DomainDaoImpl_EnhancerByCloudStack_155bb8fb
> > 2015-02-09 07:24:00,534 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVPNUserDaoImpl_EnhancerByCloudStack_ba76fa6a
> > 2015-02-09 07:24:00,540 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageNetworkOfferingDaoImpl_EnhancerByCloudStack_a
> > d68e78d
> > 2015-02-09 07:24:00,541 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVmDiskDaoImpl_EnhancerByCloudStack_98332b69
> > 2015-02-09 07:24:00,541 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageLoadBalancerPolicyDaoImpl_EnhancerByCloudStac
> > k_7f9ae79f
> > 2015-02-09 07:24:00,549 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageDaoImpl_EnhancerByCloudStack_f8d2d29d
> > 2015-02-09 07:24:00,549 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageJobDaoImpl_EnhancerByCloudStack_dc260d1c
> > 2015-02-09 07:24:00,549 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.EventDaoImpl_EnhancerByCloudStack_827360db
> > 2015-02-09 07:24:00,550 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserStatisticsDaoImpl_EnhancerByCloudStack_6e601b00
> > 2015-02-09 07:24:00,556 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVolumeDaoImpl_EnhancerByCloudStack_42f6e393
> > 2015-02-09 07:24:00,557 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.UsageEventDetailsDaoImpl_EnhancerByCloudStack_eeb3
> > d134
> > 2015-02-09 07:24:00,557 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVMInstanceDaoImpl_EnhancerByCloudStack_ede12c
> > 51
> > 2015-02-09 07:24:00,557 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStac
> > k_aba04433
> > 2015-02-09 07:24:00,558 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.configuration.dao.ResourceLimitDaoImpl_EnhancerByCloudStack_
> > 94702814
> > 2015-02-09 07:24:00,564 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.UsageEventDaoImpl_EnhancerByCloudStack_14ea22b8
> > 2015-02-09 07:24:00,565 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageNetworkDaoImpl_EnhancerByCloudStack_aeb52d63
> > 2015-02-09 07:24:00,565 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserAccountDaoImpl_EnhancerByCloudStack_be8476e
> > 2015-02-09 07:24:00,566 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.alert.dao.AlertDaoImpl_EnhancerByCloudStack_8fcc02b7
> > 2015-02-09 07:24:00,573 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.VmDiskStatisticsDaoImpl_EnhancerByCloudStack_cc0f97
> > 4f
> > 2015-02-09 07:24:00,574 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_c78879b
> > 2015-02-09 07:24:00,574 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVMSnapshotDaoImpl_EnhancerByCloudStack_3cc3f6
> > 6a
> > 2015-02-09 07:24:00,575 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.EventJoinDaoImpl_EnhancerByCloudStack_8f50bfc1
> > 2015-02-09 07:24:00,581 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.UsageManagerImpl_EnhancerByCloudStack_ea03e34
> > 2015-02-09 07:24:00,582 DEBUG [cloud.usage.UsageManagerImpl]
> > (main:null) Checking to see if usage.vmops.pid exists.
> > 2015-02-09 07:24:00,582 INFO  [cloud.usage.UsageManagerImpl]
> > (main:null) Implementation Version is 4.3.1
> > 2015-02-09 07:24:00,861 INFO  [cloud.usage.UsageServer] (main:null)
> > UsageServer ready...
> > 2015-02-09 07:28:23,195 INFO
> >  [context.support.ClassPathXmlApplicationContext] (main:null)
> > Refreshing
> >
> org.springframework.context.support.ClassPathXmlApplicationContext@1055e55f
> :
> > startup date [Sun Feb 08 23:28:23 PST 2015]; root of context hierarchy
> > 2015-02-09 07:28:23,477 INFO  [factory.xml.XmlBeanDefinitionReader]
> > (main:null) Loading XML bean definitions from class path resource
> > [usageApplicationContext.xml]
> > 2015-02-09 07:28:24,751 INFO
> >  [context.annotation.ClassPathBeanDefinitionScanner] (main:null)
> > JSR-330 'javax.inject.Named' annotation found and supported for
> > component scanning
> > 2015-02-09 07:28:26,901 INFO
> >  [factory.annotation.AutowiredAnnotationBeanPostProcessor] (main:null)
> > JSR-330 'javax.inject.Inject' annotation found and supported for
> > autowiring
> > 2015-02-09 07:28:27,156 INFO
> >  [context.support.ClassPathXmlApplicationContext] (main:null) Bean
> > 'transactionContextBuilder' of type [class
> > com.cloud.utils.db.TransactionContextBuilder] is not eligible for
> > getting processed by all BeanPostProcessors (for example: not eligible
> > for
> > auto-proxying)
> > 2015-02-09 07:28:27,245 INFO
> > [factory.support.DefaultListableBeanFactory]
> > (main:null) Pre-instantiating singletons in
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@6cb32ed4
> :
> > defining beans
> > [org.springframework.context.annotation.internalConfigurationAnnotatio
> > nProcessor,org.springframework.context.annotation.internalAutowiredAnn
> > otationProcessor,org.springframework.context.annotation.internalRequir
> > edAnnotationProcessor,org.springframework.context.annotation.internalC
> > ommonAnnotationProcessor,volumeUsageParser,vmDiskUsageParser,portForwa
> > rdingUsageParser,networkOfferingUsageParser,storageUsageParser,securit
> > yGroupUsageParser,VMInstanceUsageParser,IPAddressUsageParser,VPNUserUs
> > ageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsagePa
> > rser,usageAlertManagerImpl,usageManagerImpl,usageVMSnapshotDaoImpl,usa
> > geStorageDaoImpl,usageVmDiskDaoImpl,usageNetworkOfferingDaoImpl,usageV
> > PNUserDaoImpl,usageSecurityGroupDaoImpl,usageIPAddressDaoImpl,usageDao
> > Impl,externalPublicIpStatisticsDaoImpl,usageVMInstanceDaoImpl,usagePor
> > tForwardingRuleDaoImpl,usageVolumeDaoImpl,usageNetworkDaoImpl,usageLoa
> > dBalancerPolicyDaoImpl,usageJobDaoImpl,usageEventDaoImpl,usageEventDet
> > ailsDaoImpl,eventDaoImpl,eventJoinDaoImpl,SSHKeyPairDaoImpl,userStatis
> > ticsDaoImpl,userStatsLogDaoImpl,userDaoImpl,userAccountDaoImpl,account
> > DaoImpl,vmDiskStatisticsDaoImpl,resourceCountDaoImpl,resourceLimitDaoI
> > mpl,alertDaoImpl,domainDaoImpl,configurationDaoImpl,transactionContext
> > Builder,instantiatePostProcessor,ComponentContext,org.springframework.
> > context.annotation.ConfigurationClassPostProcessor.importAwareProcesso
> > r];
> > root of factory hierarchy
> > 2015-02-09 07:28:28,303 DEBUG [utils.crypt.EncryptionSecretKeyChecker]
> > (main:null) Encryption Type: file
> > 2015-02-09 07:28:28,328 INFO  [db.Transaction.Transaction] (main:null)
> > Is Data Base High Availiability enabled? Ans : true
> > 2015-02-09 07:28:28,592 INFO  [db.Transaction.Transaction] (main:null)
> > The slaves configured for Cloud Data base is/are : 10.0.60.204
> > 2015-02-09 07:28:33,536 INFO  [utils.component.ComponentContext]
> > (main:null) Setup Spring Application context
> > 2015-02-09 07:28:36,914 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl_Enhanc
> > erByCloudStack_1f8f9b45
> > 2015-02-09 07:28:36,914 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.configuration.dao.ResourceCountDaoImpl_EnhancerByCloudStack_
> > 3a5009a1
> > 2015-02-09 07:28:36,915 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageSecurityGroupDaoImpl_EnhancerByCloudStack_363
> > 42b2b
> > 2015-02-09 07:28:36,915 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.SSHKeyPairDaoImpl_EnhancerByCloudStack_eb82ca46
> > 2015-02-09 07:28:36,915 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.ExternalPublicIpStatisticsDaoImpl_EnhancerByCloudS
> > tack_cee6304b
> > 2015-02-09 07:28:36,915 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.AccountDaoImpl_EnhancerByCloudStack_f6bb2f8c
> > 2015-02-09 07:28:36,926 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.domain.dao.DomainDaoImpl_EnhancerByCloudStack_dd83297c
> > 2015-02-09 07:28:36,927 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVPNUserDaoImpl_EnhancerByCloudStack_829e6aeb
> > 2015-02-09 07:28:36,934 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageNetworkOfferingDaoImpl_EnhancerByCloudStack_7
> > 590580e
> > 2015-02-09 07:28:36,934 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVmDiskDaoImpl_EnhancerByCloudStack_605a9bea
> > 2015-02-09 07:28:36,935 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageLoadBalancerPolicyDaoImpl_EnhancerByCloudStac
> > k_47c25820
> > 2015-02-09 07:28:36,935 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageStorageDaoImpl_EnhancerByCloudStack_e77c216f
> > 2015-02-09 07:28:36,935 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserStatsLogDaoImpl_EnhancerByCloudStack_6d64cbef
> > 2015-02-09 07:28:36,936 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageIPAddressDaoImpl_EnhancerByCloudStack_e4cde96
> > d
> > 2015-02-09 07:28:36,942 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageDaoImpl_EnhancerByCloudStack_c0fa431e
> > 2015-02-09 07:28:36,943 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageJobDaoImpl_EnhancerByCloudStack_a44d7d9d
> > 2015-02-09 07:28:36,943 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.EventDaoImpl_EnhancerByCloudStack_4a9ad15c
> > 2015-02-09 07:28:36,944 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserStatisticsDaoImpl_EnhancerByCloudStack_36878b81
> > 2015-02-09 07:28:36,954 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVolumeDaoImpl_EnhancerByCloudStack_b1e5414
> > 2015-02-09 07:28:36,955 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.UsageEventDetailsDaoImpl_EnhancerByCloudStack_b6db
> > 41b5
> > 2015-02-09 07:28:36,955 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVMInstanceDaoImpl_EnhancerByCloudStack_b6089c
> > d2
> > 2015-02-09 07:28:36,955 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStac
> > k_73c7b4b4
> > 2015-02-09 07:28:36,961 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.configuration.dao.ResourceLimitDaoImpl_EnhancerByCloudStack_
> > 5c979895
> > 2015-02-09 07:28:36,962 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.UsageEventDaoImpl_EnhancerByCloudStack_dd119339
> > 2015-02-09 07:28:36,962 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageNetworkDaoImpl_EnhancerByCloudStack_76dc9de4
> > 2015-02-09 07:28:36,963 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserAccountDaoImpl_EnhancerByCloudStack_d40fb7ef
> > 2015-02-09 07:28:36,972 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.alert.dao.AlertDaoImpl_EnhancerByCloudStack_57f37338
> > 2015-02-09 07:28:36,973 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.VmDiskStatisticsDaoImpl_EnhancerByCloudStack_943707
> > d0
> > 2015-02-09 07:28:36,973 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_d49ff81c
> > 2015-02-09 07:28:36,974 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.dao.UsageVMSnapshotDaoImpl_EnhancerByCloudStack_4eb66e
> > b
> > 2015-02-09 07:28:36,980 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.event.dao.EventJoinDaoImpl_EnhancerByCloudStack_57783042
> > 2015-02-09 07:28:36,981 INFO  [utils.component.ComponentContext]
> > (main:null) Configuring
> > com.cloud.usage.UsageManagerImpl_EnhancerByCloudStack_d6c7aeb5
> > 2015-02-09 07:28:36,981 DEBUG [cloud.usage.UsageManagerImpl]
> > (main:null) Checking to see if usage.vmops.pid exists.
> > 2015-02-09 07:28:36,981 INFO  [cloud.usage.UsageManagerImpl]
> > (main:null) Implementation Version is 4.3.1
> >
> >
> > and there are no records generated between 2014-12-29 06:39:41 and
> > 2015-02-09 07:23:49.
> >
> > waiting for your reply.
> >
> > Regards,
> > Rajasekhar.
> >
> >
> > On Mon, Feb 9, 2015 at 3:49 PM, Wei ZHOU <ustcweizhou@gmail.com> wrote:
> >
> >> anything in /var/log/cloudstack/usage/usage.log ?
> >> I guess log4j-cloud.xml is missing ? (it should be log4j-cloud.xml ,
> >> not
> >> log4j-cloud-usage.xml)
> >>
> >> 2015-02-09 10:47 GMT+01:00 raja sekhar <rajsekhar.467@gmail.com>:
> >>
> >> > Hi All,
> >> >
> >> > I am using CloudStack 4.3.1.Previously the usage records are
> >> generated,but
> >> > when i observed recently the usage records are not generating.The
> >> > usage records ends at 2014-12-27
> >> >
> >> > mysql>select * from job_usage\G
> >> >
> >> >             id: 79
> >> >         host: testcs01.test.local/xx.xx.xx.xx
> >> >          pid: 1675
> >> >     job_type: 0
> >> >    scheduled: 0
> >> > start_millis: 1419638400000
> >> >   end_millis: 1419724799999
> >> >    exec_time: 963
> >> >   start_date: 2014-12-27 00:00:00
> >> >     end_date: 2014-12-27 23:59:59
> >> >      success: 1
> >> >    heartbeat: 2014-12-28 07:14:50
> >> >
> >> > This is last record i found in usage_job.
> >> >
> >> > when i manually generate the usage records from cloudmonkey,it
> >> > shows "success", but the usage records are not generated in
> cloud_usage table.
> >> >
> >> > cloudmonkey> generate usagerecords startdate=2014-12-28
> >> enddate=2015-02-08
> >> > success = true
> >> >
> >> > I found an entry in cloud_job table,after generating usage records
> >> through
> >> > cloudmonkey.
> >> >
> >> >             id: 80
> >> >         host: NULL
> >> >          pid: 0
> >> >     job_type: 1
> >> >    scheduled: 0
> >> > start_millis: 0
> >> >   end_millis: 0
> >> >    exec_time: 0
> >> >   start_date: NULL
> >> >     end_date: NULL
> >> >      success: NULL
> >> >    heartbeat: 2015-02-09 09:12:20
> >> >
> >> > it is showing host "NULL".
> >> >
> >> > Any Suggestions??
> >> >
> >> >
> >> > Regards,
> >> > Rajasekhar.
> >> >
> >>
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message