brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BROOKLYN-67) On unmanage app-server logs warning every 5 secs; instead should disconnect sensors
Date Tue, 09 Sep 2014 09:12:28 GMT
Aled Sage created BROOKLYN-67:
---------------------------------

             Summary: On unmanage app-server logs warning every 5 secs; instead should disconnect
sensors
                 Key: BROOKLYN-67
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-67
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Aled Sage


I called `unmanage` on a JBoss 7 server entity, via the brooklyn web-console.

This successfully unmanaged the entity, but the entity continued to try to poll for service-up.
Every 5 seconds, the following warn + info was logged. I'd have expected it to call `disconnectSensors`
(or equivalent) to stop the polling as part of unmanage.

2014-09-09 10:04:07,044 WARN  b.e.b.lifecycle.ScriptHelper [brooklyn-execmanager-YbRskHLw-99]:
Execution failed, invocation error for check-running JBoss7ServerImpl{id=YPX2MFn6}: Non-deployment
context NonDeploymentManagementContext{entity=YPX2MFn6, mode=MANAGEMENT_STOPPED} is not valid
for this operation. (throwing)
2014-09-09 10:04:07,044 INFO  b.e.b.lifecycle.ScriptHelper [brooklyn-execmanager-YbRskHLw-99]:
STDIN of problem in Task[ssh: check-running JBoss7ServerImpl{id=YPX2MFn6}:moE8wJkH]:
export RUN_DIR="/tmp/brooklyn-aled/apps/eX2fOYZl/entities/JBoss7Server_YPX2MFn6"
mkdir -p $RUN_DIR
cd $RUN_DIR
test -f /tmp/brooklyn-aled/apps/eX2fOYZl/entities/JBoss7Server_YPX2MFn6/pid.txt || exit 1
ps -p `cat /tmp/brooklyn-aled/apps/eX2fOYZl/entities/JBoss7Server_YPX2MFn6/pid.txt`
2014-09-09 10:04:07,045 DEBUG b.u.task.BasicExecutionManager [brooklyn-execmanager-YbRskHLw-99]:
Exception running task Task[ssh: check-running JBoss7ServerImpl{id=YPX2MFn6}:moE8wJkH] (rethrowing):
Execution failed, invocation error for check-running JBoss7ServerImpl{id=YPX2MFn6}: Non-deployment
context NonDeploymentManagementContext{entity=YPX2MFn6, mode=MANAGEMENT_STOPPED} is not valid
for this operation.
java.lang.IllegalStateException: Execution failed, invocation error for check-running JBoss7ServerImpl{id=YPX2MFn6}:
Non-deployment context NonDeploymentManagementContext{entity=YPX2MFn6, mode=MANAGEMENT_STOPPED}
is not valid for this operation.
        at brooklyn.entity.basic.lifecycle.ScriptHelper.logWithDetailsAndThrow(ScriptHelper.java:361)
~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.basic.lifecycle.ScriptHelper.executeInternal(ScriptHelper.java:344)
~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.basic.lifecycle.ScriptHelper$8.call(ScriptHelper.java:262) ~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.basic.lifecycle.ScriptHelper$8.call(ScriptHelper.java:1) ~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.util.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:318)
~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.util.task.BasicExecutionManager$2.call(BasicExecutionManager.java:389)
~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_65]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[na:1.6.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[na:1.6.0_65]
        at java.lang.Thread.run(Thread.java:695) [na:1.6.0_65]
Caused by: java.lang.IllegalStateException: Non-deployment context NonDeploymentManagementContext{entity=YPX2MFn6,
mode=MANAGEMENT_STOPPED} is not valid for this operation.
        at brooklyn.management.internal.NonDeploymentManagementContext.checkInitialManagementContextReal(NonDeploymentManagementContext.java:385)
~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.management.internal.NonDeploymentManagementContext.getConfig(NonDeploymentManagementContext.java:249)
~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.software.SshEffectorTasks.getSshFlags(SshEffectorTasks.java:289)
~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.basic.AbstractSoftwareProcessSshDriver.getSshFlags(AbstractSoftwareProcessSshDriver.java:263)
~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.basic.AbstractSoftwareProcessSshDriver.execute(AbstractSoftwareProcessSshDriver.java:275)
~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.basic.lifecycle.ScriptHelper.executeInternal(ScriptHelper.java:340)
~[brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        ... 9 common frames omitted



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message