Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1890369

Summary: IndexError: list index out of range when trigger hosted engine OVF update and enable the serial console
Product: [oVirt] cockpit-ovirt Reporter: Wei Wang <weiwang>
Component: Hosted EngineAssignee: Aviv Turgeman <aturgema>
Status: CLOSED DUPLICATE QA Contact: Wei Wang <weiwang>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 0.14.11CC: arachman, bugs, cshao, mavital, nlevy, peyu, sbonazzo, shlei, weiwang, yaniwang
Target Milestone: ---Keywords: TestBlocker
Target Release: ---Flags: weiwang: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-22 06:30:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
issue log files
none
issue picture none

Description Wei Wang 2020-10-22 02:23:37 UTC
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:

Comment 1 Wei Wang 2020-10-22 02:26:56 UTC
Created attachment 1723385 [details]
issue picture

Comment 2 Asaf Rachmani 2020-10-22 06:30:35 UTC

*** This bug has been marked as a duplicate of bug 1882451 ***