cloudstack4.4 管理节点集群式服务

2015-03-01 文章 loveg...@126.com

Required Settings
Be sure you have set the following in db.properties:
db.ha.enabled: set to true if you want to use the replication feature.
Example: db.ha.enabled=true
db.cloud.slaves: set to a comma-delimited set of slave hosts for the cloud 
database. This is the list of nodes set up with replication. The master node is 
not in the list, since it is already mentioned elsewhere in the properties file.
Example: db.cloud.slaves=node2,node3,node4
db.usage.slaves: set to a comma-delimited set of slave hosts for the usage 
database. This is the list of nodes set up with replication. The master node is 
not in the list, since it is already mentioned elsewhere in the properties file.
Example: db.usage.slaves=node2,node3,node4
按照以上操作后,出现如下错误,不知为何?
PS:DB的主从已OK


INFO [c.c.u.d.T.Transaction] (main:null) Is Data Base High Availiability 
enabled? Ans : true 
INFO [c.c.u.d.T.Transaction] (main:null) The slaves configured for Cloud Data 
base is/are : cimmuk02,cimmuk03,cimmuk04 
ERROR [c.c.u.d.Merovingian2] (main:null) Unable to get a new db connection 
java.sql.SQLException: Invalid load balancing strategy 
'com.cloud.utils.db.StaticStrategy'. 
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934) 
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931) 
at com.mysql.jdbc.Util.loadExtensions(Util.java:588) 
at 
com.mysql.jdbc.LoadBalancingConnectionProxy.init(LoadBalancingConnectionProxy.java:280)
 
at 
com.mysql.jdbc.FailoverConnectionProxy.init(FailoverConnectionProxy.java:66) 
at 
com.mysql.jdbc.NonRegisteringDriver.connectFailover(NonRegisteringDriver.java:382)
 
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:301) 
at java.sql.DriverManager.getConnection(DriverManager.java:571) 
at java.sql.DriverManager.getConnection(DriverManager.java:215) 
at 
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
 
at 
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
 
at 
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
 
at 
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
 
at 
com.cloud.utils.db.TransactionLegacy.getStandaloneConnectionWithException(TransactionLegacy.java:202)
 
at com.cloud.utils.db.Merovingian2.init(Merovingian2.java:68) 
at com.cloud.utils.db.Merovingian2.createLockMaster(Merovingian2.java:80) 
at com.cloud.server.LockMasterListener.init(LockMasterListener.java:33) 
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) 
at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121)
 
at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1045)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:949)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
 
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
 
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
 
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
 
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
 
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
 
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
 
at 

vrouter的问题

2015-03-01 文章 jinyue....@criwell.com
Dear all,
  我遇到了如下的问题:
  环境描述:高级网络  两台主机,都是基于KVM的。
  问题描述:隔离网络,第一台主机创建的实例可以ping通VR,运行在第二台基于同网络的实例不能ping通VR。
  实验如下:
   1.强行给第二台主机的实例添加IP后,实例之间可以互相ping,而不能pingVR。
   2.vr运行在第一台主机上,将vr迁移到第二台主机后,发现可以第二台主机上的实例可以ping通VR,而第一天主机的实例则不能ping通VR。
 
  不明白产生以上现象的原因,非常感谢大家的帮助。






答复: vrouter的问题

2015-03-01 文章 Star Guo
描述一下环境的操作系统(kernel version),服务器硬件(网卡),交换机型号。

Best Regards,
Star Guo

-邮件原件-
发件人: jinyue@criwell.com [mailto:jinyue@criwell.com] 
发送时间: 2015年3月2日 13:31
收件人: users-cn
主题: vrouter的问题

Dear all,
  我遇到了如下的问题:
  环境描述:高级网络  两台主机,都是基于KVM的。
  问题描述:隔离网络,第一台主机创建的实例可以ping通VR,运行在第二台基于
同网络的实例不能ping通VR。
  实验如下:
   1.强行给第二台主机的实例添加IP后,实例之间可以互相ping,而不能
pingVR。
   2.vr运行在第一台主机上,将vr迁移到第二台主机后,发现可以第二台主机上
的实例可以ping通VR,而第一天主机的实例则不能ping通VR。
 
  不明白产生以上现象的原因,非常感谢大家的帮助。