← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~smoser/cloud-init:bug/1745663-use-lxd-console into cloud-init:master

 

The proposal to merge ~smoser/cloud-init:bug/1745663-use-lxd-console into cloud-init:master has been updated.

Commit Message changed to:

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.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

For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/336722
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:bug/1745663-use-lxd-console into cloud-init:master.


References