bugfix: autoupdate failed due to mingle with watchdog
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 21 Sep 2017 03:16:44 +0000 (11:16 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 21 Sep 2017 03:34:28 +0000 (11:34 +0800)
commit191072605a57185758936ff02af0298a1ec7e592
tree45f6323ee10441689bf50a2ea7bd93ad41eecb3d
parentc4a49c82cd4fd3c21b3384960bf3b351f14d6cf4
bugfix: autoupdate failed due to mingle with watchdog

1. In the original design, if the auto-job starts soon after
the watchdog starts, the auto update might be mingled with
connectivity check, which may lead to update failure. so instead,
the connectivity is checked first, if failed and module is not in deploying,
restart module.
2. only automate-docker-deploy job will impact the container status during
auto-job, so substitue auto-job status check with automate-docker-deploy's
3. the watchdog is not only for testapi, but also for reporting, and
all docker container server deployed in testresults.opnfv.org, so move it under
utils/test/opts, which is leveraged to store tool-sets employed for testing tools.

Change-Id: I766f3a534a3d510ce7509d4e742150150ccd8f54
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
opts/watchdog.sh [moved from testapi/tools/watchdog/docker_watch.sh with 92% similarity]