Merge ~smoser/cloud-init:bug/1745663-use-lxd-console into cloud-init:master
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | f576b2a24b8014e91087933d19a7a0d396787c30 | ||||
Proposed branch: | ~smoser/cloud-init:bug/1745663-use-lxd-console | ||||
Merge into: | cloud-init:master | ||||
Diff against target: |
200 lines (+109/-28) 2 files modified
tests/cloud_tests/collect.py (+3/-2) tests/cloud_tests/platforms/lxd/instance.py (+106/-26) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joshua Powers (community) | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
cloud-init Commiters | Pending | ||
Review via email: mp+336722@code.launchpad.net |
Commit message
tests: add support for logs in with 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.
If installed from snap, a platform error will be raised until
the user does:
sudo mkdir --mode=1777 -p /var/snap/
LP: #1745663
Description of the change
see commit message
FAILED: Continuous integration, rev:d9414916875 92392bdfc71d9f2 c28d6222732f47 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 740/
https:/
Executed test runs:
SUCCESS: Checkout
FAILED: Unit & Style Tests
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 740/rebuild
https:/