This is a multi-part message in MIME format.
--------------F5C9A93834F58B72186C52DC
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Il 07/07/2017 23:21, Gianluca Cecchi ha scritto:
Il 07/Lug/2017 18:38, "Simone Marchioni"
<s.marchioni(a)lynx2000.it
<mailto:s.marchioni@lynx2000.it>> ha scritto:
Hi to all,
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.
Followed the following tutorial:
http://www.ovirt.org/blog/2017/04/up-and-running-with-ovirt-4.1-and-glust...
<
http://www.ovirt.org/blog/2017/04/up-and-running-with-ovirt-4.1-and-glust...
... snip ...
[script1]
action=execute
ignore_script_errors=no
file=/usr/share/ansible/gdeploy/scripts/grafton-sanity-check.sh -d
sdb -h ha1.domain.it <
http://ha1.domain.it>,ha2.domain.it
<
http://ha2.domain.it>,ha3.domain.it <
http://ha3.domain.it>
... snip ...
When I hit "Deploy" button the Deployment fails with the following
error:
PLAY [gluster_servers]
*********************************************************
TASK [Run a shell script]
******************************************************
fatal: [ha1.domain.it <
http://ha1.domain.it>]: FAILED! =>
{"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'"}
fatal: [ha2.domain.it <
http://ha2.domain.it>]: FAILED! =>
{"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'"}
fatal: [ha3.domain.it <
http://ha3.domain.it>]: FAILED! =>
{"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'"}
to retry, use: --limit @/tmp/tmpcV3lam/run-script.retry
PLAY RECAP
*********************************************************************
ha1.domain.it <
http://ha1.domain.it> : ok=0 changed=0
unreachable=0 failed=1
ha2.domain.it <
http://ha2.domain.it> : ok=0 changed=0
unreachable=0 failed=1
ha3.domain.it <
http://ha3.domain.it> : ok=0 changed=0
unreachable=0 failed=1
What I'm doing wrong? Maybe I need to initializa glusterfs in some
way...
What are the logs used to log the status of this deployment so I
can check the errors?
Thanks in advance!
Simone
_______________________________________________
Gdeploy uses ansible that seems to fail at its first step when
executing its shell module
http://docs.ansible.com/ansible/shell_module.html
In practice in my opinion the shell script defined by [script1]
(grafton-sanity-check.sh) above doesn't exit with a return code (rc)
for some reason...
Perhaps you have already done a partial step previously? or your
disks already contain a label?
Is it correct sdb as the target for your disk configuration for gluster?
I would try to reinitialize the disks, such as
dd if=/dev/zero of=/dev/sdb bs=1024k count=1
ONLY if it is correct that sdb is the disk to format for brick
filesystem..
Hih,
Gianluca
Hi Gianluca,
thanks for your reply.
I didn't do any previous step: the 3 servers are freshly installed.
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.
In /var/log/messages there is no error.
Hi,
Simone
--------------F5C9A93834F58B72186C52DC
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<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" <<a moz-do-not-send="true"
href="mailto:s.marchioni@lynx2000.it">s.marchioni@lynx2000.it</a>>
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....
rel="noreferrer"
target="_blank">http://www.ovirt.org/blog/2017<wbr>/04...
<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!
=>
{"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!
=>
{"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!
=>
{"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">htt...
</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>
--------------F5C9A93834F58B72186C52DC--