Merge ~smoser/cloud-init:cleanup/collect-logs-stderr into cloud-init:master
Status: | Merged |
---|---|
Approved by: | Chad Smith |
Approved revision: | a6707315e674846bfff079520173d18d50fb0b79 |
Merge reported by: | Chad Smith |
Merged at revision: | 9f5907e1a14e3a4890fa25e0b1910a902e098d58 |
Proposed branch: | ~smoser/cloud-init:cleanup/collect-logs-stderr |
Merge into: | cloud-init:master |
Diff against target: |
205 lines (+66/-14) 2 files modified
cloudinit/cmd/devel/logs.py (+48/-11) cloudinit/cmd/devel/tests/test_logs.py (+18/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Smith | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email:
|
Commit message
collect-logs: add -v flag, write to stderr, limit journal to single boot.
With no output at all from collect-logs, users have been confused
on where the output is. By default now, write to stderr what that
file is.
Also
* add '-v' to increase verbosity. With a single -v flag, mention
what file/info is being collected.
* limit the 'journalctl' collection to this boot (--boot=0).
collecting entire journal seems unnecessary and can be huge.
* do not fail when collecting files or directories that are not there.
LP: #1766335
Description of the change
see commit message
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
FAILED: Continuous integration, rev:42590af381e 9a4fd0e750733f6 419d1abfdc18b6 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 1083/
https:/
Executed test runs:
SUCCESS: Checkout
FAILED: Unit & Style Tests
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 1083/rebuild
https:/