Better logging for ethernet related petting.
recover_duts ethernet hook periodically pets the connection of lab machine to
guarantee connectivity or force a reboot. This change adds logging to
/var/log/messages in the event this petting fails.
Change also quiets the ping output to only print the summary info.
BUG=chromium:321666
TEST=manual
1. stop recover_duts
2. touch /mnt/stateful_partition/.labmachine
3. start recover_duts
4. <remove ethernet & wait for reboot>
5. <attach ethernet>
6. rm /mnt/stateful_partition/.labmachine
7. grep recover_duts /var/log/messages
2013-11-20T12:18:50.434889-08:00 localhost recover_duts:check_ethernet.hook:
All efforts to recover ethernet have been exhausted. Rebooting.
Change-Id: Ic12ebccd89132b7186b3051a35e5b5dfc7e1851b
Reviewed-on: https://chromium-review.googlesource.com/177425
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
1 file changed