← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1643020] Re: zfs backed lxd fails with missing /dev/zfs

 

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.

Closing as invalid.

** Changed in: cloud-init
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1643020

Title:
  zfs backed lxd fails with missing /dev/zfs

Status in cloud-init:
  Invalid

Bug description:
  [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):#012  File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 785, in _run_modules#012    freq=freq)#012  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)#012  File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 199, in run#012    results = functor(*args)#012  File "/usr/lib/python3/dist-packages/cloudinit/config/cc_lxd.py", line 104, in handle#012    util.subp(cmd)#012  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: cannot access '/dev/zfs': No such file or directory
  root@xenial-lxd:~# ls /proc/self/mounts
  /proc/self/mounts

  [expected result]
  I would have expected zfs to be setup with a pool named 'lxd' and cloud-init to complete successfully.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1643020/+subscriptions


References