我已经安装keytool,用命令导入 keytool -genkey -keystore 
/etc/cloud/management/cloud.keystore 
,但是我的这个文件夹下没有cloud.keystone这个文件,网上查了一下没找到文件。




史丽丽

发件人: tanthalas
发送时间: 2014-03-26 17:33
收件人: users-cn
主题: Re: 服务启动不成功
再看一下那个目录下的management-server.log,建议分析log应该看此文件。
可以尝试关闭防火墙


刘宇超



发件人: 史丽丽 
发送时间: 2014-03-26  17:15:53 
收件人: users-cn@cloudstack.apache.org 
抄送: 
主题: 服务启动不成功 
您好,我这边做一个cloudstack的部署,目前是在一台虚拟机上装cloudstack,数据库安装成功,操作系统是rhel
cs版本为4.2,到初始化cloudstack管理程序步骤,执行如下命令cloudstack-setup-management
参看日志为:/var/log/cloudstack/management/catalina.out 
cs启动报错如下:服务启动不成功,望您给予解答,谢谢。
maxElementsOnDisk = 0 memoryStoreEvictionPolicy = LRU timeToLiveSeconds = 600 
timeToIdleSeconds = 300 diskPersistent = false diskExpiryThreadIntervalSeconds 
= 120 cacheEventListeners:  hitCount = 0 memoryStoreHitCount = 0 
diskStoreHitCount = 0 missCountNotFound = 0 missCountExpired = 0 ]
INFO  [utils.component.ComponentContext] (Timer-2:) Configuring 
com.cloud.upgrade.DatabaseIntegrityChecker_EnhancerByCloudStack_ead01e13
INFO  [utils.component.ComponentContext] (Timer-2:) Configuring 
com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_a685eed4
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing 
updateSSLKeyStore
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) SSL keystore located at 
/etc/cloudstack/management/cloud.keystore
WARN  [cloud.server.ConfigurationServerImpl] (Timer-2:) Would use fail-safe 
keystore to continue.
java.io.IOException: Fail to generate certificate!: sudo: keytool: command not 
found
at 
com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:496)
at 
com.cloud.server.ConfigurationServerImpl.updateSSLKeystore(ConfigurationServerImpl.java:517)
at 
com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:289)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
at 
com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing 
updateKeyPairs
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Keypairs already in 
database, updating local copy
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Going to update 
systemvm iso with generated keypairs if needed
2014-3-26 13:57:40 org.springframework.web.context.ContextLoader 
initWebApplicationContext
信息: Root WebApplicationContext: initialization completed in 3871 ms
2014-3-26 13:57:40 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
 <init>
信息: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
INFO  [utils.component.ComponentContext] (Timer-2:) Configuring 
com.cloud.utils.crypt.EncryptionSecretKeyChecker_EnhancerByCloudStack_375384cc
INFO  [utils.component.ComponentContext] (Timer-2:) Configuring 
com.cloud.cluster.ManagementServerNode_EnhancerByCloudStack_ab03d7d2
INFO  [utils.component.ComponentContext] (Timer-2:) Configuring 
com.cloud.cluster.ClusterManagerImpl_EnhancerByCloudStack_5702e15
INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:) Start configuring cluster 
manager : ClusterManagerImpl_EnhancerByCloudStack_5702e15
INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:) Cluster node IP : 
192.168.131.141
INFO  [utils.db.Merovingian2] (Timer-2:) Cleaning up locks for 86530476470110
INFO  [utils.db.Merovingian2] (Timer-2:) Released 0 locks for 86530476470110
INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:) register cluster listener 
class com.cloud.cluster.LockMasterListener
INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:) Trying to connect to 
192.168.131.141
ERROR [cloud.cluster.ClusterManagerImpl] (Timer-2:) Unable to ping management 
server at 192.168.131.141:9090 due to ConnectException
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:500)
at 
com.cloud.cluster.ClusterManagerImpl.pingManagementNode(ClusterManagerImpl.java:1405)
at 
com.cloud.cluster.ClusterManagerImpl.pingManagementNode(ClusterManagerImpl.java:1384)
at 
com.cloud.cluster.ClusterManagerImpl.checkConflicts(ClusterManagerImpl.java:1461)
at com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1347)
at 
com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:) Detected that another 
management node with the same IP 192.168.131.141 is considered as running in 
DB, however it is not pingable, we will continue cluster initialization with 
this management server node
INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:) Cluster manager is 
configured.
INFO  [utils.component.ComponentContext] (Timer-2:) Configuring org.apach
史丽丽
发件人: Liu Fred
发送时间: 2014-03-26 16:47
收件人: users-cn@cloudstack.apache.org
主题: CS 4.3发布了,准备试用吗?
有多少人准备试用这个版本的?生产还是测试?
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

回复