History log of /external/autotest/site_utils/deploy_server.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a3045652c43b07e48b226dd5d785117160ff1ad 26-May-2017 Prathmesh Prabhu <pprabhu@chromium.org> [autoest] Add a server role 'sentinel'.

This role represents the sentinel server where a few administrative
daemons run.

BUG=chromium:726796
TEST=atest server modify SERVER_HOSTNAME -r sentinel

Change-Id: I5c6ea6851196ec64b073ed5798f2c015e9cb48b7
Reviewed-on: https://chromium-review.googlesource.com/517269
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
/external/autotest/site_utils/deploy_server.py
f7e50fddc94165a350ab7cffc154271d449b098e 16-Mar-2017 Prathmesh Prabhu <pprabhu@chromium.org> [autotest] Join thread_pool in deploy_server

I've seen failures with the following message in test_push, especially
when the test fails while running deploy_server:

Exception in thread Thread-3 (most likely raised during interpreter
shutdown)

This leaves test_push hanging. This is usually caused by a thread
outliving the python interpreter. A shot in the dark: join the
ThreadPool before the main thread is allowed to exit.

BUG=None
TEST=None

Change-Id: Ief0c1d8a0b55a6c8ddff3f834c530fdbe65eeaf1
Reviewed-on: https://chromium-review.googlesource.com/456482
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/site_utils/deploy_server.py
fad50674321c90591cbaf35a3565398d4184d45d 03-Feb-2017 Shuqian Zhao <shuqianz@chromium.org> [autotest] Check deployment progress every 1 min to print unfinished servers

Poll the deployment progress every one minute and logging the servers
which are still running.

BUG=chromium:666101
TEST=unittest and test on testing servers

Change-Id: Ibc1194507da45c8073ee0a2d383a4b3324ee8560
Reviewed-on: https://chromium-review.googlesource.com/436350
Commit-Ready: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/site_utils/deploy_server.py
9febd45bbbcaba56b66cd4b1febcb85f8b5bb591 01-Feb-2017 Shuqian Zhao <shuqianz@chromium.org> [autotest] Separate the logs deployment logs

Instead flush all the logs into console, write the logs of every server
into a log file in a single thread. In this way, we can save the log for
debug purpose and all the logs will not be mixed up.

BUG=chromium:666101
TEST=unittest and test in a test server.

Change-Id: Iaf7b303f0c3b0c9346c5346052ba07c79d2fb990
Reviewed-on: https://chromium-review.googlesource.com/435503
Commit-Ready: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/site_utils/deploy_server.py
57830764fa9b04cdee00f8a51a78917b380b967b 14-Dec-2016 Shuqian Zhao <shuqianz@chromium.org> autotest: deploy_server should exit with error code when it fails

Previously, when deploy_server script fails to update lab servers, it
just prints out the fail servers, and exits the program without errors.
It has no issue when we run deploy_server directly to update the
servers, but now we use automated_deploy script to wrap up the manual
steps, deploy_server script should exit with error code when it fails to
break the automated_deploy process and print out the correct error
message.

BUG=chromium:673591
TEST=unittest and test locally

Change-Id: I313d47b0d64886956e60e7c0b53eac0f758590c7
Reviewed-on: https://chromium-review.googlesource.com/419356
Commit-Ready: Aviv Keshet <akeshet@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/site_utils/deploy_server.py
2b54a3c49f146d59420b1c5d824d6870607c6005 04-Nov-2016 Don Garrett <dgarrett@google.com> deploy_server: Fix server retry message.

Only save server names in the skipped list, instead of tuples describing
them.

BUG=chromium:660173
TEST=None. None at all.

Change-Id: I2d857f8972d816d3e5a4a2a1912f69cc95defe2d
Reviewed-on: https://chromium-review.googlesource.com/407618
Tested-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
/external/autotest/site_utils/deploy_server.py
e927431f799c801b0518e3d75bd17232d198c81e 07-Oct-2016 Aviv Keshet <akeshet@chromium.org> deploy_server: fix TypeError in deploy_server

BUG=None
TEST=None

Change-Id: I41abd32777fb1119c9924077d9fd2cf6d5445fc5
Reviewed-on: https://chromium-review.googlesource.com/395286
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
/external/autotest/site_utils/deploy_server.py
126e1edaa4aa3e41aa20b346fd3d762a6134dd29 05-Oct-2016 Kevin Cheng <kevcheng@chromium.org> [autotest] deploy_server fix retry message.

BUG=None
TEST=None

Change-Id: I97d10f9d70b7ea58f9c1e1d611c82444650a6c3e
Reviewed-on: https://chromium-review.googlesource.com/393306
Commit-Queue: Kevin Cheng <kevcheng@chromium.org>
Tested-by: Kevin Cheng <kevcheng@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/deploy_server.py
a3438a5f7b385b204a0c8ccec6fa809c89b544bc 21-Sep-2016 Shuqian Zhao <shuqianz@chromium.org> autotest: add a flag to force to run all the update commands when deployment

Previously, deploy script will skip certain update commands when the
corresponding repos or script are not changed. For some cases, we may
need to force to run these commands. Add an option for this use case.

BUG=chromium:648425
TEST=Test on test server

Change-Id: I464afc7bfd945e0f4ccf6dced6dd468df4397b97
Reviewed-on: https://chromium-review.googlesource.com/387292
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/site_utils/deploy_server.py
8679bfe61dd8277125c04ae1bdf93dd4f3ab8e64 26-Aug-2016 Don Garrett <dgarrett@google.com> deploy_production: List all servers needed for retry on failure.

If a deploy fails, it lists the problematic servers, not not the servers
that were skipped from later groups. Change the error reporting to show
both the errors, and the servers that need to be retried.

BUG=None
TEST=None

Change-Id: I4280f5aec24789ddbc90c9250f9bff7a01873e6d
Reviewed-on: https://chromium-review.googlesource.com/376142
Commit-Ready: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/site_utils/deploy_server.py
8754a1a087a9553b277829583b46f05c07beb369 24-Aug-2016 Shuqian Zhao <shuqianz@chromium.org> [autotest] modify deploy script to support test_push

Modify the server deploy script to support both deploying server to prod
and updating test_push servers. Changes include:
1. Rename deploy_production to deploy_server, deploy_production_local to
deploy_server_local.
2. change deploy_server script to accept option, which specify it is
used for prod server or test_push server.
3. change deploy_server_local to support updating test_push servers.
4. change deploy_server_local to stash the changes before update.
5. change deploy_server_local to only run update cmds when the
corresponding repos/files have been changed, so need to run the cmds to
deploy the changes

BUG=None
TEST=unittest and test on test sever.

Change-Id: I2026f1f9ed0bbe5ec37363e5c01f97a94942114f
Reviewed-on: https://chromium-review.googlesource.com/375139
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/site_utils/deploy_server.py