summaryrefslogtreecommitdiff
path: root/upstart
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-01-26 16:00:10 -0500
committerChad Smith <chad.smith@canonical.com>2018-02-12 10:20:09 -0700
commit2d07ece4f356d7e61b3e3fdebe8e4b18e6cc5841 (patch)
treef9b35ee64903536acef4fb663c4c8d915cea440d /upstart
parentd1a35a63c2a2ed32cb80fbebf098aa67160ea276 (diff)
downloadvyos-cloud-init-2d07ece4f356d7e61b3e3fdebe8e4b18e6cc5841.tar.gz
vyos-cloud-init-2d07ece4f356d7e61b3e3fdebe8e4b18e6cc5841.zip
tests: add support for logs with lxd from snap and future lxd 3.
This puts in place detection for if 'show-log' will work with lxc client, and uses that if present. The 'lxc console --show-log' is not expected to work until lxd/liblxc3.0. That should come in a few months. The hope is that when that function arrives, this code will move over to using it. For other scenarios (all current lxd installs) this will now support getting logs from a snap installed lxd or a package installed lxd via the old 'lxc.console.logfile'. If installed from snap, a platform error will be raised until the user does: sudo mkdir --mode=1777 -p /var/snap/lxd/common/consoles LP: #1745663
Diffstat (limited to 'upstart')
0 files changed, 0 insertions, 0 deletions