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 10:33:24 GMT
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-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManagedContext.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Executors$RunnableAdapter.call:471
> :
> -UsageEventDaoImpl.getRecentEvents:99-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-UsageManagerImpl.parse:556-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManagedContext.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerImpl.run:288-Executors$RunnableAdapter.call:471,
> .  Called by
> -TransactionLegacy.open:166-TransactionLegacy.open:126-UsageManagerImpl.parse:786-UsageManagerImpl.runInContextInternal:349-UsageManagerImpl$1.runInContext:291-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56-DefaultManagedContext.callWithContext:103-DefaultManagedContext.runWithContext:53-ManagedContextRunnable.run:46-UsageManagerImpl.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.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,volumeUsageParser,vmDiskUsageParser,portForwardingUsageParser,networkOfferingUsageParser,storageUsageParser,securityGroupUsageParser,VMInstanceUsageParser,IPAddressUsageParser,VPNUserUsageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsageParser,usageAlertManagerImpl,usageManagerImpl,usageVMSnapshotDaoImpl,usageStorageDaoImpl,usageVmDiskDaoImpl,usageNetworkOfferingDaoImpl,usageVPNUserDaoImpl,usageSecurityGroupDaoImpl,usageIPAddressDaoImpl,usageDaoImpl,externalPublicIpStatisticsDaoImpl,usageVMInstanceDaoImpl,usagePortForwardingRuleDaoImpl,usageVolumeDaoImpl,usageNetworkDaoImpl,usageLoadBalancerPolicyDaoImpl,usageJobDaoImpl,usageEventDaoImpl,usageEventDetailsDaoImpl,eventDaoImpl,eventJoinDaoImpl,SSHKeyPairDaoImpl,userStatisticsDaoImpl,userStatsLogDaoImpl,userDaoImpl,userAccountDaoImpl,accountDaoImpl,vmDiskStatisticsDaoImpl,resourceCountDaoImpl,resourceLimitDaoImpl,alertDaoImpl,domainDaoImpl,configurationDaoImpl,transactionContextBuilder,instantiatePostProcessor,ComponentContext,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor];
> 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_EnhancerByCloudStack_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_8f78d34
> 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_EnhancerByCloudStack_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_4853ba17
> 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_EnhancerByCloudStack_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_b7914b76
> 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_899ea3be
> 2014-12-29 06:39:41,175 INFO  [utils.component.ComponentContext]
> (main:null) Configuring
> com.cloud.usage.dao.UsageVMInstanceDaoImpl_EnhancerByCloudStack_88cbfedb
> 2014-12-29 06:39:41,175 INFO  [utils.component.ComponentContext]
> (main:null) Configuring
> com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStack_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_66fa69d9
> 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_d7aec8f4
> 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.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,volumeUsageParser,vmDiskUsageParser,portForwardingUsageParser,networkOfferingUsageParser,storageUsageParser,securityGroupUsageParser,VMInstanceUsageParser,IPAddressUsageParser,VPNUserUsageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsageParser,usageAlertManagerImpl,usageManagerImpl,usageVMSnapshotDaoImpl,usageStorageDaoImpl,usageVmDiskDaoImpl,usageNetworkOfferingDaoImpl,usageVPNUserDaoImpl,usageSecurityGroupDaoImpl,usageIPAddressDaoImpl,usageDaoImpl,externalPublicIpStatisticsDaoImpl,usageVMInstanceDaoImpl,usagePortForwardingRuleDaoImpl,usageVolumeDaoImpl,usageNetworkDaoImpl,usageLoadBalancerPolicyDaoImpl,usageJobDaoImpl,usageEventDaoImpl,usageEventDetailsDaoImpl,eventDaoImpl,eventJoinDaoImpl,SSHKeyPairDaoImpl,userStatisticsDaoImpl,userStatsLogDaoImpl,userDaoImpl,userAccountDaoImpl,accountDaoImpl,vmDiskStatisticsDaoImpl,resourceCountDaoImpl,resourceLimitDaoImpl,alertDaoImpl,domainDaoImpl,configurationDaoImpl,transactionContextBuilder,instantiatePostProcessor,ComponentContext,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor];
> 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_EnhancerByCloudStack_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_6e0cbaaa
> 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_EnhancerByCloudStack_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_ad68e78d
> 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_EnhancerByCloudStack_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_eeb3d134
> 2015-02-09 07:24:00,557 INFO  [utils.component.ComponentContext]
> (main:null) Configuring
> com.cloud.usage.dao.UsageVMInstanceDaoImpl_EnhancerByCloudStack_ede12c51
> 2015-02-09 07:24:00,557 INFO  [utils.component.ComponentContext]
> (main:null) Configuring
> com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStack_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_cc0f974f
> 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_3cc3f66a
> 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.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,volumeUsageParser,vmDiskUsageParser,portForwardingUsageParser,networkOfferingUsageParser,storageUsageParser,securityGroupUsageParser,VMInstanceUsageParser,IPAddressUsageParser,VPNUserUsageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsageParser,usageAlertManagerImpl,usageManagerImpl,usageVMSnapshotDaoImpl,usageStorageDaoImpl,usageVmDiskDaoImpl,usageNetworkOfferingDaoImpl,usageVPNUserDaoImpl,usageSecurityGroupDaoImpl,usageIPAddressDaoImpl,usageDaoImpl,externalPublicIpStatisticsDaoImpl,usageVMInstanceDaoImpl,usagePortForwardingRuleDaoImpl,usageVolumeDaoImpl,usageNetworkDaoImpl,usageLoadBalancerPolicyDaoImpl,usageJobDaoImpl,usageEventDaoImpl,usageEventDetailsDaoImpl,eventDaoImpl,eventJoinDaoImpl,SSHKeyPairDaoImpl,userStatisticsDaoImpl,userStatsLogDaoImpl,userDaoImpl,userAccountDaoImpl,accountDaoImpl,vmDiskStatisticsDaoImpl,resourceCountDaoImpl,resourceLimitDaoImpl,alertDaoImpl,domainDaoImpl,configurationDaoImpl,transactionContextBuilder,instantiatePostProcessor,ComponentContext,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor];
> 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_EnhancerByCloudStack_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_36342b2b
> 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_EnhancerByCloudStack_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_7590580e
> 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_EnhancerByCloudStack_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_e4cde96d
> 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_b6db41b5
> 2015-02-09 07:28:36,955 INFO  [utils.component.ComponentContext]
> (main:null) Configuring
> com.cloud.usage.dao.UsageVMInstanceDaoImpl_EnhancerByCloudStack_b6089cd2
> 2015-02-09 07:28:36,955 INFO  [utils.component.ComponentContext]
> (main:null) Configuring
> com.cloud.usage.dao.UsagePortForwardingRuleDaoImpl_EnhancerByCloudStack_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_943707d0
> 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_4eb66eb
> 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