Hi, 

looks like the lxd should be able to run a "zpool list" so the zfs backend will 
be considered as an option 

https://github.com/lxc/lxd/blob/6cbf82757e96213e73be9a7305803910b09ea5ed/lxd/main.go#L628
 

Maybe, using puppet , the zpool list command from LXD failed . 

I would try to get the "zpool list" command running from puppet to be sure it's 
working on its own trough puppet. 
Or puppet that would run a bash script to get zpool list result . 

Maybe it's just related to your PATH environment variable used with puppet and 
you zfs binary are not found. 


Cordialement, 



De: "Tardif, Christian" <christian.tar...@servinfo.ca> 
À: "lxc-users" <lxc-users@lists.linuxcontainers.org> 
Envoyé: Vendredi 28 Octobre 2016 15:35:54 
Objet: [lxc-users] LXD init in Puppet issue 



Hi, 

Maybe this would ring a bell to someone.... 

I'm in the process of deploying some LXD servers. In our company, we try to 
puppetize everything we can. Same story for LXD servers. 

My issue is that when I try to run lxd init ...... --storage-backend zfs, it 
fails, returning 

Notice: /Stage[main]/Nhs_lxd/Exec[lxd init]/returns: error: The requested 
backend 'zfs' isn't available on your system (missing tools). 

But when I run my command manually, it runs perfectly. And in order to prove 
that I have the zfs tools installed, I have a zfs pool up and running in that 
box: 

zpool list 
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT 
lxd 79.5G 272K 79.5G - 0% 0% 1.00x ONLINE - 

Any clue? 
-- 


Christian Tardif 

_______________________________________________ 
lxc-users mailing list 
lxc-users@lists.linuxcontainers.org 
http://lists.linuxcontainers.org/listinfo/lxc-users 
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to