[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lxc-users
Subject:    Re: [lxc-users] LXD init in Puppet issue
From:       "Tardif, Christian" <christian.tardif () servinfo ! ca>
Date:       2016-10-31 14:30:46
Message-ID: 87586c5787eb5681cea5ea6a70718869 () servinfo ! ca
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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. 

Anyway, this is now fixed. Thanks for pointing this out !

---
CHRISTIAN TARDIF 
-------------------------

On 2016-10-28 16:10, Benoit GEORGELIN - Association Web4all wrote:

> 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.tardif@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


[Attachment #5 (unknown)]

<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>&nbsp;</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>&nbsp;</div>
<div>looks like the lxd should be able to run a "zpool list" &nbsp;so the zfs backend \
will be considered as an option&nbsp;</div> <div>&nbsp;</div>
<div>https://github.com/lxc/lxd/blob/6cbf82757e96213e73be9a7305803910b09ea5ed/lxd/main.go#L628</div>
 <div>&nbsp;</div>
<div>Maybe, using puppet , the zpool list command from LXD failed .&nbsp;</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. &nbsp;</div> <div>Or puppet that would run a \
bash script to get zpool list result .&nbsp;</div> <div>&nbsp;</div>
<div>Maybe it's just related to your&nbsp;PATH environment &nbsp;variable used with \
puppet and you zfs binary are not found.&nbsp;</div> <div>&nbsp;</div>
<div>&nbsp;</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>&nbsp;</div>
</div>
<br /><hr id="zwchr" />
<div><strong>De: </strong>"Tardif, Christian" &lt;christian.tardif@servinfo.ca&gt;<br \
/><strong>&Agrave;: </strong>"lxc-users" \
&lt;lxc-users@lists.linuxcontainers.org&gt;<br /><strong>Envoy&eacute;: \
</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 ......&nbsp; --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&nbsp;&nbsp; SIZE&nbsp; \
ALLOC&nbsp;&nbsp; FREE&nbsp; EXPANDSZ&nbsp;&nbsp; FRAG&nbsp;&nbsp;&nbsp; CAP&nbsp; \
DEDUP&nbsp; HEALTH&nbsp; ALTROOT</span><br /><span style="font-family: \
terminal,monaco,monospace;">lxd&nbsp;&nbsp; 79.5G&nbsp;&nbsp; 272K&nbsp; \
79.5G&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp; \
0%&nbsp;&nbsp;&nbsp;&nbsp; 0%&nbsp; 1.00x&nbsp; ONLINE&nbsp; -</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>


[Attachment #6 (text/plain)]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic