Created attachment 1723384 [details] issue log files Description of problem: During hosted engine deploying, IndexError occurs when trigger hosted engine OVF update and enable the serial console as: IndexError: list index out of range. Hosted engine deploys failed. [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Trigger hosted engine OVF update and enable the serial console] [ ERROR ] IndexError: list index out of range [ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "list index out of range"} ovirt-hosted-engine-setup-ansible-create_target_vm-20201022075907-814d0s.log 2020-10-22 08:01:18,684+0800 ERROR ansible failed { "ansible_host": "localhost", "ansible_playbook": "/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml", "ansible_result": { "_ansible_no_log": false, "changed": false, "exception": "Traceback (most recent call last):\n File \"/tmp/ansible_ovirt_vm_payload_d5hamody/ansible_ovirt_vm_payload.zip/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_vm.py\", line 2571, in main\n File \"/tmp/ansible_ovirt_vm_payload_d5hamody/ansible_ovirt_vm_payload.zip/ansible_collections/**FILTERED**/rhv/plugins/module_utils/ovirt.py\", line 600, in create\n new_entity = self.build_entity()\n File \"/tmp/ansible_ovirt_vm_payload_d5hamody/ansible_ovirt_vm_payload.zip/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_vm.py\", line 1444, in build_entity\n File \"/tmp/ansible_ovirt_vm_payload_d5hamody/ansible_ovirt_vm_payload.zip/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_vm.py\", line 1379, in __get_template_with_version\nIndexError: list index out of range\n", Version-Release number of selected component (if applicable): RHVH-4.4-20201020.5-RHVH-x86_64-dvd1.iso cockpit-system-224.2-1.el8.noarch subscription-manager-cockpit-1.27.16-1.el8.noarch cockpit-dashboard-224.2-1.el8.noarch cockpit-storaged-224.2-1.el8.noarch cockpit-bridge-224.2-1.el8.x86_64 cockpit-224.2-1.el8.x86_64 cockpit-ovirt-dashboard-0.14.11-1.el8ev.noarch cockpit-ws-224.2-1.el8.x86_64 ovirt-hosted-engine-setup-2.4.7-2.el8ev.noarch ovirt-hosted-engine-ha-2.4.5-1.el8ev.noarch rhvm-appliance-4.4-20200915.0.el8ev.x86_64 How reproducible: 100% Steps to Reproduce: 1. Deploy hosted engine with nfs storage via cockpit UI 2. 3. Actual results: IndexError occurs as IndexError: list index out of range when trigger hosted engine OVF update and enable the serial console Hosted engine deploys failed. Expected results: Hosted engine deploy successfully without error Additional info:
Created attachment 1723385 [details] issue picture
*** This bug has been marked as a duplicate of bug 1882451 ***