Github user kiwiflyer commented on the pull request: https://github.com/apache/cloudstack/pull/1433#issuecomment-197845922 Tested patch on a 4.7.1 lab. Prior to patch: INFO [cloud.usage.UsageServer] (main:null) (logid:) UsageServer ready... INFO [context.support.ClassPathXmlApplicationContext] (main:null) (logid:) Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@70ea0c2a: startup date [Thu Mar 17 06:51:40 CDT 2016]; root of context hierarchy INFO [factory.xml.XmlBeanDefinitionReader] (main:null) (logid:) Loading XML bean definitions from class path resource [usageApplicationContext.xml] INFO [factory.annotation.AutowiredAnnotationBeanPostProcessor] (main:null) (logid:) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring INFO [context.support.ClassPathXmlApplicationContext] (main:null) (logid:) 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) INFO [factory.support.DefaultListableBeanFactory] (main:null) (logid:) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@33037ca5: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,vmDiskUsageParser,networkOfferingUsageParser,VPNUserUsageParser,IPAddressUsageParser,VMSnapshotUsageParser,loadBalancerUsageParser,networkUsageParser,securityGroupUsageParser,storageUsageParser,portForwardingUsageParser,VMInstanceUsageParser,volumeUsageParser,usageManagerImpl,usageAlertManagerImpl,usageVmDiskDaoImpl,usageIPAddressDaoImpl,usageStorageDaoImpl,usageVolumeDaoImpl,usageDaoImpl,usagePortForwardingRuleDaoImpl,usageVPNUserDaoImpl,usageJobDaoImpl,usageLoadBalancerPolicyDaoImpl,u sageNetworkDaoImpl,externalPublicIpStatisticsDaoImpl,usageSecurityGroupDaoImpl,usageVMInstanceDaoImpl,usageNetworkOfferingDaoImpl,usageVMSnapshotDaoImpl,usageEventDetailsDaoImpl,usageEventDaoImpl,eventDaoImpl,SSHKeyPairDaoImpl,userDaoImpl,vmDiskStatisticsDaoImpl,userAccountDaoImpl,accountDaoImpl,userStatsLogDaoImpl,userStatisticsDaoImpl,resourceCountDaoImpl,resourceLimitDaoImpl,alertDaoImpl,domainDaoImpl,configurationDaoImpl,quotaEmailTemplatesDaoImpl,userVmDetailsDaoImpl,quotaUsageDaoImpl,quotaBalanceDaoImpl,quotaTariffDaoImpl,quotaAccountDaoImpl,serviceOfferingDaoImpl,quotaCreditsDaoImpl,quotaAlertManagerImpl,quotaStatementImpl,quotaManagerImpl,transactionContextBuilder,instantiatePostProcessor,ComponentContext,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy DEBUG [utils.crypt.EncryptionSecretKeyChecker] (main:null) (logid:) Encryption Type: file INFO [db.Transaction.Transaction] (main:null) (logid:) Is Data Base High Availiability enabled? Ans : true INFO [db.Transaction.Transaction] (main:null) (logid:) The slaves configured for Cloud Data base is/are : 10.103.0.154,10.103.0.155 <then service tries to restart every few seconds> After patch: INFO [utils.component.ComponentContext] (main:null) (logid:) Starting com.cloud.usage.dao.UsageVMSnapshotDaoImpl_EnhancerByCloudStack_c20890bf INFO [utils.component.ComponentContext] (main:null) (logid:) Starting org.apache.cloudstack.quota.QuotaStatementImpl_EnhancerByCloudStack_5d0529b4 INFO [cloudstack.quota.QuotaStatementImpl] (main:null) (logid:) Starting Statement Manager INFO [utils.component.ComponentContext] (main:null) (logid:) Starting org.apache.cloudstack.quota.QuotaManagerImpl_EnhancerByCloudStack_3ffc3462 INFO [cloudstack.quota.QuotaManagerImpl] (main:null) (logid:) Starting Quota Manager INFO [utils.component.ComponentContext] (main:null) (logid:) Starting com.cloud.usage.UsageManagerImpl_EnhancerByCloudStack_93e4d889 INFO [cloud.usage.UsageManagerImpl] (main:null) (logid:) Starting Usage Manager INFO [utils.component.ComponentContext] (main:null) (logid:) Starting com.cloud.usage.UsageAlertManagerImpl_EnhancerByCloudStack_8fa0a2a9 INFO [utils.component.ComponentContext] (main:null) (logid:) Starting org.apache.cloudstack.quota.QuotaAlertManagerImpl_EnhancerByCloudStack_9535c670 INFO [cloudstack.quota.QuotaAlertManagerImpl] (main:null) (logid:) Starting Alert Manager INFO [cloud.usage.UsageServer] (main:null) (logid:) UsageServer ready... <service starts correctly> LGTM
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---