upsync: Delete support for exporting server_db

server_db information has been in the downsync mode for months now. The
upsync path is no longer needed.

BUG=chromium:848528
TEST=manually run upsync

Change-Id: I5012624e3583a4e60e7cd800a9e9c09d597715e3
Reviewed-on: https://chromium-review.googlesource.com/1175319
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
1 file changed
tree: 4289573a50f68fa6f9248b72c437bbd8f9a65120
  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 (must be done outside chroot):

cd protos
protoc --python_out=../venv/skylab_inventory/protos/ *.proto
protoc --go_out=../go/src/chromiumos/infra/skylab/inventory/protos/ *.proto