Chameleon: Needs a cron job to check network status |
|||
Issue descriptionWe may add a cron job in the chameleon image to check the network regularly. When a network outage, restart the network stack or reboot Chameleon.
,
Sep 13 2016
After discussion with Tom, we plan to add this with pure python. This schedule module is available on pip and suits our need. https://github.com/dbader/schedule We can create a service that runs a python script at boot. In that script, we can do whatever job we want.
,
Oct 3 2016
https://chromium-review.googlesource.com/391909 Add scheduler daemon to do scheduled job can fix this. Thanks!
,
Oct 4 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/chameleon/+/91e048d29e1962f951985a7d92d06f5ff62e2a0e commit 91e048d29e1962f951985a7d92d06f5ff62e2a0e Author: Cheng-Yi Chiang <cychiang@chromium.org> Date: Mon Oct 03 07:45:22 2016 Add scheduler daemon to do scheduled job In some network environment, networking may not get IP at the first attempt. Install a scheduler so it can check network status periodically. BUG= chromium:624660 TEST=Unplugs ethernet, stop networking, and plugs ethernet back. Observer /var/log/scheduler_init at the same time and see it restarts networking to bring back network. Change-Id: I331af39346ef867190157c02631fd22fef2b4447 Reviewed-on: https://chromium-review.googlesource.com/391909 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Shyh-In Hwang <josephsih@chromium.org> [modify] https://crrev.com/91e048d29e1962f951985a7d92d06f5ff62e2a0e/deploy/deploy [add] https://crrev.com/91e048d29e1962f951985a7d92d06f5ff62e2a0e/deploy/init.d/scheduler [add] https://crrev.com/91e048d29e1962f951985a7d92d06f5ff62e2a0e/utils/run_scheduler [modify] https://crrev.com/91e048d29e1962f951985a7d92d06f5ff62e2a0e/MANIFEST.in [add] https://crrev.com/91e048d29e1962f951985a7d92d06f5ff62e2a0e/chameleond/utils/network_utils.py [modify] https://crrev.com/91e048d29e1962f951985a7d92d06f5ff62e2a0e/setup.py
,
Oct 5 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by cychiang@chromium.org
, Jun 30 2016