Bug 1556885

Summary: HE: failure to deploy (using Cockpit, Ansible) on NFS
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Yaniv Kaul <ykaul>
Component: GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.2.13CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-15 13:27:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yaniv Kaul 2018-03-15 12:44:01 UTC
Description of problem:
Trying to deploy on NFS, I'm failing with:
[ 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 don't know where the logs are - on the host, the /var/log/ovirt-hosted-engine-setup/ dir is empty!

Some of the logs from /var/log/messges:
Mar 15 08:03:00 lago-he-basic-ansible-suite-master-host0 python2: ansible-ovirt_datacenter_facts Invoked with pattern= fetch_nested=False nested_attributes=[] auth={'ca_file': None, 'url': 'https://lago-basic-suite-master-engine.lago.local/ovirt-engine/api', 'insecure': True, 'kerberos': False, 'compress': True, 'headers': None, 'token': 'hNXElrXysnISK9YVuol4SNaHsyI5ChlOKZvo9EhF7E8BM1NwmbHl2XcpL7pnlb2dN0nkXi72yaUvykTY2VR47Q', 'timeout': 0}
Mar 15 08:03:01 lago-he-basic-ansible-suite-master-host0 python2: ansible-ovirt_storage_domains Invoked with comment=None glusterfs=None localfs=None data_center=Default id=None iscsi=None state=present destroy=False fcp=None description=None format=False auth={'ca_file': None, 'url': 'https://lago-basic-suite-master-engine.lago.local/ovirt-engine/api', 'insecure': True, 'kerberos': False, 'compress': True, 'headers': None, 'token': 'hNXElrXysnISK9YVuol4SNaHsyI5ChlOKZvo9EhF7E8BM1NwmbHl2XcpL7pnlb2dN0nkXi72yaUvykTY2VR47Q', 'timeout': 0} host=lago-he-basic-ansible-suite-master-host0.lago.local nested_attributes=[] wait=True domain_function=data name=hosted_storage posixfs=None poll_interval=3 fetch_nested=False nfs={'path': '/exports/nfs_he', 'version': 'auto', 'mount_options': None, 'address': 'lago-he-basic-ansible-suite-master-storage'} timeout=180 discard_after_delete=True
Mar 15 08:03:02 lago-he-basic-ansible-suite-master-host0 python2: ansible-ovirt_storage_domains_facts Invoked with pattern=name=hosted_storage and datacenter=Default fetch_nested=False nested_attributes=[] auth={'ca_file': None, 'url': 'https://lago-basic-suite-master-engine.lago.local/ovirt-engine/api', 'insecure': True, 'kerberos': False, 'compress': True, 'headers': None, 'token': 'hNXElrXysnISK9YVuol4SNaHsyI5ChlOKZvo9EhF7E8BM1NwmbHl2XcpL7pnlb2dN0nkXi72yaUvykTY2VR47Q', 'timeout': 0}
Mar 15 08:03:02 lago-he-basic-ansible-suite-master-host0 python2: ansible-find Invoked with paths=['localvm/master'] file_type=file age=None contains=None recurse=True age_stamp=mtime patterns=['^.*.(?<!meta).ovf$'] get_checksum=False use_regex=True follow=False hidden=False size=None



Version-Release number of selected component (if applicable):
[root@lago-he-basic-ansible-suite-master-host0 log]# rpm -qa |grep ovirt
ovirt-provider-ovn-driver-1.2.10-0.20180314082453.gitb7e43f0.el7.centos.noarch
ovirt-hosted-engine-setup-2.3.0-0.0.master.20180312165554.git096f5a6.el7.centos.noarch
ovirt-setup-lib-1.1.5-0.0.master.20180131143442.git57b0f44.el7.centos.noarch
ovirt-vmconsole-1.0.5-0.0.master.20180215132530.gitf24a817.el7.centos.noarch
python-ovirt-engine-sdk4-4.3.0-1.a0.20180306git19aa707.el7.centos.x86_64
ovirt-imageio-daemon-1.2.1-0.201802191418.git748bd64.el7.centos.noarch
ovirt-host-4.3.0-0.0.master.20180313084422.git907085c.el7.centos.x86_64
ovirt-engine-sdk-python-3.6.9.2-0.1.20180209.gite99bbd1.el7.centos.noarch
ovirt-hosted-engine-ha-2.3.0-0.0.master.20180313075518.20180313075515.git8a45694.el7.centos.noarch
ovirt-imageio-common-1.2.1-0.201802191418.git748bd64.el7.centos.noarch
ovirt-engine-appliance-4.2-20180314.1.el7.centos.noarch
ovirt-host-dependencies-4.3.0-0.0.master.20180313084422.git907085c.el7.centos.x86_64
cockpit-ovirt-dashboard-0.11.999-0.0.master.el7.centos.noarch
ovirt-host-deploy-1.8.0-0.0.master.20180313163958.git3b2935f.el7.centos.noarch
ovirt-vmconsole-host-1.0.5-0.0.master.20180215132530.gitf24a817.el7.centos.noarch

I think the mount itself succeeded (I also see it in vdsm.log)

MainProcess|jsonrpc/7::DEBUG::2018-03-15 07:55:22,902::supervdsm_server::96::SuperVdsm.ServerCallback::(wrapper) call mount with (u'lago-he-basic-ansible-suite-master-storage:/exports/nfs_he', u'/rhev/data-cente
r/mnt/lago-he-basic-ansible-suite-master-storage:_exports_nfs__he') {'vfstype': 'nfs', 'mntOpts': 'soft,nosharecache,timeo=600,retrans=6,nolock', 'cgroup': None}
MainProcess|jsonrpc/7::DEBUG::2018-03-15 07:55:22,903::commands::65::root::(execCmd) /usr/bin/taskset --cpu-list 0-1 /usr/bin/mount -t nfs -o soft,nosharecache,timeo=600,retrans=6,nolock lago-he-basic-ansible-su
ite-master-storage:/exports/nfs_he /rhev/data-center/mnt/lago-he-basic-ansible-suite-master-storage:_exports_nfs__he (cwd None)
MainProcess|jsonrpc/7::DEBUG::2018-03-15 07:55:23,068::commands::86::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
MainProcess|jsonrpc/7::DEBUG::2018-03-15 07:55:23,069::supervdsm_server::103::SuperVdsm.ServerCallback::(wrapper) return mount with None

Comment 1 Yaniv Kaul 2018-03-15 13:27:09 UTC

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