action #45086
closedIdea: way to get logs out of os-autoinst without network connection
0%
Description
Sometimes, a test failure occurs because there's no network connection in the SUT. Then we hit our post-fail hook, which probably tries to upload logs for diagnosing the problem...over the network...
I'm doing a sorta hacky workaround for this in the Fedora tests: have the post-fail hook check if it can ping the host IP, and if it can't, try and dump the contents of text logs via the serial console. That seems at least better than nothing.
It occurred to me that it may be interesting to do a more generalized implementation of this in os-autoinst - perhaps as a new command similar to upload_logs
, or implement it within upload_logs
based on whether it can ping the host IP, something like that? Does anyone think this sounds like a useful idea?
Updated by AdamWill about 6 years ago
- Category set to 132
- Priority changed from Normal to Low
- Difficulty set to medium
Updated by okurz about 6 years ago
- Related to action #36127: [functional][u] test fails in zypper_up with no network - debugging and logging should be improved added
Updated by okurz about 6 years ago
- Related to action #28285: Need to provide workaround for getting logs from system without network added
Updated by okurz about 6 years ago
- Related to deleted (action #28285: Need to provide workaround for getting logs from system without network )
Updated by okurz about 6 years ago
- Is duplicate of action #28285: Need to provide workaround for getting logs from system without network added
Updated by okurz about 6 years ago
- Status changed from New to Rejected
- Assignee set to okurz
it is a useful idea … raised before ;) I closed this ticket as duplicate of #28285 but provided your comment there.