"juju deploy" writes "Deploy of bundle completed." stderr

Bug #1871017 reported by Paul Collins
8
This bug affects 1 person
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/.local/share/mojo/archive-servers/bionic/ci/charms/is/archive-servers/bundle.yaml --overlay /home/paul/.local/share/mojo/archive-servers/bionic/ci/charms/secrets-local.cfg 1>fd=1 2>fd=2
[agnew(~)] more fd\=* | cat
::::::::::::::
fd=1
::::::::::::::
Executing changes:
- upload charm /home/paul/.local/share/mojo/archive-servers/bionic/ci/charms/bionic/nrpe for series bionic
- deploy application nrpe on bionic using /home/paul/.local/share/mojo/archive-servers/bionic/ci/charms/bionic/nrpe
- expose nrpe
- add relation nrpe:nrpe-external-master - ubuntu-mirror:nrpe-external-master
::::::::::::::
fd=2
::::::::::::::
Deploy of bundle completed.
[agnew(~)] _

With --show-log:

[agnew(~)] juju deploy --show-log /home/paul/.local/share/mojo/archive-servers/bionic/ci/charms/is/archive-servers/bundle.yaml --overlay /home/paul/.local/s
hare/mojo/archive-servers/bionic/ci/charms/secrets-local.cfg
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://10.9.8.57:17070/model/aa254a42-ace1-4e12-8b1e-66d3402eb4b9/api"
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://10.9.8.57:17070/api"
Executing changes:
- upload charm /home/paul/.local/share/mojo/archive-servers/bionic/ci/charms/bionic/nrpe for series bionic
- deploy application nrpe on bionic using /home/paul/.local/share/mojo/archive-servers/bionic/ci/charms/bionic/nrpe
14:36:33 INFO juju.cmd.juju.application series_selector.go:133 with the series "bionic" defined by the bundle
- 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-external-master - ubuntu-mirror:nrpe-external-master
Deploy of bundle completed.
14:36:34 INFO cmd supercommand.go:525 command finished
[agnew(~)] _

Related branches

Revision history for this message
Ian Booth (wallyworld) wrote :

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.

Changed in juju:
milestone: none → 2.8.1
importance: Undecided → High
status: New → Triaged
Revision history for this message
Pen Gale (pengale) wrote :

This has been discussed in the past, and we have agreed that we can fix this in Juju 3.0, but we should not make this change in a Juju 2 point release.

Changed in juju:
milestone: 2.8.1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: High → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.