juju debug-log and EOF

Bug #1390585 reported by Adam Collard
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Tim Penhey

Bug Description

Currently (Juju 1.20.11-amd64-trusty) juju debug-log will stream out the debug log to STDOUT, but it never EOFs unless the user sends SIGINT or similar. In other words it's a command that never finishes.

When debug-log is run by other programs, it would be useful to have the stream stop once all "current" log messages have been sent. In other words the equivalent of "juju ssh 0 cat /var/log/juju/all-machines.log" instead of the current "juju ssh 0 tail -f /var/log/juju/all-machines.log".

tags: added: landscape
removed: landscappe
Curtis Hovey (sinzui)
tags: added: debug-log
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Ian Booth (wallyworld) wrote :

I think we could implement the requested behaviour with a new flag, something like --no-stream (or whatever). The current behaviour is useful in many situations, and we would also not want to change the behaviour of an existing command.

Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 1.23
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Medium → High
Changed in juju-core:
assignee: nobody → Matthew Williams (mattyw)
Revision history for this message
Matthew Williams (mattyw) wrote :

I've submitted a possible fix http://reviews.vapour.ws/r/1159/

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.23 → none
importance: High → Medium
Changed in juju-core:
assignee: Matthew Williams (mattyw) → Menno Smits (menno.smits)
milestone: none → 1.26-alpha1
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.26-alpha1 → 1.26-alpha2
Mark Ramm (mark-ramm)
Changed in juju-core:
importance: Medium → High
Tim Penhey (thumper)
Changed in juju-core:
assignee: Menno Smits (menno.smits) → Tim Penhey (thumper)
status: Triaged → In Progress
Changed in juju-core:
milestone: 1.26-alpha2 → 1.26-beta1
Changed in juju-core:
milestone: 1.26-beta1 → 2.0-alpha2
milestone: 2.0-alpha2 → 2.0-alpha1
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
Cheryl Jennings (cherylj) wrote :

FTR, the option for this in 2.0 is '--no-tail'

affects: juju-core → juju
Changed in juju:
milestone: 2.0-alpha1 → none
milestone: none → 2.0-alpha1
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.