找不到 运行 服务实例

Could not find a running instance of service

我正在使用 Cloudify 2.7 和 OpenStack Icehouse。

我已经使用以下应用程序 grooxy 在负载均衡器 apache 后面部署了一个 tomct 服务:

application {

name="servizio_tomcat"

service {
    name = "LB_apache"
}
service {
    name = "tomcat"
    dependsOn = ["LB_apache"]
}
}

现在,负载均衡器 (LB) 已成功启动,而 tomcat 服务 returns 以下日志:

2015-07-10 15:40:00,705 vm1.tomcat [1] INFO [org.cloudifysource.usm.launcher.DefaultProcessLauncher] - tomcat_install.groovy: Tomcat installazione terminata 2015-07-10 15:40:01,039 vm1.tomcat [1] INFO [org.cloudifysource.usm.launcher.DefaultProcessLauncher] - Command exited with value: 0 2015-07-10 15:40:01,239 vm1.tomcat [1] INFO [org.cloudifysource.usm.USMEventLogger.vm1.tomcat] - vm1.tomcat-1 INSTALL completed, duration: 69.2 seconds 2015-07-10 15:40:01,240 vm1.tomcat [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Waiting for dependencies 2015-07-10 15:40:01,240 vm1.tomcat [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Waiting for dependency: vm1.LB_apache 2015-07-10 15:40:01,241 vm1.tomcat [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Waiting for PU: vm1.LB_apache 2015-07-10 15:40:01,242 vm1.tomcat [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Waiting for PUI of service: vm1.LB_apache for 1799998 Milliseconds 2015-07-10 15:40:02,246 vm1.tomcat [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Timeout ended. processing unit vm1.LB_apache found result is false 2015-07-10 15:40:02,246 vm1.tomcat [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Could not find a running instance of service: vm1.LB_apache. Sleeping before trying again 2015-07-10 15:40:07,246 vm1.tomcat [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Waiting for PUI of service: vm1.LB_apache for 1793994 Milliseconds

--已编辑-- 另外,成功启动了LB_apache负载均衡服务,如下:

2015-07-23 10:56:56,750 vm1.LB_apache [1] INFO [org.cloudifysource.dsl.internal.BaseDslScript] - LB_apache-service.groovy: service started 2015-07-23 10:56:56,751 vm1.LB_apache [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Process liveness test passed 2015-07-23 10:56:56,751 vm1.LB_apache [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Executing Process Locators! 2015-07-23 10:56:56,761 vm1.LB_apache [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Monitored processes: [4805, 4650] 2015-07-23 10:56:56,766 vm1.LB_apache [1] INFO [org.cloudifysource.usm.UniversalServiceManagerBean] - Starting async tasks 2015-07-23 10:56:57,340 vm1.LB_apache [1] WARNING [org.openspaces.admin.internal.discovery.DiscoveryService] - Failed to add GSC with uid [78079166-64e2-496f-8960-9f8da5384c05]; Caused by: java.rmi.ConnectException: Connect Failed to [NIO://192.168.0.197:7010/pid[4133]/156099058240_2_-9033342841429766968_details[class com.gigaspaces.grid.gsc.GSCImpl]]; nested exception is: java.net.SocketTimeoutException 2015-07-23 10:56:57,440 vm1.LB_apache [1] WARNING [org.openspaces.admin.internal.discovery.DiscoveryService] - Failed to add GSC with uid [7651d9af-980b-4609-b025-b6f032cdd5ca]; Caused by: java.rmi.ConnectException: Connect Failed to [NIO://192.168.0.198:7010/pid[4114]/150333879046_2_3930206808247770008_details[class com.gigaspaces.grid.gsc.GSCImpl]]; nested exception is: java.net.SocketTimeoutException 2015-07-23 10:56:57,478 vm1.LB_apache [1] WARNING [org.openspaces.admin.internal.discovery.DiscoveryService] - Failed to add [Processing Unit Instance] with uid [8e7aa0bb-c9e6-48bc-818b-eef54109d19b]; Caused by: java.rmi.ConnectException: Connect Failed to [NIO://192.168.0.197:7010/pid[4133]/156099058256_3_-9033342841429766968_details[class org.openspaces.pu.container.servicegrid.PUServiceBeanImpl]]; nested exception is: java.net.SocketTimeoutException 2015-07-23 10:56:57,742 vm1.LB_apache [1] INFO [LB_apache-stdout] - LB_apache_Start.groovy: About to start LB_apache ...
2015-07-23 10:56:57,743 vm1.LB_apache [1] INFO [LB_apache-stdout] - LB_apache_Start.groovy: Finished start of LB_apache.

有人可以帮我理解那个警告吗? 谢谢

此日志文件仅包含 INFO 日志,不包含错误。日志行仅表明 Apache 负载平衡器实例尚未启动。 tomcat 实例在负载均衡器实例上配置为 'depend'。因此,在负载均衡器启动并完成向 Cloudify 集群的注册之前,tomcat 不会启动。

tomcat 服务将一直等待,直到 Apache 实例启动。