Bug 1625344

Summary: unable to update or install openvswitch 2.10 if openvswitch 2.9 is currently installed
Product: Red Hat Enterprise Linux 7 Reporter: Rick Alongi <ralongi>
Component: openvswitch2.10Assignee: Flavio Leitner <fleitner>
Status: CLOSED NOTABUG QA Contact: Rick Alongi <ralongi>
Severity: high Docs Contact:
Priority: high    
Version: 7.6CC: atragler, ctrautma, fbaudin, fleitner, ovs-qe, qding, ralongi, rkhan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-14 18:38:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rick Alongi 2018-09-04 16:58:46 UTC
Description of problem:

Unable to update from OVS 2.9 to OVS 2.10 or do a fresh install over OVS 2.9

Version-Release number of selected component (if applicable):
openvswitch 2.10

How reproducible:


Steps to Reproduce:
1.see additional info below
2.
3.

Actual results:


Expected results:


Additional info:

[root@netqe12 tools]# rpm -q openvswitch
openvswitch-2.9.0-56.el7fdp.x86_64

[root@netqe12 tools]# yum -y update http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch-selinux-extra-policy/1.0/6.el7fdp/noarch/openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch.rpm           | 7.5 kB  00:00:00     
Examining /var/tmp/yum-root-3ezALS/openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch.rpm: openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch
Marking /var/tmp/yum-root-3ezALS/openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch.rpm as an update to openvswitch-selinux-extra-policy-1.0-3.el7fdp.noarch
Resolving Dependencies
--> Running transaction check
---> Package openvswitch-selinux-extra-policy.noarch 0:1.0-3.el7fdp will be updated
---> Package openvswitch-selinux-extra-policy.noarch 0:1.0-6.el7fdp will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package  Arch   Version      Repository                                             Size
==========================================================================================
Updating:
 openvswitch-selinux-extra-policy
          noarch 1.0-6.el7fdp /openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch  12 k

Transaction Summary
==========================================================================================
Upgrade  1 Package

Total size: 12 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch                   1/2 
  Cleanup    : openvswitch-selinux-extra-policy-1.0-3.el7fdp.noarch                   2/2 
  Verifying  : openvswitch-selinux-extra-policy-1.0-6.el7fdp.noarch                   1/2 
  Verifying  : openvswitch-selinux-extra-policy-1.0-3.el7fdp.noarch                   2/2 

Updated:
  openvswitch-selinux-extra-policy.noarch 0:1.0-6.el7fdp                                  

Complete!

[root@netqe12 tools]# yum -y update http://download.eng.bos.redhat.com/brewroot/packages/openvswitch2.10/2.10.0/1.el7fdp/x86_64/openvswitch2.10-2.10.0-1.el7fdp.x86_64.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
openvswitch2.10-2.10.0-1.el7fdp.x86_64.rpm                         | 3.0 MB  00:00:00     
Examining /var/tmp/yum-root-3ezALS/openvswitch2.10-2.10.0-1.el7fdp.x86_64.rpm: openvswitch2.10-2.10.0-1.el7fdp.x86_64
Package openvswitch2.10 not installed, cannot update it. Run yum install to install it instead.
No packages marked for update

[root@netqe12 tools]# yum -y install http://download.eng.bos.redhat.com/brewroot/packages/openvswitch2.10/2.10.0/1.el7fdp/x86_64/openvswitch2.10-2.10.0-1.el7fdp.x86_64.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
openvswitch2.10-2.10.0-1.el7fdp.x86_64.rpm                         | 3.0 MB  00:00:00     
Examining /var/tmp/yum-root-3ezALS/openvswitch2.10-2.10.0-1.el7fdp.x86_64.rpm: openvswitch2.10-2.10.0-1.el7fdp.x86_64
Marking /var/tmp/yum-root-3ezALS/openvswitch2.10-2.10.0-1.el7fdp.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package openvswitch2.10.x86_64 0:2.10.0-1.el7fdp will be installed
--> Processing Conflict: openvswitch2.10-2.10.0-1.el7fdp.x86_64 conflicts openvswitch < 2.10
No package matched to upgrade: openvswitch2.10
--> Finished Dependency Resolution
Error: openvswitch2.10 conflicts with openvswitch-2.9.0-56.el7fdp.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Comment 2 Flavio Leitner 2018-09-05 13:07:05 UTC
Hi

This is by design so that customers/users using openvswitch-2.9 does not update to newer streams without the Layered Product be ready to consume it.

When the product is ready, it will release an updated package that will obsolete the previous streams, in this case 2.9, and requires the new one, in this case 2.10.

Once the installation is moved to a newer stream, the following updates within the same stream should happen normally and smoothly and again it should not allow moving to any other streams (older or newer than the current one).

I think OSP and RHV already have their special packages. Perhaps you could use them to unlock and test the upgrade.

fbl

Comment 3 Rick Alongi 2018-09-05 14:34:34 UTC
(In reply to Flavio Leitner from comment #2)
> Hi
> 
> This is by design so that customers/users using openvswitch-2.9 does not
> update to newer streams without the Layered Product be ready to consume it.
> 
> When the product is ready, it will release an updated package that will
> obsolete the previous streams, in this case 2.9, and requires the new one,
> in this case 2.10.
> 
> Once the installation is moved to a newer stream, the following updates
> within the same stream should happen normally and smoothly and again it
> should not allow moving to any other streams (older or newer than the
> current one).
> 
> I think OSP and RHV already have their special packages. Perhaps you could
> use them to unlock and test the upgrade.
> 
> fbl

Please see BZ1625344 for info related to performing the upgrade using the rhelosp 14 repo.

Comment 4 Flavio Leitner 2018-09-14 18:38:54 UTC
(In reply to Rick Alongi from comment #3)
> Please see BZ1625344 for info related to performing the upgrade using the
> rhelosp 14 repo.

Hm, that BZ is actually this one, maybe a copy&paste error?
Anyways, it would be a bug if yum updates from 2.9 to 2.10 without the LP special package.

Going to close this one, but feel free to drop me an email/ping on irc.

Comment 5 Flavio Leitner 2018-09-14 18:41:00 UTC
Perhaps it was bz#1625355 ? If so, it's closed too.