tremplin: Use running lxd version for disaster recovery strategy.

Tremplin was previously using "version.Version" to decide which LXD
recovery strategy to attempt. It turns out this is a compile time
constant and will always be LXD 5 in our build. This need not
correspond the the LXD version launched by Tremplin, which not
known at compile time.

The output of 'lxd version' is authoritative.

BUG=b:277003404
TEST=Build tatl, termina-dlc, launch a container and inspect logs to see
version matches expectation.

Change-Id: I949963bcab4c0ff63e24a5b0a487d4bdf0dac2d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tremplin/+/4456469
Auto-Submit: Nicholas Verne <nverne@chromium.org>
Commit-Queue: James Ye <jamesye@google.com>
Tested-by: Nicholas Verne <nverne@chromium.org>
Reviewed-by: James Ye <jamesye@google.com>
1 file changed
tree: 0005a951d01f43fe7c271204ee447ba9e1d0e6a3
  1. src/
  2. .gitignore
  3. DIR_METADATA
  4. OWNERS
  5. README.md
README.md

Tremplin

Tremplin is the “springboard” daemon that runs in the Termina VM and exposes a gRPC interface for managing LXD containers.