commit | a0f2120411c97fd09adb79f9aa8f2d34de05ed06 | [log] [tgz] |
---|---|---|
author | Aviv Keshet <akeshet@chromium.org> | Fri Mar 29 00:00:21 2019 |
committer | chrome-bot <chrome-bot@chromium.org> | Fri Mar 29 17:21:39 2019 |
tree | e37ab32c27a16f4b2d14dde22dcb9e240e24d746 | |
parent | 502f2a2b7156108a110c849bfe167a415d44ab9e [diff] |
Revert "skylab-inventory-mon: consider chromeos1- servers to be prod" This reverts commit 4782ba48992c6a3814ddd545ceb14826ec05e82b. Reason for revert: alerts firing continuously for weeks BUG=chromium:838654 TEST=None Original change's description: > skylab-inventory-mon: consider chromeos1- servers to be prod > > BUG=838654 > > Change-Id: If1343334faf5afc86cf8ea1902da89b2a2804d4f > Reviewed-on: https://chromium-review.googlesource.com/1489833 > Commit-Ready: Aviv Keshet <akeshet@chromium.org> > Tested-by: Aviv Keshet <akeshet@chromium.org> > Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org> Bug: 838654 Change-Id: I8e8d9d9a3237ab208ee69cee048fa5503bb889a2 Reviewed-on: https://chromium-review.googlesource.com/1544933 Commit-Ready: Aviv Keshet <akeshet@chromium.org> Tested-by: Aviv Keshet <akeshet@chromium.org> Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Inventory schema is stored as protobuf definitions in the proto/ directory. When you update these protobuf definitions, you must also update the generated python libraries for them.
You need the protoc compiler for this. On gLinux:
sudo apt-get install protobuf-compiler go get github.com/golang/protobuf/protoc-gen-go
Then, regenerate the libraries inside the chroot:
cros_sdk (cr) cd ~/trunk/infra/skylab_inventory/protos (cr) protoc --python_out=../venv/skylab_inventory/protos/ *.proto (cr) protoc --go_out=../go/src/chromiumos/infra/skylab/inventory/protos/ *.proto