Bug 1588106
| Summary: | Spec file points to wrong version causing conversion_host_enable.yml to fail | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Kedar Kulkarni <kkulkarn> |
| Component: | ovirt-ansible-roles | Assignee: | Tomáš Golembiovský <tgolembi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Nisim Simsolo <nsimsolo> |
| Severity: | medium | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 4.4.0 | CC: | mavital, mtessun, nsimsolo, rjones, tgolembi |
| Target Milestone: | ovirt-4.2.4 | ||
| Target Release: | 4.2.4 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | v2v | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: |
Incorrect version in package description prevented deployment of infrastraction migration tools on RHV host. This is now fixed.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-28 07:13:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1588112 | ||
| Bug Blocks: | |||
Build is done now: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=705773 Tomáš provided me with a temporary repo of newly built nbdkit packages, I did include this repo in /etc/yum.repos.d/ on host which I wanted to make conversion host and then from my rhv engine I ran conversion host playbook, and it fetched correct version of nbdkit packages and installed it without failure. Also, I removed my previous nbdkit repo when I added new one provided by you, just to avoid conflicts. And current packages installed on my conversion host are : [root@cfme-smicro-628-b01 ~]# rpm -qa | grep nbdkit nbdkit-plugin-python-common-1.2.3-1.el7ev.x86_64 nbdkit-devel-1.2.3-1.el7ev.x86_64 nbdkit-1.2.3-1.el7ev.x86_64 nbdkit-plugin-python2-1.2.3-1.el7ev.x86_64 Veriried: rhvm-4.2.4.4-0.1 libvirt-client-3.9.0-14.el7_5.6.x86_64 vdsm-4.20.31-1.el7ev.x86_64 qemu-kvm-rhev-2.10.0-21.el7_5.4.x86_64 virt-v2v-1.36.10-6.10.rhvpreview.el7ev.x86_64 Verification scenario: 1. Run conversion_host_enable.yml 2. Playbook completes. Verify nbdkit installed on host. in my case: [root@lion01 ~]# rpm -qa | grep nbdkit nbdkit-plugin-python2-1.2.3-1.el7ev.x86_64 nbdkit-plugin-vddk-1.1.26-1.el7.x86_64 nbdkit-1.2.3-1.el7ev.x86_64 nbdkit-debuginfo-1.2.3-1.el7ev.x86_64 nbdkit-plugin-python-common-1.2.3-1.el7ev.x86_64 BZ<2>Jira Resync |
Description of problem: When I run conversion_host_enable.yml what I see is this: TASK [oVirt.v2v-conversion-host : Build RPM] ********************************************************************************************************************************************************************** fatal: [cfme-smicro-628-b01.cfme2.lab.eng.rdu2.redhat.com]: FAILED! => {"changed": true, "cmd": ["rpmbuild", "-ba", "--define", "_topdir /tmp/nbdkit-plugin", "--define", "_builddir /tmp/nbdkit-plugin", "--define", "_rpmdir /tmp/nbdkit-plugin", "--define", "_sourcedir /tmp/nbdkit-plugin", "--define", "_specdir /tmp/nbdkit-plugin", "--define", "_srcrpmdir /tmp/nbdkit-plugin", "nbdkit-plugin-vddk.spec"], "delta": "0:00:00.054478", "end": "2018-06-01 13:59:35.184167", "msg": "non-zero return code", "rc": 1, "start": "2018-06-01 13:59:35.129689", "stderr": "error: File /tmp/nbdkit-plugin/nbdkit-1.1.26.tar.gz: No such file or directory", "stderr_lines": ["error: File /tmp/nbdkit-plugin/nbdkit-1.1.26.tar.gz: No such file or directory"], "stdout": "", "stdout_lines": []} to retry, use: --limit @/usr/share/doc/ovirt-ansible-v2v-conversion-host-1.2.0/examples/conversion_host_enable.retry PLAY RECAP ******************************************************************************************************************************************************************************************************** Currently in the spec file had version 1.1.26, as shown below: -# NB: The Version field must correspond to an nbdkit -# released version (ideally the latest version). -Version: 1.1.26 We would need to update it to match correct version: +# The Version field must match the nbdkit.spec. +Version: 1.2.3 Version-Release number of selected component (if applicable): RHV Version Version 4.2.4-0.1.el7 How reproducible: Believe 100% Steps to Reproduce: 1.Run Ansible Playbook conversion_host_enable.yml from /usr/share/doc/ovirt-ansible-v2v-conversion-host-1.2.0/examples 2. 3. Actual results: Playbook errors out Expected results: playbook completes successfully Additional info: As a workaround, I ran playbook with --step, and when it came to step of building rpm, I manually updated spec file to match version 1.2.2 by replacing 1.1.26 and it completed the playbook execution after that successfully.