Bug 1396758

Summary: since RHEL7.3, undercloud deployment fails because of yum-plugin-priorities
Product: Red Hat OpenStack Reporter: Gonéri Le Bouder <goneri>
Component: distributionAssignee: Lon Hohberger <lhh>
Status: CLOSED WONTFIX QA Contact: Udi Shkalim <ushkalim>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: apevec, lhh, markmc, mburns, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-11 11:50:44 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:

Description Gonéri Le Bouder 2016-11-19 21:17:59 UTC
Description of problem:


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


How reproducible:

The deployment fails if yum-plugin-priorities is installed on the undercloud:

Error: Execution of '/bin/yum -d 0 -e 0 -y install python-nova' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (rhel-7-server-rpms)
           Requires: python-cffi >= 1.4.1
           Available: python-cffi-1.1.2-4.el7ost.x86_64 (RH7-RHOS-8.0)
               python-cffi = 1.1.2-4.el7ost
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python-ironic-inspector-client-1.2.0-6.el7ost.noarch has installed conflicts python-ironic-discoverd: python-ironic-inspector-client-1.2.0-6.el7ost.noarch[0m
[1;31mError: /Stage[main]/Nova/Package[python-nova]/ensure: change from absent to present failed: Execution of '/bin/yum -d 0 -e 0 -y install python-nova' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (rhel-7-server-rpms)
           Requires: python-cffi >= 1.4.1
           Available: python-cffi-1.1.2-4.el7ost.x86_64 (RH7-RHOS-8.0)
               python-cffi = 1.1.2-4.el7ost
2016-11-19 10:34:33,047::DEBUG::u could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python-ironic-inspector-client-1.2.0-6.el7ost.noarch has installed conflicts python-ironic-discoverd: python-ironic-inspector-client-1.2.0-6.el7ost.noarch

OSP8 comes with an outdated version of python-cffi. Because of yum-plugin-priorities, yum try to use this version instead of the one coming from RHEL 7.3.

Could you remove python-cffi from OSP8 or update the version?

Comment 1 Mike Burns 2017-05-11 11:50:44 UTC
No, we don't remove content from CDN and we don't reship content that is in RHEL unless we absolutely necessary (we need something that is not available in the rhel version).

If you're using yum priorities (which we don't document using, I don't believe), you should have rhel-7-server and rhos-7-server-openstack-*-rpms at the same priority level.  All our testing is done without yum priorities, relying on yum/rpm to make the right decisions.