I am having issues while trying to deploy an automated HC install
================================
ansible 2.8.2
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 
(Red Hat 4.8.5-36)]


Ovirt node = 4.3.5 or 4.3.5


1.- Followed the procedure listed in the following link:
https://access.redhat.com/documentation/en-us/red_hat_hyperconverged_infrastructure_for_virtualization/1.6/html/automating_rhhi_for_virtualization_deployment/setting-deployment-variables

2.-Ran the playbook within Path: 
/etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment:
ansible-playbook -i gluster_inventory.yml hc_deployment.yml 
--extra-vars='@he_gluster_vars.json'

3.-Json file
[root@host1 hc-ansible-deployment]# cat he_gluster_vars.json
{
  "he_appliance_password": "changeme",
  "he_admin_password": "changeme",
  "he_domain_type": "glusterfs",
  "he_fqdn": "ovirt-engine.example.com",
  "he_vm_mac_addr": "00:16:fe:05:e1:ee",
  "he_default_gateway": "10.10.10.1",
  "he_mgmt_network": "ovirtmgmt",
  "he_ansible_host_name": "host1.example.com",
  "he_storage_domain_name": "HostedEngine",
  "he_storage_domain_path": "/engine",
  "he_storage_domain_addr": "vmm10.virt.aid3p",
  "he_mount_options": 
"backup-volfile-servers=host2.example.com:host3.example.com",
  "he_bridge_if": "eno49",
  "he_enable_hc_gluster_service": true,
  "he_mem_size_MB": "32768",
  "he_cluster": "Default",
}

Error:
task path: 
/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml:8
fatal: [localhost]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error 
was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 
'he_host_ip'\n\nThe error appears to be in 
'/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml':
 line 8, column 5, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n      timeout: 180\n  - 
name: Add an entry for this host on /etc/hosts on the local VM\n    ^ here\n"
}


task path: 
/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml:8
fatal: [localhost]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error 
was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 
'he_host_ip'\n\nThe error appears to be in 
'/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml':
 line 8, column 5, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n      timeout: 180\n  - 
name: Add an entry for this host on /etc/hosts on the local VM\n    ^ here\n"
}


task path: 
/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml:57
fatal: [localhost]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error 
was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 
'he_local_vm_dir'\n\nThe error appears to be in 
'/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml':
 line 57, column 7, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n      delegate_to: \"{{ 
he_ansible_host_name }}\"\n    - name: Get local VM dir path\n      ^ here\n"
}
PLAY RECAP 
******************************************************************************************************************************************************************************
localhost                  : ok=184  changed=56   unreachable=0    failed=2    
skipped=65   rescued=0    ignored=0   
host1.example.com           : ok=34   changed=17   unreachable=0    failed=0    
skipped=70   rescued=0    ignored=0   
host2.example.com           : ok=37   changed=20   unreachable=0    failed=0    
skipped=100  rescued=0    ignored=0   
host3.example.com           : ok=34   changed=17   unreachable=0    failed=0    
skipped=70   rescued=0    ignored=0   

So it seems that for some strange reason it is not getting the correct 
he_host_ip and  he_local_vm_dir.

has anybody else encountered this error?

-Adrian
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/737OW75GZGPLXNSOKGUVQB7ZXRCG4FJP/

Reply via email to