commit | 60b07a5a6b134f572451698e676ff91ed5538b66 | [log] [tgz] |
---|---|---|
author | Dan Shi <dshi@chromium.org> | Fri Oct 03 15:09:43 2014 -0700 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Tue Oct 07 20:58:23 2014 +0000 |
tree | ff5a3d11e58baa5699c428a41c6038f7e9b56b61 | |
parent | e2bf396b7d3870f7565b2b10018087ab7fa6256e [diff] |
[autotest] Save host labels information to metaDB Add a utility to save all host labels to metaDB. Will need to setup a daily cron job to run the script. The script also supports a query action to search for hosts and labels. BUG=chromium:419043 TEST=run the tool to collect host labels, and query it: ./site_utils/host_labels_utils.py collect ./site_utils/host_labels_utils.py query -n 172.27.213.193 -l peppy TODO: After this is in production, ES mapping needs to be updated to stop indexing hostname and labels. refer to the end of document: https://docs.google.com/a/google.com/document/d/1GpTe9TwMRc5lQFrFWXfB5eyCgaYIkSSjPS2fyLcP8yQ/edit# Change-Id: I294466e5033cfe207ab072297edbb64dfd07771a Reviewed-on: https://chromium-review.googlesource.com/221520 Reviewed-by: Dan Shi <dshi@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org> Tested-by: Dan Shi <dshi@chromium.org>