[Gluster-users] gdeploy: Should fail with unreachable nodes...

hvjunk hvjunk at gmail.com
Tue May 9 12:55:10 UTC 2017


Hi there,

I noticed that, if a node isn’t reachable, then gdeploy just (blindly) continue to try and play the rest of the deployment stuff on it ;(

ie.
<quote>
[root at linked-clone-of-centos-linux ~]# gdeploy -c t.conf -k

PLAY [gluster_servers] *************************************************************************************

TASK [Clean up filesystem signature] ***********************************************************************
skipping: [10.10.10.12] => (item=/dev/sdb)
skipping: [10.10.10.11] => (item=/dev/sdb)
skipping: [10.10.10.13] => (item=/dev/sdb)

TASK [Create Physical Volume] ******************************************************************************
fatal: [10.10.10.12]: UNREACHABLE! => {"changed": false, "msg": "All items completed", "results": [{"_ansible_item_result": true, "item": "/dev/sdb", "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.10.10.12 port 22: Connection timed out\r\n", "unreachable": true}]}
failed: [10.10.10.12] (item=/dev/sdb) => {"item": "/dev/sdb", "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.10.10.12 port 22: Connection timed out\r\n", "unreachable": true}
fatal: [10.10.10.11]: UNREACHABLE! => {"changed": false, "msg": "All items completed", "results": [{"_ansible_item_result": true, "item": "/dev/sdb", "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.10.10.11 port 22: Connection timed out\r\n", "unreachable": true}]}
failed: [10.10.10.11] (item=/dev/sdb) => {"item": "/dev/sdb", "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.10.10.11 port 22: Connection timed out\r\n", "unreachable": true}
fatal: [10.10.10.13]: UNREACHABLE! => {"changed": false, "msg": "All items completed", "results": [{"_ansible_item_result": true, "item": "/dev/sdb", "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.10.10.13 port 22: Connection timed out\r\n", "unreachable": true}]}
failed: [10.10.10.13] (item=/dev/sdb) => {"item": "/dev/sdb", "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.10.10.13 port 22: Connection timed out\r\n", "unreachable": true}
	to retry, use: --limit @/tmp/tmpLzfSZ8/pvcreate.retry

PLAY RECAP *************************************************************************************************
10.10.10.11                : ok=0    changed=0    unreachable=1    failed=0
10.10.10.12                : ok=0    changed=0    unreachable=1    failed=0
10.10.10.13                : ok=0    changed=0    unreachable=1    failed=0

Ignoring errors...
<quote>

and then it continues with loads of errors instead of failing at this stage/point




More information about the Gluster-users mailing list