Bug 1556866 - The deployment fails on create_storage_domain stage
Summary: The deployment fails on create_storage_domain stage
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: cockpit-ovirt
Classification: oVirt
Component: Hosted Engine
Version: 0.11.17
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.2.2
: ---
Assignee: Simone Tiraboschi
QA Contact: Yihui Zhao
URL:
Whiteboard:
: 1556885 (view as bug list)
Depends On: 1558036
Blocks: 1540621 1555365 1557480
TreeView+ depends on / blocked
 
Reported: 2018-03-15 11:53 UTC by Simone Tiraboschi
Modified: 2018-03-29 11:20 UTC (History)
11 users (show)

Fixed In Version: cockpit-ovirt-0.11.18-0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-29 11:20:26 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+
yzhao: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 89109 0 'None' 'MERGED' 'Call processResult on successfully playbook execution' 2019-12-07 14:05:40 UTC
oVirt gerrit 89111 0 'None' 'MERGED' 'Call processResult on successfully playbook execution' 2019-12-07 14:05:40 UTC

Internal Links: 1573074

Description Simone Tiraboschi 2018-03-15 11:53:38 UTC
Description of problem:
seen choosing NFS, version=auto

The deployment fails with:
[ INFO ] TASK [Find the appliance OVF]
[ INFO ] TASK [parse OVF]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to have been in '/usr/share/ovirt-hosted-engine-setup/ansible/create_storage_domain.yml': line 111, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - debug: var=app_ovf\n - name: parse OVF\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: list object has no element 0"}

I think that the issue is that LOCAL_VM_DIR is not passed to create_storage_domain.yml

It has to be passed to create_target_vm.yml as well


Version-Release number of selected component (if applicable):
cockpit-ovirt-dashboard.noarch         0.11.17-1.el7.centos

How reproducible:
100%

Steps to Reproduce:
1. try deploying hosted-engine from cockpit
2.
3.

Actual results:
It fails with:
[ INFO ] TASK [Find the appliance OVF]
[ INFO ] TASK [parse OVF]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to have been in '/usr/share/ovirt-hosted-engine-setup/ansible/create_storage_domain.yml': line 111, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - debug: var=app_ovf\n - name: parse OVF\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: list object has no element 0"}

Expected results:
Successful deployment

Additional info:
It correctly works on CLI

Comment 1 Yaniv Kaul 2018-03-15 13:27:09 UTC
*** Bug 1556885 has been marked as a duplicate of this bug. ***

Comment 2 Yihui Zhao 2018-03-16 04:08:39 UTC
QE can reproduce this issue.

Test version:
cockpit-dashboard-160-3.el7.x86_64
cockpit-system-160-3.el7.noarch
cockpit-ovirt-dashboard-0.11.17-1.el7ev.noarch
cockpit-bridge-160-3.el7.x86_64
cockpit-ws-160-3.el7.x86_64
cockpit-storaged-160-3.el7.noarch
cockpit-160-3.el7.x86_64
ovirt-hosted-engine-ha-2.2.7-1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.13-1.el7ev.noarch

vdsm-http-4.20.22-1.el7ev.noarch
vdsm-hook-ethtool-options-4.20.22-1.el7ev.noarch
vdsm-network-4.20.22-1.el7ev.x86_64
vdsm-api-4.20.22-1.el7ev.noarch
vdsm-python-4.20.22-1.el7ev.noarch
vdsm-hook-vmfex-dev-4.20.22-1.el7ev.noarch
vdsm-hook-vhostmd-4.20.22-1.el7ev.noarch
vdsm-yajsonrpc-4.20.22-1.el7ev.noarch
vdsm-client-4.20.22-1.el7ev.noarch
vdsm-4.20.22-1.el7ev.x86_64
vdsm-gluster-4.20.22-1.el7ev.noarch
vdsm-hook-vfio-mdev-4.20.22-1.el7ev.noarch
vdsm-common-4.20.22-1.el7ev.noarch
vdsm-hook-openstacknet-4.20.22-1.el7ev.noarch
vdsm-jsonrpc-4.20.22-1.el7ev.noarch
vdsm-hook-fcoe-4.20.22-1.el7ev.noarch

rhvm-appliance-4.2-20180202.0.el7.noarch
rhvh-4.2.1.4-0.20180305.0+1

Test result:
[ INFO ] TASK [parse OVF]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to have been in '/usr/share/ovirt-hosted-engine-setup/ansible/create_storage_domain.yml': line 111, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - debug: var=app_ovf\n - name: parse OVF\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: list object has no element 0"}

Comment 3 Simone Tiraboschi 2018-03-16 08:44:30 UTC
LOCAL_VM_DIR got passed but with a wrong value

[root@c74he20180302h1 ~]# cat /var/lib/ovirt-hosted-engine-setup/cockpit/ansibleVar*
LOCAL_VM_DIR: localvm

Comment 4 Ying Cui 2018-03-20 03:30:59 UTC
Could we build the build in brew to QE with this bug fix to unblock the testing for bugs 1528134 1539560 1540621 1555365 1557480 asap?

Comment 5 Simone Tiraboschi 2018-03-20 08:33:17 UTC
We have https://bugzilla.redhat.com/show_bug.cgi?id=1558036 which is still on POST and can cause many different side effects. I'd suggest to rebuild once we have a valid fix for 1558036.

Comment 6 Yihui Zhao 2018-03-26 07:20:40 UTC
Tested with these versions:

rhvh-4.2.2.0-0.20180322.0+1
cockpit-ovirt-dashboard-0.11.19-1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.14-1.el7ev.noarch
ovirt-hosted-engine-ha-2.2.7-1.el7ev.noarch
rhvm-appliance-4.2-20180322.0.el7.noarch

Tested results:

from the cockpit:
"""
[ INFO ] TASK [Get Cluster CPU model]
[ INFO ] ok: [localhost]
[ INFO ] TASK [Get storage domain details]
[ INFO ] ok: [localhost]
[ INFO ] TASK [Add HE disks]
[ INFO ] TASK [Register disk details]
[ INFO ] ok: [localhost]
[ INFO ] TASK [Add VM]
[ INFO ] changed: [localhost]
"""
Create storage domain task works well.

So, change this bug's status to verified.

Comment 7 Sandro Bonazzola 2018-03-29 11:20:26 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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