<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Got it. In my exec path, there was something missing, which is not needed if I'm only looking at the apparent binary involved. So there's something requested in behind that prevented "lxd init" with zfs backend. This is not the zpool, as the same puppet run creates the required zpool.</p>
<p>Anyway, this is now fixed. Thanks for pointing this out !</p>
<div>---<br />
<p><strong>Christian Tardif</strong></p>
<hr />
<p><span> </span></p>
</div>
<p><br /></p>
<p>On 2016-10-28 16:10, Benoit GEORGELIN - Association Web4all wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;">
<div>Hi,</div>
<div> </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> </div>
<div>https://github.com/lxc/lxd/blob/6cbf82757e96213e73be9a7305803910b09ea5ed/lxd/main.go#L628</div>
<div> </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> </div>
<div>Maybe it's just related to your PATH environment variable used with puppet and you zfs binary are not found. </div>
<div> </div>
<div> </div>
<div>
<div><span style="color: #333333; font-family: times new roman,new york,times,serif;">Cordialement,</span><span style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><span style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br /></span></span></div>
<div> </div>
</div>
<br /><hr id="zwchr" />
<div><strong>De: </strong>"Tardif, Christian" <christian.tardif@servinfo.ca><br /><strong>À: </strong>"lxc-users" <lxc-users@lists.linuxcontainers.org><br /><strong>Envoyé: </strong>Vendredi 28 Octobre 2016 15:35:54<br /><strong>Objet: </strong>[lxc-users] LXD init in Puppet issue</div>
<br />
<div>
<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;">zpool list</span><br /><span 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;">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</div>
</div>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> lxc-users mailing list<br /> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br /> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div>
</blockquote>
</body></html>