brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murdo Aird (JIRA)" <>
Subject [jira] [Created] (BROOKLYN-444) Effector call works from GUI but fails from CLI
Date Sun, 26 Feb 2017 20:37:45 GMT
Murdo Aird created BROOKLYN-444:

             Summary: Effector call works from GUI but fails from CLI
                 Key: BROOKLYN-444
             Project: Brooklyn
          Issue Type: Bug
    Affects Versions: 0.10.0
         Environment: Brooklyn Version 0.10.0 on Mac
            Reporter: Murdo Aird
            Priority: Critical

The following simple BP adds an Effector to an entity. The entity can be called from the web
UI and succeeds. Drilling into the Activity logs shows the simple bash command works.

However if I try to invoke the Effector via the CLI [1], the call fails:
br app "effector-test" entity "Empty Software Process" effector DoStuff invoke

For the CLI failure, it looks like a random (?) environment variable is being injected via
the CLI [2].

name: effector-test
location: localhost
  - type:
    install.command: echo True
    launch.command: echo True
    checkRunning.command: echo true
      - type: org.apache.brooklyn.core.effector.ssh.SshCommandEffector
          name: DoStuff
          command: whoami

* Calling a standard Effector (e.g. stop) via the CLI works. 
* If the DoSuff Effector via CLI fails, I can subsequently call it from the web UI and it

Not to muddy the waters, but calling the same Effector from the REST API also results in an
error - but it's a different one [3].


This message was sent by Atlassian JIRA

View raw message