<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 28, 2018 at 2:33 PM Sachidananda URS <<a href="mailto:surs@redhat.com">surs@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>gluster-ansible project is aimed at automating the deployment and maintenance of GlusterFS cluster.</div><div><br></div><div>The project can be found at:<br></div><div><br></div><div>* <a href="https://github.com/gluster/gluster-ansible" target="_blank">https://github.com/gluster/gluster-ansible</a></div><div>* <a href="https://github.com/gluster/gluster-ansible-infra" target="_blank">https://github.com/gluster/gluster-ansible-infra</a></div><div>* <a href="https://github.com/gluster/gluster-ansible-features" target="_blank">https://github.com/gluster/gluster-ansible-features</a></div><div>* <a href="https://github.com/gluster/gluster-ansible-maintenance" target="_blank">https://github.com/gluster/gluster-ansible-maintenance</a></div><div>* <a href="https://github.com/gluster/gluster-ansible-cluster" target="_blank">https://github.com/gluster/gluster-ansible-cluster</a></div><div>* <a href="https://github.com/gluster/gluster-ansible-repositories" target="_blank">https://github.com/gluster/gluster-ansible-repositories</a></div><div><br></div><div>We have the python bindings for GlusterD2 API, and can be found at:</div><div><br></div><div><a href="https://github.com/gluster/python-gluster-mgmt-client" target="_blank">https://github.com/gluster/python-gluster-mgmt-client</a></div><div><br></div><div>The goal is to use the python bindings in gluster_ansible module to make it work with GlusterD2.</div><div><br></div><div>Current status of the project:</div><div><br></div><div>* We have the initial working roles, packages are available at:</div><div> - <a href="https://copr.fedorainfracloud.org/coprs/sac/gluster-ansible/builds/" target="_blank">https://copr.fedorainfracloud.org/coprs/sac/gluster-ansible/builds/</a></div><div><br></div><div>* The initial version supports:</div><div> - End-to-end deployment of Gluster Hyperconverged Infrastructure.</div><div> - GlusterFS volume management</div><div> - GlusterFS brick setup</div><div> - Packages and repository management <br></div><div><br></div><div>* Autogeneration of python bindings for GlusterD2 is being worked by Sidharth (<a href="https://github.com/sidharthanup" target="_blank">https://github.com/sidharthanup</a>) and available at:</div><div> - <a href="https://github.com/sidharthanup/GD2_API/blob/master/testgen/glusterapi_README.md" target="_blank">https://github.com/sidharthanup/GD2_API/blob/master/testgen/glusterapi_README.md</a></div><div><br></div><div>The GD2 API python project will be merged into python-gluster-mgmt-client.</div><div><br></div><div>* Ansible modules (WIP):</div><div> - New module: Facts module for self-heal and rebalance. Devyani is working on these modules.</div><div> <a href="https://github.com/ansible/ansible/pull/45997" target="_blank">https://github.com/ansible/ansible/pull/45997</a> - self-heal</div><div> - Remove brick feature for gluster_ansible module:</div><div> <a href="https://github.com/ansible/ansible/pull/38269" target="_blank">https://github.com/ansible/ansible/pull/38269</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Is there any work planned for dynamic inventory (<a href="https://docs.ansible.com/ansible/2.5/dev_guide/developing_inventory.html">https://docs.ansible.com/ansible/2.5/dev_guide/developing_inventory.html</a>) ?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Peers, bricks and volumes are all good candidates for dynamic inventory.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><br></div><div>* Sheersha and Nigel are working on continuous integration, and PR is at:<br></div><div> - <a href="https://github.com/gluster/gluster-ansible-infra/pull/29" target="_blank">https://github.com/gluster/gluster-ansible-infra/pull/29</a></div><div> - <a href="https://github.com/gluster/gluster-ansible-infra/pull/26" target="_blank">https://github.com/gluster/gluster-ansible-infra/pull/26</a></div><div><br></div><div>The CI work is in progress and will be integrated soon. Which will help us to keep the repository</div><div>in stable condition.</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I recommend running ansible-lint in CI. For example:</div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif"></span><font face="arial, helvetica, sans-serif">[ykaul@ykaul gluster-ansible-infra]$ find . -name "*.yml" |xargs ansible-lint</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Syntax Error while loading YAML.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> did not find expected ',' or '}'</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">The error appears to have been in '/home/ykaul/github/gluster-ansible-infra/examples/backend_with_vdo.yml': line 22, column 8, but may</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">be elsewhere in the file depending on the exact syntax problem.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">The offending line appears to be:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> - {vgname: 'vg_sdb', thinpoolname: 'foo_thinpool', thinpoolsize: '100G', poolmetadatasize: '16G'</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> - {vgname: 'vg_sdc', thinpoolname: 'bar_thinpool', thinpoolsize: '500G', poolmetadatasize: '16G'</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> ^ here</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">This one looks easy to fix. It seems that there is a value started</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">with a quote, and the YAML parser is expecting to see the line ended</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">with the same kind of quote. For instance:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> when: "ok" in result.stdout</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Could be written as:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> when: '"ok" in result.stdout'</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Or equivalently:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> when: "'ok' in result.stdout"</font></div><div><br></div><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">(filed as <a href="https://github.com/gluster/gluster-ansible-infra/issues/30">https://github.com/gluster/gluster-ansible-infra/issues/30</a> )</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Y.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>Questions and feedback are welcome.<br></div><div><br></div><div>-sac<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-devel</a></blockquote></div></div></div></div></div>