Hi Simone,
I accidentally ran this using DHCP, which I know is problematic on my network. I had previously run it using answer file parameter:
OVEHOSTED_VM/cloudinitVMStaticCIDR=str:<static_IP_address>
The same error occurred last time, but I’ll do so again and resend the full log.
Many thanks,
Brendan
From: Simone Tiraboschi <stirabos@redhat.com>
Sent: 23 October 2018 09:09
To: B Holmes <me@brendanh.com>
Cc: users <users@ovirt.org>
Subject: Re: [ovirt-users] Re: Diary of hosted engine install woes
OK,
according to this log file, the target engine VM didn't got an IPv4 address:
2018-10-22 21:22:23,360+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 engine_vm_ip_vdsm:
2018-10-22 21:22:24,062+0100 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:100 TASK [Fail if the Engine has no IP address]
2018-10-22 21:22:24,763+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 {u'msg': u'Engine VM has no IP address. Please check your network configuration', u'changed': False, u'_ansible_no_log': False}
2018-10-22 21:22:24,863+0100 ERROR otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:98 fatal: [localhost]: FAILED! => {"changed": false, "msg": "Engine VM has no IP address. Please check your network configuration"}
2018-10-22 21:22:25,365+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:180 ansible-playbook rc: 2
2018-10-22 21:22:25,365+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 PLAY RECAP [localhost] : ok: 82 changed: 31 unreachable: 0 skipped: 5 failed: 2
2018-10-22 21:22:25,365+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 PLAY RECAP [ovirt-engine.example.com] : ok: 11 changed: 6 unreachable: 0 skipped: 0 failed: 0
2018-10-22 21:22:25,365+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:187 ansible-playbook stdout:
2018-10-22 21:22:25,365+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:189 to retry, use: --limit @/usr/share/ovirt-hosted-engine-setup/ansible/create_target_vm.retry
2018-10-22 21:22:25,365+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:190 ansible-playbook stderr:
2018-10-22 21:22:25,366+0100 DEBUG otopi.context context._executeMethod:143 method exception
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in _executeMethod
method['method']()
File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-ansiblesetup/core/target_vm.py", line 214, in _closeup
r = ah.run()
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/ansible_utils.py", line 194, in run
raise RuntimeError(_('Failed executing ansible-playbook'))
RuntimeError: Failed executing ansible-playbook
2018-10-22 21:22:25,367+0100 ERROR otopi.context context._executeMethod:152 Failed to execute stage 'Closing up': Failed executing ansible-playbook
Are you sure that your DHCP server is properly working?
You can also connect to that VM with VNC to check what's going on.
On Mon, Oct 22, 2018 at 10:37 PM Brendan Holmes <me@brendanh.com> wrote:
Hi Simone,
Pls see attached the log without any of my variable-enumeration changes.
Many thanks,
Brendan
From: Simone Tiraboschi <stirabos@redhat.com>
Sent: 22 October 2018 13:33
To: B Holmes <me@brendanh.com>
Cc: users <users@ovirt.org>
Subject: Re: [ovirt-users] Re: Diary of hosted engine install woes
On Sun, Oct 21, 2018 at 11:50 PM Brendan Holmes <me@brendanh.com> wrote:
Hi Simone,
Sorry for late response, I’ve been unwell. Attached is the whole log you requested. I hope it reveals why variable “local_vm_ip.stdout_lines” is not being populated.
Hi,
according to your log file the deployment was successful:
at this point I can only suggest again to simply run the vanilla code without any custom patch.
From: Simone Tiraboschi <stirabos@redhat.com>
Sent: 15 October 2018 04:49On Sun, Oct 14, 2018 at 6:08 AM Brendan Holmes <me@brendanh.com> wrote:
Hi Simone,
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to have been in '/usr/share/ovirt-hosted-engine-setup/ansible/create_target_vm.yml': line 396, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n changed_when: True\n - name: Clean /etc/hosts on the host\n ^ here\n"}
I think that this is just an error in the clean up on failures phase due to something bad before.
Can you please attach the whole deployment log from /var/log/ovirt-hosted-engine/hosted-engine.log ?