<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hi,</div><div><br data-mce-bogus="1"></div><div>looks like the lxd should be able to run a "zpool list"  so the zfs backend will be considered as an option </div><div><br data-mce-bogus="1"></div><div>https://github.com/lxc/lxd/blob/6cbf82757e96213e73be9a7305803910b09ea5ed/lxd/main.go#L628</div><div><br data-mce-bogus="1"></div><div>Maybe, using puppet , the zpool list command from LXD failed . </div><div><br>I would try to get the "zpool list" command running from puppet to be sure it's working on its own trough puppet.  </div><div>Or puppet that would run a bash script to get zpool list result . </div><div><br data-mce-bogus="1"></div><div>Maybe it's just related to your PATH environment  variable used with puppet and you zfs binary are not found. </div><div><br></div><div><br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__"><div><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif;">Cordialement,</span><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span></span></div><div><br></div></div><br><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Tardif, Christian" <christian.tardif@servinfo.ca><br><b>À: </b>"lxc-users" <lxc-users@lists.linuxcontainers.org><br><b>Envoyé: </b>Vendredi 28 Octobre 2016 15:35:54<br><b>Objet: </b>[lxc-users] LXD init in Puppet issue<br></div><br><div data-marker="__QUOTED_TEXT__">
<p>Hi,</p>
<p>Maybe this would ring a bell to someone....</p>
<p>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.</p>
<p>My issue is that when I try to run lxd init ......  --storage-backend zfs, it fails, returning</p>
<p>Notice: /Stage[main]/Nhs_lxd/Exec[lxd init]/returns: error: The requested backend 'zfs' isn't available on your system (missing tools).</p>
<p>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:</p>
<p><span style="font-family: terminal,monaco,monospace;" data-mce-style="font-family: terminal,monaco,monospace;">zpool list</span><br><span style="font-family: terminal,monaco,monospace;" data-mce-style="font-family: terminal,monaco,monospace;">NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT</span><br><span style="font-family: terminal,monaco,monospace;" data-mce-style="font-family: terminal,monaco,monospace;">lxd   79.5G   272K  79.5G         -     0%     0%  1.00x  ONLINE  -</span></p>
<p>Any clue?</p>
<div>-- <br>
<p><strong>Christian Tardif</strong></p>
</div>

<br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br></div></div></body></html>