Unable to build with lxd when using lxd with lvm pool.

Bug #1851905 reported by extraymond@gmail.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

System version: ubuntu 18.04
snapcraft: 3.8(3440) and 3.9.2(3720)

When tring to build snaps with --use-lxd, the following error is shown:

/snap/snapcraft/3440/lib/python3.5/site-packages/pylxd/models/_model.py:116: UserWarning: Attempted to set unknown attribute "type" on instance of "Container"
  key, self.__class__.__name__
Stopped
An error occurred with the instance when trying to start with 'LXD': Common start logic: No such file or directory: "/var/snap/lxd/common/lxd/storage-pools/pool1/containers/snapcraft-project/rootfs".
Ensure that 'LXD' is setup correctly and try again.

It seems that the directory is hardcoded toward the /var directory which is the default one I believe.

My lxd is setup with a lvm pool manually.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.