maas-test needs better logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-test |
Fix Committed
|
Low
|
Raphaël Badin |
Bug Description
since maas-test is so new, it needs a couple things to help with debugging.
1: it needs debug as a log level with the option to turn this on and off via a switch like --verbose or -v
The INFO level logs are good so far, I think, but perhaps they can be more verbose for sorting out what's going on as a test runs, and informing the user of exactly what data is being used or passed back and forth, where and what images and files are being downloaded, etc.
2: it would be useful to also save these to a log file without needing to resort to console redirection trickery. something like a --log switch followed by a file name that would tell maas-test to log both to the console and the log file (this would be especially helpful for debug purposes)
Related branches
- Gavin Panella (community): Approve
-
Diff: 59 lines (+9/-11)2 files modifiedmaastest/kvmfixture.py (+4/-3)
maastest/tests/test_kvmfixture.py (+5/-8)
Changed in maas-test: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → Fix Committed |
1: I hope to improve the situation by adding all the relevant MAAS logs into the output when a test fails.
2: we're still working on how to report the result of a test run. The default mechanism will be to upload the result to launchpad but we intend to provide a way to store the result in a file as well.