"juju deploy" writes "Deploy of bundle completed." stderr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
When deploying a bundle with "juju deploy", the final "Deploy of bundle completed." is written to stderr.
This may be related to LP:1869795, but seems to be a different case, since this is not machine-readable output, and it doesn't show up in --show-log.
[agnew(~)] juju version
2.7.5-focal-amd64
[agnew(~)] juju deploy /home/paul/
[agnew(~)] more fd\=* | cat
::::::::::::::
fd=1
::::::::::::::
Executing changes:
- upload charm /home/paul/
- deploy application nrpe on bionic using /home/paul/
- expose nrpe
- add relation nrpe:nrpe-
::::::::::::::
fd=2
::::::::::::::
Deploy of bundle completed.
[agnew(~)] _
With --show-log:
[agnew(~)] juju deploy --show-log /home/paul/
hare/mojo/
14:36:32 INFO juju.cmd supercommand.go:83 running juju [2.7.5 gc go1.10.4]
14:36:32 INFO juju.juju api.go:67 connecting to API addresses: [10.9.8.57:17070]
14:36:32 INFO juju.api apiclient.go:624 connection established to "wss://
14:36:32 INFO juju.juju api.go:67 connecting to API addresses: [10.9.8.57:17070]
14:36:32 INFO juju.api apiclient.go:624 connection established to "wss://
Executing changes:
- upload charm /home/paul/
- deploy application nrpe on bionic using /home/paul/
14:36:33 INFO juju.cmd.
- expose nrpe
- set application options for ubuntu-mirror
14:36:33 INFO cmd bundle.go:1012 setting options:
14:36:33 INFO cmd bundle.go:1016 role_map: "{}\n"
- add relation nrpe:nrpe-
Deploy of bundle completed.
14:36:34 INFO cmd supercommand.go:525 command finished
[agnew(~)] _
Related branches
- Tom Haddon: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedmojo/phase.py (+1/-1)
It's a similar underlying root cause - if the code uses ctx.Infof() to record output, it goes to log output if --quiet is used, else stderr. With --verbose it's the opposite.