euca-describe-availability-zones verbose shows 0 max

来源:互联网 发布:淘宝保证金是什么意思 编辑:程序博客网 时间:2024/05/21 19:28

 

Eucalyptus version: 1.6~bzr931
Installed from Ubuntu Enterprise Cloud CD, following the instruction: https://help.ubuntu.com/community/UEC/CDInstall
Topology: 1 front end, 1 node

My problem:
when I run into this step euca-describe-availability-zones verbose of the ubuntu instruction, I got this result:
AVAILABILITYZONE vm 192.168.218.128
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0000 / 0000 1 128 2
AVAILABILITYZONE |- c1.medium 0000 / 0000 1 256 5
AVAILABILITYZONE |- m1.large 0000 / 0000 2 512 10
AVAILABILITYZONE |- m1.xlarge 0000 / 0000 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0000 / 0000 4 2048 20

I searched the problem in the forum, and found it is related with the connectivity between front end and the node. But it seems not be the case this time, since sudo euca_conf --no-rsync --discover-nodes runs smooth.

the last error in cloud-error.log happened before my command ran, and it's
23:11:38 [EntityWrapper:SystemClockTimer] ERROR org.hibernate.exception.JDBCConnectionException: Cannot open connection
org.hibernate.exception.JDBCConnectionException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)
at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:38)
at com.eucalyptus.util.TxHandle.(TxHandle.java:40)
at com.eucalyptus.util.EntityWrapper.(EntityWrapper.java:100)
at com.eucalyptus.util.EntityWrapper.(EntityWrapper.java:93)
at edu.ucsb.eucalyptus.cloud.cluster.VmTypes.update(VmTypes.java:111)
at edu.ucsb.eucalyptus.cloud.cluster.VmTypes.list(VmTypes.java:140)
at com.eucalyptus.cluster.handlers.ResourceStateHandler.trigger(ResourceStateHandler.java:31)
at com.eucalyptus.cluster.handlers.AbstractClusterMessageDispatcher.fireTimedStatefulTrigger(AbstractClusterMessageDispatcher.java:140)
at com.eucalyptus.cluster.handlers.ResourceStateHandler.fireEvent(ResourceStateHandler.java:39)
at com.eucalyptus.event.ReentrantListenerRegistry.fireEvent(ReentrantListenerRegistry.java:80)
at com.eucalyptus.event.ReentrantListenerRegistry.fireEvent(ReentrantListenerRegistry.java:65)
at com.eucalyptus.event.ListenerRegistry.fireEvent(ListenerRegistry.java:69)
at com.eucalyptus.event.SystemClock.run(SystemClock.java:35)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
Caused by: java.sql.SQLException: Connection is broken: java.net.SocketException: Connection timed out
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.getAutoCommit(Unknown Source)
at com.mchange.v2.c3p0.impl.NewProxyConnection.getAutoCommit(NewProxyConnection.java:1083)
at org.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:82)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
... 19 more

I really appreciate the kind help since I plan to setup a bigger cloud in the lab to facilitate other researchers.