hosted-engine --deploy --restore-from-file fails to complete

Solution Unverified - Updated -

Issue

hosted-engine --deploy --restore-from-file fails to complete with the following errors:

2019-03-15 12:56:08,181-0400 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:100 TASK [Wait for the host to be up]
2019-03-15 13:06:45,132-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 {u'_ansible_parsed': True, u'_ansible_no_log': False, u'changed': False, u'attempts': 120, u'invocation': {u'module_args': {u'all_content': False, u'pattern': u'name=example.com', u'fetch_nested': False, u'nested_attributes': []}}, u'ansible_facts': {u'ovirt_hosts': []}}
2019-03-15 13:06:45,232-0400 ERROR otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:98 fatal: [localhost]: FAILED! => {"ansible_facts": {"ovirt_hosts": []}, "attempts": 120, "changed": false}
...
2019-03-15 13:07:20,692-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 rm_localvm_dir: {'failed': False, u'state': u'absent', u'changed': True, u'diff': {u'after': {u'path': u'/var/tmp/localvmO_gYOl', u'state': u'absent'}, u'before': {u'path': u'/var/tmp/localvmO_gYOl', u'state': u'directory'}}, u'path':u'/var/tmp/localvmO_gYOl'}
2019-03-15 13:07:21,093-0400 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:100 TASK [Remove temporary entry in /etc/hosts for the local VM]
2019-03-15 13:07:21,594-0400 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:100 changed: [localhost]
2019-03-15 13:07:21,994-0400 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:100 TASK [Notify the user about a failure]
2019-03-15 13:07:22,295-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 {u'msg': u'The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch.\n', u'changed': False, u'_ansible_no_log': False}
2019-03-15 13:07:22,395-0400 ERROR otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:98 fatal: [localhost]: FAILED! => {"changed": false, "msg": "The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch.\n"}
2019-03-15 13:07:22,596-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:180 ansible-playbook rc: 2
2019-03-15 13:07:22,596-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 PLAY RECAP [example.com] : ok: 41 changed: 23 unreachable: 0 skipped: 3 failed: 0
2019-03-15 13:07:22,596-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 PLAY RECAP [localhost] : ok: 90 changed: 31 unreachable: 0 skipped: 14 failed: 2
2019-03-15 13:07:22,596-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:187 ansible-playbook stdout:
2019-03-15 13:07:22,596-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:189 Pausing for 10 seconds

2019-03-15 13:07:22,597-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:189 (ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)

2019-03-15 13:07:22,597-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:189  to retry, use: --limit @/usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.retry

2019-03-15 13:07:22,597-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:190 ansible-playbook stderr:
2019-03-15 13:07:22,597-0400 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/misc.py", line 296, 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
2019-03-15 13:07:22,598-0400 ERROR otopi.context context._executeMethod:152 Failed to execute stage 'Closing up': Failed executing ansible-playbook
...
2019-03-15 13:07:40,038-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 {u'msg': u"The task includes an option with an undefined variable. The error was: 'local_vm_disk_path' is undefined\n\nThe error appears to have been in '/usr/share/ovirt-hosted-engine-setup/ansible/fetch_engine_logs.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    seconds: 10\n- name: Copy engine logs\n  ^ here\n", u'_ansible_no_log': False}
2019-03-15 13:07:40,139-0400 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:94 ignored: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'local_vm_disk_path' is undefined\n\nThe error appears to have been in '/usr/share/ovirt-hosted-engine-setup/ansible/fetch_engine_logs.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    seconds: 10\n- name: Copy engine logs\n  ^ here\n"}

Environment

  • RHV 4.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content