Hi,
On Tue, Dec 31, 2019 at 6:38 AM <realapyo(a)gmail.com> wrote:
Hi,
I have encountered the same error that results in the failure of hosted engine
deployment. I have tried to replace "ovirt_host_facts" by
"ovirt_host_info" in
/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/05_add_host.yml
however it did not help with the following error message:
2019-12-31 11:23:27,595+0900 INFO otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:109 TASK [ovirt.hosted_engine_setup : Wait for the host to
be up]
2019-12-31 11:23:28,997+0900 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:103 {u'msg': u"The conditional check
'host_result_up_check is succeeded and
host_result_up_check.ansible_facts.ovirt_hosts|length >= 1 and (
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'up' or
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'non_operational'
)' failed. The error was: error while evaluating conditional (host_result_up_check is
succeeded and host_result_up_check.ansible_facts.ovirt_hosts|length >= 1 and (
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'up' or
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'non_operational' )):
'dict object' has no attribute 'ansible_facts'",
u'_ansible_no_log': False}
2019-12-31 11:23:29,098+0900 ERROR otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:107 fatal: [localhost]: FAILED! => {"msg":
"The conditional check 'host_result_up_check is succeeded and
host_result_up_check.ansible_facts.ovirt_hosts|length >= 1 and (
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'up' or
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'non_operational'
)' failed. The error was: error while evaluating conditional (host_result_up_check is
succeeded and host_result_up_check.ansible_facts.ovirt_hosts|length >= 1 and (
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'up' or
host_result_up_check.ansible_facts.ovirt_hosts[0].status == 'non_operational' )):
'dict object' has no attribute 'ansible_facts'"}
According to the latest doc of Ansible (2.9) regarding "ovirt_host_facts", it
is deprecated and one should use "ovirt_host_info" instead as you can refer
here:
https://docs.ansible.com/ansible/latest/modules/ovirt_host_facts_module.html
As I said previously in this thread, this is indeed a bug. Please open
one, and attach all relevant logs, versions of packages, repos used to
install them, etc. Thanks!
That said, it did not happen for me, for some reason. I got e.g. this,
in bootstrap_local_vm log:
2019-12-22 10:31:29,411+0200 DEBUG var changed: host "localhost" var
"host_result_up_check" type "<class 'dict'>" value:
"{
"ansible_facts": {
"ovirt_hosts": [
...
"deprecations": [
{
"msg": "The 'ovirt_host_facts' module has been renamed
to
'ovirt_host_info', and the renamed one no longer returns
ansible_facts",
"version": "2.13"
}
],
"failed": false
}"
I also see the same for latest nightly 4.3 CI test:
https://jenkins.ovirt.org/job/ovirt-system-tests_he-basic-suite-4.3/301/
https://jenkins.ovirt.org/job/ovirt-system-tests_he-basic-suite-4.3/301/a...
And one of the requirements to use "ovirt_host_info" is
"ovirt-engine-sdk-python >= 4.3.0" however in my installation, the installed
package is "python-ovirt-engine-sdk4 (4.3.2-2.el7)" instead of
"ovirt-engine-sdk-python". The "ovirt-engine-sdk-python" package is
available however the version is 3.6.9.1-1.el7.
This should be ok.
I have been trying to install the latest oVirt (based in 4.3 repository) and
hyperconverged mode using 3 nodes. Tried already with cockpit installation and now
debugging it by using CLI installation.
Is this a bug or is there already a fix?
I am not aware of a fix yet. One should probably not be that hard to
prepare, but I need to first reproduce. I wonder if your (and others')
problem is elsewhere.
Best regards,
--
Didi