You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launchpad user Joshua Powers(powersj) wrote on 2016-11-23T20:23:43.656790+00:00
After attempting this on a KVM instance I was able to get past the error. Ran into other issues, but can confirm that the Xenial LXD container was unable to successfully create zfs due to the lack of /dev/zfs.
Therefore this test of LXD ZFS backends will need to be done in KVM.
This bug was originally filed in Launchpad as LP: #1643020
Launchpad details
Launchpad user Joshua Powers(powersj) wrote on 2016-11-18T17:36:46.217595+00:00
[description]
While using a 16.04 (Xenial) lxd cloud image, trying to setup lxd backed by zfs fails to create due to a missing /dev/zfs
[cloud-config]
#cloud-config
lxd:
init:
storage_backend: zfs
storage_pool: lxd
[steps to reproduce]
Image used: b9cba741ef62 ubuntu 16.04 LTS amd64 (release) (20161115)
lxc init ubuntu:xenial/amd64 xenial
lxc config set xenial user.user-data - < cloud-config.yaml
lxc start xenial
[actual result]
Nov 18 17:27:42 xenial-lxd [CLOUDINIT] util.py[DEBUG]: Running module lxd (<module 'cloudinit.config.cc_lxd' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_lxd.py'>) failed#012Traceback (most recent call last):#12 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 785, in _run_modules#012 freq=freq)#12 File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 70, in run#012 return self._runners.run(name, functor, args, freq, clear_on_fail)#12 File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 199, in run#012 results = functor(*args)#12 File "/usr/lib/python3/dist-packages/cloudinit/config/cc_lxd.py", line 104, in handle#012 util.subp(cmd)#12 File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1832, in subp#012 cmd=args)#012cloudinit.util.ProcessExecutionError: Unexpected error while running command.#012Command: ['lxd', 'init', '--auto', '--storage-backend=zfs', '--storage-pool=lxd']#012Exit code: 1#012Reason: -#012Stdout: ''#012Stderr: 'error: Invalid ZFS pool: /dev/zfs and /proc/self/mounts are required.\n'
root@xenial-lxd:
# ls /dev/zfs# ls /proc/self/mountsls: cannot access '/dev/zfs': No such file or directory
root@xenial-lxd:
/proc/self/mounts
[expected result]
I would have expected zfs to be setup with a pool named 'lxd' and cloud-init to complete successfully.
The text was updated successfully, but these errors were encountered: