<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Il 07/07/2017 23:21, Gianluca Cecchi ha
      scritto:<br>
    </div>
    <blockquote
cite="mid:CAG2kNCx5nzzinb6P4_x_RNESrEo=WBzKKPPk=nzTmT=ELNWv5Q@mail.gmail.com"
      type="cite">
      <div dir="auto">
        <div>
          <div class="gmail_extra">
            <div class="gmail_quote">Il 07/Lug/2017 18:38, "Simone
              Marchioni" &lt;<a moz-do-not-send="true"
                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 moz-do-not-send="true"
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 moz-do-not-send="true"
                  href="http://ha1.domain.it" rel="noreferrer"
                  target="_blank">ha1.domain.it</a>,<a
                  moz-do-not-send="true" href="http://ha2.domain.it"
                  rel="noreferrer" target="_blank">ha2.domain.it</a>,<a
                  moz-do-not-send="true" 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 "Deploy" 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 moz-do-not-send="true"
                  href="http://ha1.domain.it" rel="noreferrer"
                  target="_blank">ha1.domain.it</a>]: FAILED! =&gt;
                {"failed": true, "msg": "The conditional check
                'result.rc != 0' failed. The error was: error while
                evaluating conditional (result.rc != 0): 'dict object'
                has no attribute 'rc'"}<br>
                fatal: [<a moz-do-not-send="true"
                  href="http://ha2.domain.it" rel="noreferrer"
                  target="_blank">ha2.domain.it</a>]: FAILED! =&gt;
                {"failed": true, "msg": "The conditional check
                'result.rc != 0' failed. The error was: error while
                evaluating conditional (result.rc != 0): 'dict object'
                has no attribute 'rc'"}<br>
                fatal: [<a moz-do-not-send="true"
                  href="http://ha3.domain.it" rel="noreferrer"
                  target="_blank">ha3.domain.it</a>]: FAILED! =&gt;
                {"failed": true, "msg": "The conditional check
                'result.rc != 0' failed. The error was: error while
                evaluating conditional (result.rc != 0): 'dict object'
                has no attribute 'rc'"}<br>
                    to retry, use: --limit
                @/tmp/tmpcV3lam/run-script.ret<wbr>ry<br>
                <br>
                PLAY RECAP ******************************<wbr>******************************<wbr>*********<br>
                <a moz-do-not-send="true" href="http://ha1.domain.it"
                  rel="noreferrer" target="_blank">ha1.domain.it</a>   
                        : ok=0    changed=0    unreachable=0 failed=1<br>
                <a moz-do-not-send="true" href="http://ha2.domain.it"
                  rel="noreferrer" target="_blank">ha2.domain.it</a>   
                        : ok=0    changed=0    unreachable=0 failed=1<br>
                <a moz-do-not-send="true" 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'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 moz-do-not-send="true"
              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'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>
    </blockquote>
    <br>
    Hi Gianluca,<br>
    <br>
    thanks for your reply.<br>
    I didn't do any previous step: the 3 servers are freshly installed.<br>
    The disk was wrong: I had to use /dev/md128. Replaced sdb with the
    correct one and redeployed, but the error was exactly the same. The
    disks are already initialized because I created the XFS filesystem
    on /dev/md128 before the deploy.<br>
    <br>
    In /var/log/messages there is no error.<br>
    <br>
    Hi,<br>
    Simone<br>
  </body>
</html>