Bug 1566280

Summary: OSP12->13 yum update fails with python-oslo-db-tests dependency
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: python-oslo-dbAssignee: Michael Bayer <mbayer>
Status: CLOSED ERRATA QA Contact: pkomarov
Severity: urgent Docs Contact:
Priority: urgent    
Version: 13.0 (Queens)CC: abeekhof, aherr, apevec, dbecker, dciabrin, jjoyce, lbezdick, lhh, mbayer, mburns, morazi, pkomarov, rhel-osp-director-maint
Target Milestone: betaKeywords: Triaged
Target Release: 13.0 (Queens)Flags: mbayer: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-oslo-db-4.33.0-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:50:58 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:
Attachments:
Description Flags
yum update output none

Description Marius Cornea 2018-04-12 00:22:41 UTC
Created attachment 1420605 [details]
yum update output

Description of problem:

yum update fails with:

Error: Package: python-oslo-db-tests-4.25.1-1.el7ost.noarch (@rhelosp-12.0-puddle)
           Requires: python-oslo-db = 4.25.1-1.el7ost
           Removing: python-oslo-db-4.25.1-1.el7ost.noarch (@rhelosp-12.0-puddle)
               python-oslo-db = 4.25.1-1.el7ost
           Obsoleted By: python2-oslo-db-4.33.0-1.el7ost.noarch (rhelosp-13.0-puddle)
               python-oslo-db = 4.33.0-1.el7ost
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest



Additional info:
Attaching full output.

Comment 3 Mike Burns 2018-04-12 11:08:24 UTC
The issue here is that python-oslo-db-tests was shipped in previous versions because it was a dependency.  We generally try to avoid shipping unit tests sub-packages and since it was no longer a requirement, we dropped it from the OSP 13 release.  Specifically, python-neutron-tests required it in 12 but does not in 13. 

There are 2 paths forward here.  We can add the package to the release or we can obsolete the package.  The preference is an obsoletes from our side unless there is significant reason to ship the package.

Thoughts from the PIDONE DFG?

Comment 5 Michael Bayer 2018-04-12 13:21:32 UTC
So I didn't realize we ever even shipped the tests/ folder and I was not aware of this as the real reason bz#1546758 happened when it did, e.g. that "we dropped it from the OSP 13 release".  I thought that issue was strange that it came up so suddenly, now I know why.   Since in bz#1546758 and the related clones we did the work to not depend on the tests we should do what we have to in order to no longer ship or produce this package.

Comment 16 pkomarov 2018-04-24 11:25:11 UTC
Verified, 

Environment : 

(undercloud) [stack@undercloud-0 ~]$ rhos-release -L
Installed repositories (rhel-7.5):
  13
  ceph-3
  ceph-osd-3
  rhel-7.5

(undercloud) [stack@undercloud-0 ~]$ cat core_puddle_version 
2018-04-19.2

(undercloud) [stack@undercloud-0 ~]$ yum repolist
Loaded plugins: search-disabled-repos
repo id                                                       repo name                                                           status
rhelosp-13.0-image-build-override/x86_64                      RHOS 13.0 Override                                                       0
rhelosp-13.0-puddle/x86_64                                    RHOS-13.0                                                              802
rhelosp-ceph-3.0-mon/x86_64                                   Ceph 3.0 MON                                                            79
rhelosp-ceph-3.0-osd/x86_64                                   Ceph 3.0 OSD                                                            66
rhelosp-ceph-3.0-tools/x86_64                                 Ceph 3.0 Tools                                                         113
rhelosp-rhel-7.5-extras/x86_64                                Red Hat Enterprise Linux 7Server - x86_64 - Extras                     814
rhelosp-rhel-7.5-ha/x86_64                                    Red Hat Enterprise Linux 7Server - x86_64 - HA                         468
rhelosp-rhel-7.5-image-build-override/x86_64                  RHEL 7.5 Override                                                        0
rhelosp-rhel-7.5-server/x86_64                                Red Hat Enterprise Linux 7Server - x86_64 - Server                  20,112
rhos-release                                                  RHOS Release                                                            56
rhos-release-extras/7Server                                   RHOS Release Extras                                                      2

Verified that package is absent : 

(undercloud) [stack@undercloud-0 ~]$ ansible overcloud -b -mshell -a'rpm -qi python-oslo-db-tests;true'

compute-1 | SUCCESS | rc=0 >>
package python-oslo-db-tests is not installed

compute-0 | SUCCESS | rc=0 >>
package python-oslo-db-tests is not installed

controller-0 | SUCCESS | rc=0 >>
package python-oslo-db-tests is not installed

controller-1 | SUCCESS | rc=0 >>
package python-oslo-db-tests is not installed

controller-2 | SUCCESS | rc=0 >>
package python-oslo-db-tests is not installed

Comment 18 errata-xmlrpc 2018-06-27 13:50:58 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/RHEA-2018:2086