<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Il 07/Lug/2017 18:38, &quot;Simone Marchioni&quot; &lt;<a href="mailto:s.marchioni@lynx2000.it">s.marchioni@lynx2000.it</a>&gt; ha scritto:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi to all,<br>
<br>
I have an old installation of oVirt 3.3 with the Engine on a separate server. I wanted to test the last oVirt 4.1 with Gluster Storage and Hosted Engine.<br>
<br>
Followed the following tutorial:<br>
<br>
<a href="http://www.ovirt.org/blog/2017/04/up-and-running-with-ovirt-4.1-and-gluster-storage/" rel="noreferrer" target="_blank">http://www.ovirt.org/blog/2017<wbr>/04/up-and-running-with-ovirt-<wbr>4.1-and-gluster-storage/</a><br>
<br><br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>... snip ...<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[script1]<br>
action=execute<br>
ignore_script_errors=no<br>
file=/usr/share/ansible/gdeplo<wbr>y/scripts/grafton-sanity-<wbr>check.sh -d sdb -h <a href="http://ha1.domain.it" rel="noreferrer" target="_blank">ha1.domain.it</a>,<a href="http://ha2.domain.it" rel="noreferrer" target="_blank">ha2.domain.it</a>,<a href="http://ha3.domain.it" rel="noreferrer" target="_blank">ha<wbr>3.domain.it</a><br><br>... snip ...<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
When I hit &quot;Deploy&quot; button the Deployment fails with the following error:<br>
<br>
PLAY [gluster_servers] ******************************<wbr>***************************<br>
<br>
TASK [Run a shell script] ******************************<wbr>************************<br>
fatal: [<a href="http://ha1.domain.it" rel="noreferrer" target="_blank">ha1.domain.it</a>]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;The conditional check &#39;result.rc != 0&#39; failed. The error was: error while evaluating conditional (result.rc != 0): &#39;dict object&#39; has no attribute &#39;rc&#39;&quot;}<br>
fatal: [<a href="http://ha2.domain.it" rel="noreferrer" target="_blank">ha2.domain.it</a>]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;The conditional check &#39;result.rc != 0&#39; failed. The error was: error while evaluating conditional (result.rc != 0): &#39;dict object&#39; has no attribute &#39;rc&#39;&quot;}<br>
fatal: [<a href="http://ha3.domain.it" rel="noreferrer" target="_blank">ha3.domain.it</a>]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;The conditional check &#39;result.rc != 0&#39; failed. The error was: error while evaluating conditional (result.rc != 0): &#39;dict object&#39; has no attribute &#39;rc&#39;&quot;}<br>
    to retry, use: --limit @/tmp/tmpcV3lam/run-script.ret<wbr>ry<br>
<br>
PLAY RECAP ******************************<wbr>******************************<wbr>*********<br>
<a href="http://ha1.domain.it" rel="noreferrer" target="_blank">ha1.domain.it</a>            : ok=0    changed=0    unreachable=0 failed=1<br>
<a href="http://ha2.domain.it" rel="noreferrer" target="_blank">ha2.domain.it</a>            : ok=0    changed=0    unreachable=0 failed=1<br>
<a href="http://ha3.domain.it" rel="noreferrer" target="_blank">ha3.domain.it</a>            : ok=0    changed=0    unreachable=0 failed=1<br>
<br>
What I&#39;m doing wrong? Maybe I need to initializa glusterfs in some way...<br>
What are the logs used to log the status of this deployment so I can check the errors?<br>
<br>
Thanks in advance!<br>
Simone<br>
______________________________<wbr>_________________<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div>Gdeploy uses ansible that seems to fail at its first step when executing its shell module</div><div class="gmail_extra" dir="auto"><br></div><div class="gmail_extra" dir="auto"><a href="http://docs.ansible.com/ansible/shell_module.html">http://docs.ansible.com/ansible/shell_module.html</a><br></div></div><div class="gmail_extra" dir="auto"><br></div><div class="gmail_extra" dir="auto">In practice in my opinion the shell script defined by [script1] (<span style="font-family:sans-serif">grafton-sanity-</span><wbr style="font-family:sans-serif"><span style="font-family:sans-serif">check.sh) </span>above doesn&#39;t exit with a return code (rc) for some reason...</div><div class="gmail_extra" dir="auto">Perhaps you have already done a partial step previously?  or your disks already contain a label?</div><div class="gmail_extra" dir="auto">Is it correct sdb as the target for your disk configuration for gluster?</div><div class="gmail_extra" dir="auto">I would try to reinitialize the disks, such as</div><div class="gmail_extra" dir="auto"><br></div><div class="gmail_extra" dir="auto">dd if=/dev/zero of=/dev/sdb bs=1024k count=1</div><div class="gmail_extra" dir="auto"><br></div><div class="gmail_extra" dir="auto">ONLY if it is correct that sdb is the disk to format for brick filesystem..</div><div class="gmail_extra" dir="auto">Hih,</div><div class="gmail_extra" dir="auto">Gianluca </div></div>