[
https://issues.apache.org/jira/browse/BROOKLYN-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16246734#comment-16246734
]
Aled Sage commented on BROOKLYN-552:
------------------------------------
I tried reproducing this in AWS, with Tomcat. When I called stop and then start
(i.e. such that it terminated the VM and spun up a new one), it went on-fire.
This is because it uses JMX for its health check, but the {{jmx.service.url}}
sensor still has the IP from the first VM:
{noformat}
jmx.service.url:
service:jmx:jmxmp://ec2-34-252-168-149.eu-west-1.compute.amazonaws.com:31001
webapp.url: http://ec2-52-49-28-164.eu-west-1.compute.amazonaws.com:8080/
{noformat}
This is presumably because things like {{JmxHelper}} will only recalculate the
url and set the sensor {{UsesJmx.JMX_URL}} if that sensor is null.
However, I tried setting that sensor to null manually and then calling
restart() effector - but it did not reset the {{jmx.service.url}} so there may
be more to fixing it.
I didn't see the entity id or the run.dir change at all, or the security groups
/ keypairs mess up in any way.
> Tomcat entity stop / start fails as entity id changes which update run_dir
> but tc obviously not moved
> -----------------------------------------------------------------------------------------------------
>
> Key: BROOKLYN-552
> URL: https://issues.apache.org/jira/browse/BROOKLYN-552
> Project: Brooklyn
> Issue Type: Bug
> Reporter: Duncan Grant
> Priority: Critical
>
> Reproduce:
> Deploy tomcat with:
> name: Test Tomcat
> location:
> centos7_gce_europe
> services:
> type: org.apache.brooklyn.entity.webapp.tomcat.TomcatServer
> after entity is running do
> br app <appid> ent <entityid> stop
> br app <appid> ent <entityid> start
> The isrunning check will never pass as the run_dir sensor will have upated
> but obviously the directory is not moved on the vm
> This is presumably a problem with all blueprints that use the standard pid
> check for running???
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)