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>
2 files changed
tree: e37ab32c27a16f4b2d14dde22dcb9e240e24d746
  1. bin/
  2. go/
  3. protos/
  4. venv/
  5. .gitignore
  6. COMMIT-QUEUE.ini
  7. PRESUBMIT.cfg
  8. README.md
README.md

Skylab inventory

Updating inventory schema

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