Bug 1457684

Summary: Conflicts with (installed) ovirt-hosted-engine-setup-2.1.2-1.el7ev.noarch while installing rhvm-appliance
Product: Red Hat Enterprise Virtualization Manager Reporter: dguo
Component: ovirt-hosted-engine-setupAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: Nikolai Sednev <nsednev>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.1.3CC: bugs, cshao, dguo, huzhao, jiawu, joherr, leiwang, lsurette, nsednev, qiyuan, rbarry, sbonazzo, stirabos, usurse, weiwang, yaniwang, ycui, ykaul, yzhao
Target Milestone: ovirt-4.1.3Keywords: Regression, TestBlocker, ZStream
Target Release: ---Flags: nsednev: testing_plan_complete-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-hosted-engine-setup-2.1.2-2.el7ev Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-06 07:30:02 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:
Bug Depends On:    
Bug Blocks: 1451861, 1455441    

Description dguo 2017-06-01 06:59:01 UTC
Description of problem:
rhvm-appliance >= 4.2 conflicts with (installed) ovirt-hosted-engine-setup-2.1.2-1.el7ev.noarch

Version-Release number of selected component (if applicable):
rhvh-4.1-0.20170531.0+1
rhvm-appliance-4.1.20170511.0-1.el7.4.1.rpm
ovirt-hosted-engine-setup-2.1.2-1.el7ev.noarch
ovirt-hosted-engine-ha-2.1.1-1.el7ev.noarch
cockpit-ovirt-dashboard-0.10.7-0.0.18.el7ev.noarch
imgbased-0.9.30-0.1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install RHVH4.1 via PXE.
2. Before deploy HE, install the rhvm-appliance package on rhvh(rpm -ivh /tmp/rhvm-appliance-4.1.20170511.0-1.el7.4.1.rpm)

Actual results:
After step2,
[root@dell-op790-01 ~]# rpm -ivh /tmp/rhvm-appliance-4.1.20170511.0-1.el7.4.1.rpm
error: Failed dependencies:
    rhvm-appliance >= 4.2 conflicts with (installed) ovirt-hosted-engine-setup-2.1.2-1.el7ev.noarch

Expected results:
After step2, the rhvm-appliance package can be installed

Additional info:
1. In previous build rhvh-4.1-0.20170530.0, no such issue, it is a regression.
2. In previous build rhvh-4.1-0.20170530.0, the version of ovirt-hosted-engine-setup is: ovirt-hosted-engine-setup-2.1.1-1.el7ev.noarch

Comment 1 dguo 2017-06-01 07:02:47 UTC
Add test block keyword since it would block the following he install test case

Comment 2 Ryan Barry 2017-06-01 12:36:06 UTC
This is essentially from the versioning scheme.

The RPM comes out as:

rhvm-appliance-4.1.20170511.0-1.el7.noarch.rpm

The version seen by RPM here is "4.1.20170511"

If this became rhvm-appliance-4.1.20170511.0.el7.noarch.rpm, the correct version will be selected.

Any mechanism which picks out the correct version works, though.

Comment 3 Red Hat Bugzilla Rules Engine 2017-06-01 12:36:15 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 4 Red Hat Bugzilla Rules Engine 2017-06-01 12:36:15 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 5 Yuval Turgeman 2017-06-01 14:11:02 UTC
rhvm-appliance has a version of 4.1.20170511, but its epoch is set to 1 and since rpm first compares the epoch, it fails.

>>> rpm.labelCompare((None, "4.1.20170511.0", "1.el7"), (None, "4.2", None))
-1
>>> rpm.labelCompare(("1", "4.1.20170511.0", "1.el7"), (None, "4.2", None))
1

I think ovirt-hosted-engine-setup should conflict with rhvm-appliance >= 1:4.2

Comment 6 Simone Tiraboschi 2017-06-01 15:09:55 UTC
Ok,
I rebuilt ovirt-hosted-engine-setup-2.1.2-2.el7ev.noarch moving to 
Conflicts:      rhevm-appliance < 1:4.0
Conflicts:      rhvm-appliance >= 1:4.2

Comment 11 Sandro Bonazzola 2017-06-09 06:43:02 UTC
*** Bug 1460021 has been marked as a duplicate of this bug. ***

Comment 12 Nikolai Sednev 2017-06-11 13:55:21 UTC
I'm still getting the same error "ovirt-hosted-engine-setup-2.1.2-1.el7ev.noarch conflicts rhvm-appliance >= 4.2" for  NGN 4.1:

libvirt-client-2.0.0-10.el7_3.9.x86_64
ovirt-hosted-engine-setup-2.1.2-1.el7ev.noarch
ovirt-host-deploy-1.6.5-1.el7ev.noarch
ovirt-imageio-common-1.0.0-0.el7ev.noarch
ovirt-node-ng-nodectl-4.1.3-0.20170530.0.el7.noarch
ovirt-vmconsole-host-1.0.4-1.el7ev.noarch
mom-0.5.9-1.el7ev.noarch
qemu-kvm-rhev-2.6.0-28.el7_3.9.x86_64
vdsm-4.19.17-1.el7ev.x86_64
ovirt-hosted-engine-ha-2.1.1-1.el7ev.noarch
ovirt-setup-lib-1.1.1-1.el7ev.noarch
sanlock-3.4.0-1.el7.x86_64
ovirt-vmconsole-1.0.4-1.el7ev.noarch
ovirt-engine-sdk-python-3.6.9.1-1.el7ev.noarch
ovirt-imageio-daemon-1.0.0-0.el7ev.noarch
Linux version 3.10.0-514.21.1.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Sat Apr 22 02:41:35 EDT 2017
Linux 3.10.0-514.21.1.el7.x86_64 #1 SMP Sat Apr 22 02:41:35 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux release 7.3

Tried to install rhvm-appliance-4.1.20170605.0-1.el7.noarch

Comment 15 Sandro Bonazzola 2017-06-12 06:15:46 UTC
(In reply to Nikolai Sednev from comment #12)
> I'm still getting the same error
> "ovirt-hosted-engine-setup-2.1.2-1.el7ev.noarch conflicts rhvm-appliance >=
> 4.2" for  NGN 4.1:

The bug has been fixed in ovirt-hosted-engine-setup >= 2.1.2-2.el7ev.noarch
You're testing the wrong release (2.1.2-1).

Comment 16 dguo 2017-06-12 09:09:47 UTC
Verified on rhvh-4.1-0.20170609.0+1

Test version:
rhvh-4.1-0.20170609.0+1
rhvm-appliance-4.1.20170608.0-1.el7.noarch
ovirt-hosted-engine-ha-2.1.2-1.el7ev.noarch
ovirt-hosted-engine-setup-2.1.3-1.el7ev.noarch
cockpit-ovirt-dashboard-0.10.7-0.0.19.el7ev.noarch

Test step:
1. Install RHVH4.1 via PXE.
2. Install the rhvm-appliance-4.1.20170608.0-1.el7.noarch package on rhvh

Test result:
After step #2, the rhvm-appliance package can be install successfully, thus can deploy Hosted Engine

Comment 18 errata-xmlrpc 2017-07-06 07:30:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2017:1691