The specific issue I believe is that LXD as a snap is confined and does not have access to /tmp hence the error message:
console.c:lxc_console_create:561 - No such file or directory - failed to open console log file "/tmp/LXDInstance-cloud-test-ubuntu-xenial-image-modification-em88d5kzvxzdrzsgod029n8iztb/console.log"
Running the integration tests using the lxd backend fails when lxd is installed as a snap: /paste. ubuntu. com/26465769/
https:/
The failure is a result of the tests/cloud_ tests/platforms /lxd.py: _setup_ console_ log() function attempting to modify the configuration:
49 cfg = "lxc.console. logfile= %s" % logf container. config. get('raw. lxc', "") container. config[ 'raw.lxc' ] = orig + cfg
50 orig = self._pylxd_
51 if orig:
52 orig += "\n"
53 self._pylxd_
LXD logs: https:/ /paste. ubuntu. com/26465860/ /paste. ubuntu. com/26465838/
My lxd setup/config: https:/
The specific issue I believe is that LXD as a snap is confined and does not have access to /tmp hence the error message:
console. c:lxc_console_ create: 561 - No such file or directory - failed to open console log file "/tmp/LXDInstan ce-cloud- test-ubuntu- xenial- image-modificat ion-em88d5kzvxz drzsgod029n8izt b/console. log"