2.7-rc5: juju run does not return command output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
There is a regression with 2.7-rc5 where juju run does not return the output of the command it executes on the unit. We noted that the output is presented when the --format yaml option is passed and also if 'juju exec' is called rather than 'juju run'. Please see the demonstrated out put below:
alexb@blackFire:~$ juju run -u fio/leader pwd
/var/lib/
$ juju run -u fio/leader pwd --format yaml
- Stdout: |
/var/
UnitId: fio/0
alexb@blackFire:~$ juju show-controller
localhost-
details:
uuid: 33a9125b-
controller-
api-endpoints: ['10.80.
cloud: localhost
region: localhost
agent-version: 2.6.10
mongo-version: 3.6.3
ubuntu@
ubuntu@
- Stdout: |
/var/
UnitId: vault/0
ubuntu@
foundations-maas:
details:
uuid: 52dcd6f4-
controller-
api-endpoints: ['10.246.
cloud: maas_cloud
region: default
agent-version: 2.7-rc5
controller-
mongo-version: 3.6.3
ubuntu@
/var/lib/
tags: |
added: cdo-release-blocker removed: cdo-qa-blocker |
Changed in juju: | |
milestone: | none → 2.7-rc6 |
assignee: | nobody → Ian Booth (wallyworld) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
There was a typo in the code to support backwards compatibility with juju run vs juju exec
https:/ /github. com/juju/ juju/pull/ 10937