Bug 1890369 - IndexError: list index out of range when trigger hosted engine OVF update and enable the serial console
Summary: IndexError: list index out of range when trigger hosted engine OVF update and...
Keywords:
Status: CLOSED DUPLICATE of bug 1882451
Alias: None
Product: cockpit-ovirt
Classification: oVirt
Component: Hosted Engine
Version: 0.14.11
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Aviv Turgeman
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-22 02:23 UTC by Wei Wang
Modified: 2020-11-14 04:22 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-22 06:30:35 UTC
oVirt Team: Node
Embargoed:
weiwang: testing_ack+


Attachments (Terms of Use)
issue log files (3.66 MB, application/gzip)
2020-10-22 02:23 UTC, Wei Wang
no flags Details
issue picture (128.17 KB, image/png)
2020-10-22 02:26 UTC, Wei Wang
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.