[
https://issues.apache.org/jira/browse/CLOUDSTACK-9305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15199383#comment-15199383
]
ASF GitHub Bot commented on CLOUDSTACK-9305:
--------------------------------------------
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,usageNetworkDaoImpl,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
> Cloudstack Usage breaks with DB HA
> ----------------------------------
>
> Key: CLOUDSTACK-9305
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9305
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Usage
> Affects Versions: 4.8.0
> Environment: CentOS7
> Reporter: Sean Lair
>
> After setting db.ha.enabled=true in db.properties, cloudstack-usage
> continually restarts. If the setting is false, cloudstack-usage starts fine.
> Found on Cloudstack 4.8.0, but may be in other versions also?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)