Hi John,
I am seeing error:
TASK [ovirt.hosted_engine_setup : Get local VM dir path]
*****************************************************************************************
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"
}
Adding @Simone Tiraboschi <stirabos(a)redhat.com>
Simone do we need to explicitly specify he_local_vm_dir ?
In gluster_inventory you can't mention other hosts and SD informations to
auto add. For that you need to create separate file under:
/usr/share/ovirt-hosted-engine-setup/gdeploy-inventory.yml
and add entries there like:
gluster:
hosts:
host2:
host3:
vars:
storage_domains:
[{"name":"data","host":"host1","address":"host1","path":"/data","mount_options":"backup-volfile-servers=host2:host3"},{"name":"vmstore","host":"host1","address":"host1","path":"/vmstore","mount_options":"backup-volfile-servers=host2:host3"}]
Then hook will automatically read this file and perform action accordingly.
On Tue, Jan 7, 2020 at 11:53 AM John Call <jcall(a)redhat.com> wrote:
Hi Gobinda, ovirt-users,
I think I'm close, but I'm running into a timeout/error when the
ovirt.hosted-engine-setup tasks try to connect to the new
"HostedEngineLocal" VM. It seems to complain about host_key_checking. I
disabled that via ansible.cfg, but it fails on the next task (see short
logs.) Do you see anything obviously wrong in my inventory and json
files? I've attached the verbose playbook logs when I run this from the
first HCI host...
[root@rhhi1 hc-ansible-deployment]# pwd
/etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
[root@rhhi1 hc-ansible-deployment]# ansible-playbook -b -vvv -i
gluster_inventory.yml hc_deployment.yml
--extra-vars='(a)he_gluster_vars.json' | tee playbook.logs
Thank you,
John Call
Red Hat - Storage Domain Architect
jcall(a)redhat.com
(714) 267-8802
On Wed, Dec 11, 2019 at 11:09 PM Gobinda Das <godas(a)redhat.com> wrote:
> Hi John,
> You need to specify storage-fqdn(Which should mapped to storage
> network) and ovirtmgmt-fqdn (Which should mapped to frontend network) like
> this:
> hc_nodes:
> hosts:
> host1-STORAGE-fqdn:
> host2-STORAGE-fqdn:
> host3-STORAGE-fqdn:
> vars:
> cluster_nodes:
> - host1-STORAGE-fqdn
> - host2-STORAGE-fqdn
> - host3-STORAGE-fqdn
> gluster_features_hci_cluster: "{{ cluster_nodes }}"
>
> gluster:
> host2-ovirtmgmt-fqdn:
> host3-ovirtmgmt-fqdn:
> storage_domains:
>
[{"name":"data","host":"host1-STORAGE-fqdn","address":"host1-STORAGE-fqdn","path":"/data","mount_options":"backup-volfile-servers=host2-STORAGE-fqdn:host3-STORAGE-fqdn"},{"name":"vmstore","host":"host1-STORAGE-fqdn","address":"host1-STORAGE-fqdn","path":"/vmstore","mount_options":"backup-volfile-servers=host2-STORAGE-fqdn:host3-STORAGE-fqdn"}]
>
>
> On Thu, Dec 12, 2019 at 2:47 AM John Call <jcall(a)redhat.com> wrote:
>
>> Hi ovirt-users,
>>
>> I'm trying to automate my HCI deployment, but can't figure out how to
>> specify multiple network interfaces in gluster_inventory.yml. My servers
>> have two NICs, one for ovirtmgmt (and everything else), and the other is
>> just for Gluster. How should I populate the inventory/vars file? Is this
>> correct?
>>
>> [root@rhhi1 hc-ansible-deployment]# pwd
>> /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
>>
>> [root@rhhi1 hc-ansible-deployment]# cat gluster_inventory.yml
>> --lots of stuff omitted--
>> hc_nodes:
>> hosts:
>> host1-STORAGE-fqdn:
>> host2-STORAGE-fqdn:
>> host3-STORAGE-fqdn:
>> vars:
>> cluster_nodes:
>> - host1-ovirtmgmt-fqdn
>> - host2-ovirtmgmt-fqdn
>> - host3-ovirtmgmt-fqdn
>> gluster_features_hci_cluster: "{{ cluster_nodes }}"
>>
>> gluster:
>> host2-STORAGE-fqdn:
>> host3-STORAGE-fqdn:
>> storage_domains:
>>
[{"name":"data","host":"host1-STORAGE-fqdn","address":"host1-STORAGE-fqdn","path":"/data","mount_options":"backup-volfile-servers=host2-STORAGE-fqdn:host3-STORAGE-fqdn"},{"name":"vmstore","host":"host1-STORAGE-fqdn","address":"host1-STORAGE-fqdn","path":"/vmstore","mount_options":"backup-volfile-servers=host2-STORAGE-fqdn:host3-STORAGE-fqdn"}]
>> _______________________________________________
>> Users mailing list -- users(a)ovirt.org
>> To unsubscribe send an email to users-leave(a)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/TEAHUX6LSPM...
>>
>
>
> --
>
>
> Thanks,
> Gobinda
>