<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 14, 2018 at 2:11 AM, Jamie Lawrence <span dir="ltr"><<a href="mailto:jlawrence@squaretrade.com" target="_blank">jlawrence@squaretrade.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I'm seeing the hosted engine install fail on an Ansible playbook step. Log below. I tried looking at the file specified for retry, below (/usr/share/ovirt-hosted-<wbr>engine-setup/ansible/<wbr>bootstrap_local_vm.retry); it contains the word, 'localhost'.<br>
<br>
The log below didn't contain anything I could see that was actionable; given that it was an ansible error, I hunted down the config and enabled logging. On this run the error was different - the installer log was the same, but the reported error (from the installer changed).<br>
<br>
The first time, the installer said:<br>
<br>
[ INFO ] TASK [Wait for the host to become non operational]<br>
[ ERROR ] fatal: [localhost]: FAILED! => {"ansible_facts": {"ovirt_hosts": []}, "attempts": 150, "changed": false}<br>
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook<br>
[ INFO ] Stage: Clean up<br></blockquote><div><br></div><div>'localhost' here is not an issue by itself: the playbook is executed on the host against the same host over a local connection so localhost is absolutely fine there.</div><div><br></div><div>Maybe you hit this one:</div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1540451">https://bugzilla.redhat.com/show_bug.cgi?id=1540451</a><br></div><div><br></div><div>It seams NetworkManager related but still not that clear.</div><div>Stopping NetworkManager and starting network before the deployment seams to help.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
Second:<br>
<br>
[ INFO ] TASK [Get local vm ip]<br>
[ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 50, "changed": true, "cmd": "virsh -r net-dhcp-leases default | grep -i 00:16:3e:11:e7:bd | awk '{ print $5 }' | cut -f1 -d'/'", "delta": "0:00:00.093840", "end": "2018-02-13 16:53:08.658556", "rc": 0, "start": "2018-02-13 16:53:08.564716", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}<br>
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook<br>
[ INFO ] Stage: Clean up<br>
<br>
<br>
<br>
Ansible log below; as with that second snippet, it appears that it was trying to parse out a host name from virsh's list of DHCP leases, couldn't, and died.<br>
<br>
Which makes sense: I gave it a static IP, and unless I'm missing something, setup should not have been doing that. I verified that the answer file has the IP:<br>
<br>
OVEHOSTED_VM/<wbr>cloudinitVMStaticCIDR=str:<a href="http://10.181.26.150/24" rel="noreferrer" target="_blank">10.<wbr>181.26.150/24</a><br>
<br>
Anyone see what is wrong here?<br></blockquote><div><br></div><div>This is absolutely fine.</div><div>The new ansible based flow (also called node zero) uses an engine running on a local virtual machine to bootstrap the system.</div><div>The bootstrap local VM runs over libvirt default natted network with its own dhcp instance, that's why we are consuming it.</div><div>The locally running engine will create a target virtual machine on the shared storage and that one will be instead configured as you specified.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-j<br>
<br>
<br>
hosted-engine --deploy log:<br>
<br>
2018-02-13 16:20:32,138-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 TASK [Force host-deploy in offline mode]<br>
2018-02-13 16:20:33,041-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 changed: [localhost]<br>
2018-02-13 16:20:33,342-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 TASK [include_tasks]<br>
2018-02-13 16:20:33,443-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 ok: [localhost]<br>
2018-02-13 16:20:33,744-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 TASK [Obtain SSO token using username/password credentials]<br>
2018-02-13 16:20:35,248-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 ok: [localhost]<br>
2018-02-13 16:20:35,550-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 TASK [Add host]<br>
2018-02-13 16:20:37,053-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 changed: [localhost]<br>
2018-02-13 16:20:37,355-0800 INFO otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>100 TASK [Wait for the host to become non operational]<br>
2018-02-13 16:27:48,895-0800 DEBUG otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>94 {u'_ansible_parsed': True, u'_ansible_no_log': False, u'changed': False, u'attempts': 150, u'invocation': {u'module_args': {u'pattern': u'name=<a href="http://ovirt-1.squaretrade.com" rel="noreferrer" target="_blank">ovirt-1.squaretrade.com</a><wbr>', u'fetch_nested': False, u'nested_attributes': []}}, u'ansible_facts': {u'ovirt_hosts': []}}<br>
2018-02-13 16:27:48,995-0800 ERROR otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>98 fatal: [localhost]: FAILED! => {"ansible_facts": {"ovirt_hosts": []}, "attempts": 150, "changed": false}<br>
2018-02-13 16:27:49,297-0800 DEBUG otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>94 PLAY RECAP [localhost] : ok: 42 changed: 17 unreachable: 0 skipped: 2 failed: 1<br>
2018-02-13 16:27:49,397-0800 DEBUG otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils._process_output:<wbr>94 PLAY RECAP [<a href="http://ovirt-engine-1.squaretrade.com" rel="noreferrer" target="_blank">ovirt-engine-1.squaretrade.<wbr>com</a>] : ok: 15 changed: 8 unreachable: 0 skipped: 4 failed: 0<br>
2018-02-13 16:27:49,498-0800 DEBUG otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils.run:180 ansible-playbook rc: 2<br>
2018-02-13 16:27:49,498-0800 DEBUG otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils.run:187 ansible-playbook stdout:<br>
2018-02-13 16:27:49,499-0800 DEBUG otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils.run:189 to retry, use: --limit @/usr/share/ovirt-hosted-<wbr>engine-setup/ansible/<wbr>bootstrap_local_vm.retry<br>
<br>
2018-02-13 16:27:49,499-0800 DEBUG otopi.ovirt_hosted_engine_<wbr>setup.ansible_utils ansible_utils.run:190 ansible-playbook stderr:<br>
2018-02-13 16:27:49,500-0800 DEBUG otopi.context context._executeMethod:143 method exception<br>
Traceback (most recent call last):<br>
File "/usr/lib/python2.7/site-<wbr>packages/otopi/context.py", line 133, in _executeMethod<br>
method['method']()<br>
File "/usr/share/ovirt-hosted-<wbr>engine-setup/scripts/../<wbr>plugins/gr-he-ansiblesetup/<wbr>core/misc.py", line 186, in _closeup<br>
r = ah.run()<br>
File "/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>setup/ansible_utils.py", line 194, in run<br>
raise RuntimeError(_('Failed executing ansible-playbook'))<br>
RuntimeError: Failed executing ansible-playbook<br>
2018-02-13 16:27:49,512-0800 ERROR otopi.context context._executeMethod:152 Failed to execute stage 'Closing up': Failed executing ansible-playbook<br>
2018-02-13 16:27:49,513-0800 DEBUG otopi.context context.dumpEnvironment:859 ENVIRONMENT DUMP - BEGIN<br>
<br>
<br>
- - - - - -<br>
<br>
ansible log snip:<br>
<br>
2018-02-13 16:52:47,548 ovirt-hosted-engine-setup-<wbr>ansible ansible on_any args (<ansible.executor.task_<wbr>result.TaskResult object at 0x7f00dc19f850>,) kwargs {}<br>
2018-02-13 16:52:58,124 ovirt-hosted-engine-setup-<wbr>ansible ansible on_any args (<ansible.executor.task_<wbr>result.TaskResult object at 0x2a09310>,) kwargs {}<br>
2018-02-13 16:53:08,954 ovirt-hosted-engine-setup-<wbr>ansible var changed: host "localhost" var "local_vm_ip" type "<type 'dict'>" value: "{'stderr_lines': [], u'changed': True, u'end': u'2018-02-13 16:53:08.658556', u'stdout': u'', u'cmd': u"virsh -r net-dhcp-leases default | grep -i 00:16:3e:11:e7:bd | awk '{ print $5 }' | cut -f1 -d'/'", u'rc': 0, u'start': u'2018-02-13 16:53:08.564716', 'attempts': 50, u'stderr': u'', u'delta': u'0:00:00.093840', 'stdout_lines': [], 'failed': True}"<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>