I have tested this setup leveraging NFS rather than gluster and am receiving 
the same error on the ansible step when guestfish injects the network 
information into the hosted engine.  

The ovirt ansible final clean log shows: 
        "msg": "The task includes an option with an undefined variable. The 
error was: 'local_vm_ip' is undefined\n\nThe error appears to be in 
'/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/sync_on_engine_machine.yml':
 line 2, column 3, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Set the 
name for add_host\n  ^ here\n"

The ansible script is: 

  1 ---
      2 - name: Set the name for add_host
      3   set_fact:
      4     he_fqdn_ansible_host: "{{ local_vm_ip.stdout_lines[0] }}"
      5 - name: Register the engine VM as an ansible host
      6   import_tasks: add_engine_as_ansible_host.yml
      7 - name: Sync on engine machine
      8   command: sync
      9   changed_when: true
     10   ignore_errors: true
     11   ignore_unreachable: true
     12   delegate_to: "{{ groups.engine[0] }}"
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/PZFHJHY3LZ3IKB3VEH4M5NOJHJLJHTEK/

Reply via email to