oVirt / ovirt-ansible-collection

Ansible collection with official oVirt modules and roles
72 stars 90 forks source link

hosted_engine_setup tries to remove host using 'he_host_name' as 'vds_name' #693

Open jorti opened 1 year ago

jorti commented 1 year ago
SUMMARY

When deploying the hosted engine with a backup file, one of the SQL queries to remove the hosted-engine host is incorrect as it compares the vds_name with the host_name, which can be different.

IMO this line:

https://github.com/oVirt/ovirt-ansible-collection/blob/07b5897673ed68f6d4a3bbb6ec80d62ab389fecc/roles/hosted_engine_setup/tasks/restore_backup.yml#L51

should be:

    - { vds_type: 'host_name', input: "{{ he_host_name }}" }
COMPONENT NAME

hosted_engine_setup