<div dir="ltr">Attached is the beegfs-client.conf.<div><br></div><div>Thanks,</div><div>- Trey</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 24, 2015 at 2:41 AM, Raphaël Pinson <span dir="ltr"><<a href="mailto:raphael.pinson@camptocamp.com" target="_blank">raphael.pinson@camptocamp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Trey,<div><br></div><div><br></div><div>It works for me when starting from an empty file, so I think the problem most likely involves your beegfs-client.conf file. Could you attach it?</div><div><br></div><div><br></div><div>Raphaël</div><div><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Nov 23, 2015 at 10:47 PM, Trey Dockendorf <span dir="ltr"><<a href="mailto:treydock@gmail.com" target="_blank">treydock@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I'm attempting to use the Simplevars.lns, but renamed to BeeGFS_config.lns and distributed with my Puppet module since Simplevars in EL6 lacks empty value support.  Right now I'm hitting an error that unsure how to resolve.<div><br></div><div>The output is from docker acceptance tests with debug enabled in Puppet:</div><div><br></div><div>  Debug: Augeas[beegfs-client.conf](provider=augeas): sending command 'set' with params ["/files/etc/beegfs/beegfs-client.conf/sysMgmtdHost", "172.17.0.64"]</div><div><snip></div><div><div>Debug: Augeas[beegfs-client.conf](provider=augeas): Put failed on one or more files, output from /augeas//error:</div><div>  Debug: Augeas[beegfs-client.conf](provider=augeas): /augeas/files/etc/beegfs/beegfs-client.conf/error = put_failed</div><div>  Debug: Augeas[beegfs-client.conf](provider=augeas): /augeas/files/etc/beegfs/beegfs-client.conf/error/path = /files/etc/beegfs/beegfs-client.conf/sysMgmtdHost</div><div>  Debug: Augeas[beegfs-client.conf](provider=augeas): /augeas/files/etc/beegfs/beegfs-client.conf/error/lens = /var/lib/puppet/lib/augeas/lenses/beegfs_config.aug:33.45-.53:</div><div>  Debug: Augeas[beegfs-client.conf](provider=augeas): /augeas/files/etc/beegfs/beegfs-client.conf/error/message = Value '172.17.0.64' does not match regexp // in store lens</div></div><div><br></div><div>The lense I'm using is attached as is the test file that works.  The value of sysMgmtdHost is empty before a value is added.</div><div><br></div><div>I can reproduce this using augtool:</div><div><br></div><div><div>$ augtool --noautoload -I lib/augeas/lenses</div><div>augtool> set /augeas/load/test/lens "BeeGFS_config.lns"</div><div>augtool> set /augeas/load/test/incl /Users/treydock/puppet/modules/beegfs/templates/beegfs-client.conf</div><div>augtool> load</div></div><div><div>augtool> set /files/Users/treydock/puppet/modules/beegfs/templates/beegfs-client.conf/sysMgmtdHost 192.168.1.1</div><div>augtool> save</div><div>error: Failed to execute command</div><div>saving failed (run 'print /augeas//error' for details)</div><div>augtool> print /augeas//error</div><div>/augeas/files/Users/treydock/puppet/modules/beegfs/templates/beegfs-client.conf/error = "put_failed"</div><div>/augeas/files/Users/treydock/puppet/modules/beegfs/templates/beegfs-client.conf/error/path = "/files/Users/treydock/puppet/modules/beegfs/templates/beegfs-client.conf/sysMgmtdHost"</div><div>/augeas/files/Users/treydock/puppet/modules/beegfs/templates/beegfs-client.conf/error/lens = "lib/augeas/lenses/beegfs_config.aug:33.45-.53:"</div><div>/augeas/files/Users/treydock/puppet/modules/beegfs/templates/beegfs-client.conf/error/message = "Value '192.168.1.1' does not match regexp // in store lens"</div></div><div><br></div><div>The Simplevars lense seemed closest to what I needed, but maybe a completely custom lense is better?  The values in the configs are just in form of "config = value" and comments use #.</div><div><br></div><div>Thanks,</div><div>- Trey</div></div>
<br></div></div>_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com" target="_blank">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">Raphaël Pinson<div>Infrastructure Developer & Training Leader</div><div>+33 458 482 013<div><br></div><div>Camptocamp France<br>
Savoie Technolac<br>
BP 352<br>
48, avenue du Lac du Bourget<br>
73372 Le Bourget du Lac, Cedex<br>
<a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a><br>
</div></div></div></div></div></div>
</font></span></div></div></div>
</blockquote></div><br></div>