Description of problem: Gluster deployment wizard fails on "Check if provided hostnames are valid" Version-Release number of selected component (if applicable): ovirt-node-ng-4.4.0-0.20200109.0 How reproducible: Same result when running wizard on any of the three nodes. Steps to Reproduce: 1. Set up 3 oVirt nodes 2. Set up ssh-key on node 1 and copy to other nodes 3. Connect to admin console on node 1 and run hyperconverged deployment wizard Actual results: TASK [Check if provided hostnames are valid] *********************************** task path: /usr/share/cockpit/ovirt-dashboard/ansible/hc_wizard.yml:29 fatal: [ovirt1.mylab]: FAILED! => {"msg": "The conditional check 'result.results[0]['stdout_lines'] > 0' failed. The error was: Unexpected templating type error occurred on ({% if result.results[0]['stdout_lines'] > 0 %} True {% else %} False {% endif %}): '>' not supported between instances of 'list' and 'int'"} fatal: [ovirt3.mylab]: FAILED! => {"msg": "The conditional check 'result.results[0]['stdout_lines'] > 0' failed. The error was: Unexpected templating type error occurred on ({% if result.results[0]['stdout_lines'] > 0 %} True {% else %} False {% endif %}): '>' not supported between instances of 'list' and 'int'"} fatal: [ovirt2.mylab]: FAILED! => {"msg": "The conditional check 'result.results[0]['stdout_lines'] > 0' failed. The error was: Unexpected templating type error occurred on ({% if result.results[0]['stdout_lines'] > 0 %} True {% else %} False {% endif %}): '>' not supported between instances of 'list' and 'int'"} Expected results: Hostnames are valid Additional info: -on ovirt1 node: # getent ahosts ovirt1.mylab 10.10.1.32 STREAM localhost 10.10.1.32 DGRAM 10.10.1.32 RAW # getent ahosts ovirt2.mylab 10.10.1.34 STREAM ovirt2.mylab 10.10.1.34 DGRAM 10.10.1.34 RAW # getent ahosts ovirt3.mylab 10.10.1.35 STREAM ovirt3.mylab 10.10.1.35 DGRAM 10.10.1.35 RAW
Edit: 10.10.1.32 STREAM localhost is actually 10.10.1.32 STREAM ovirt1.mylab (I was testing different /etc/hosts configurations at the time to try and fix the problem and pasted the wrong output)
Affects me too. I changed - "result.results[0]['stdout_lines'] > 0" to - "result.results[0]['stdout_lines']|length > 0" at /usr/share/cockpit/ovirt-dashboard/ansible/hc_wizard.yml:29.
Issue is fixed in https://gerrit.ovirt.org/#/c/106890/ patch
*** Bug 1806298 has been marked as a duplicate of this bug. ***
Tested with cockpit-ovirt-dashboard-0.14.3 HC deployment ( only gluster deployment ) is successful with ovirt-ng node 4.4 based on el8.2
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020. Since the problem described in this bug report should be resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.