Bug 1338804

Summary: pulp-client-lib and pulp-cds installation collides with rh-common repo
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Irina Gulina <igulina>
Component: ToolsAssignee: RHUI Bug List <rhui-bugs>
Status: CLOSED ERRATA QA Contact: Vratislav Hutsky <vhutsky>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1.3CC: bkearney, jboggs, pbartiko, vhutsky
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-03-01 22:12:03 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
logs none

Description Irina Gulina 2016-05-23 13:00:39 UTC
Created attachment 1160625 [details]
logs

Description of problem:
If rh-common repo is enabled, pulp-client-lib attempts to install python-pulp-common.noarch 0:2.4.1-0.7.beta.el6sat which collides with 
pulp-common-0.0.263-45.el6.noarch.rpm from RHUI2 ISO

Version-Release number of selected component (if applicable):
RHUI-2.1.3.3-RHEL-6-20160520.t.9-Server-x86_64-dvd1.iso

How reproducible:
always

Steps to Reproduce:
1. ./install_RHUA.sh
2. see attachment for logs
3.

Actual results:
installation error


Expected results:
successful installation

Solution:
in install_RHUA.sh line #36 

yum localinstall -y $@ Packages/pulp-0* Packages/pulp-admin* Packages/pulp-selinux-server* Packages/grinder*         Packages/mongodb* Packages/libmongodb* Packages/js-* Packages/python-* Packages/pymongo-* Packages/pulp-commo        n* Packages/pulp-client* Packages/pulp-consumer* Packages/PyYAML* Packages/mod_wsgi* Packages/libyaml* Packag        es/gofer* Packages/gofer-package* Packages/m2crypto* Packages/rh-rhua-selinux-policy*

should be replaced with 

yum --disablerepo=\*rh-common localinstall -y $@ Packages/pulp-0* Packages/pulp-admin* Packages/pulp-selinux-server* Packages/grinder* Packages/mongodb* Packages/libmongodb* Packages/js-* Packages/python-* Packages/pymongo-* Packages/pulp-common* Packages/pulp-client* Packages/pulp-consumer* Packages/PyYAML* Packages/mod_wsgi* Packages/libyaml* Packages/gofer* Packages/gofer-package* Packages/m2crypto* Packages/rh-rhua-selinux-policy*

Comment 3 Irina Gulina 2016-05-24 13:29:24 UTC
The same applies to pulp-cds package for CDS installation:

>> ./install_CDS.sh
....
---> Package pulp-cds.noarch 0:0.0.263-45.el6 will be installed
--> Processing Dependency: pulp-common = 0.0.263 for package: pulp-cds-0.0.263-45.el6.noarch
---> Package saslwrapper.x86_64 0:0.22-5.el6sat will be installed
--> Finished Dependency Resolution
Error: Package: pulp-cds-0.0.263-45.el6.noarch (/pulp-cds-0.0.263-45.el6.noarch)
           Requires: pulp-common = 0.0.263
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Failed to install packages. The system needs to be installed with the @Base set of packages.

>> yum repolist all
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos, security
repo id                                          repo name                                            status
rhel-source                                      Red Hat Enterprise Linux 6Server - x86_64 - Source   disabled
rhel-source-beta                                 Red Hat Enterprise Linux 6Server Beta - x86_64 - Sou disabled
rhui-REGION-client-config-server-6               Red Hat Update Infrastructure 2.0 Client Configurati enabled:      6
rhui-REGION-rhel-server-debug-rh-common          Red Hat Enterprise Linux Server 6 RH Common (Debug R disabled
rhui-REGION-rhel-server-debug-rhscl              Red Hat Enterprise Linux Server 6 RHSCL (Debug RPMs) disabled
rhui-REGION-rhel-server-debug-supplementary      Red Hat Enterprise Linux Server 6 Supplementary (Deb disabled
rhui-REGION-rhel-server-releases                 Red Hat Enterprise Linux Server 6 (RPMs)             enabled: 17,980
rhui-REGION-rhel-server-releases-debug           Red Hat Enterprise Linux Server 6 (Debug RPMs)       disabled
rhui-REGION-rhel-server-releases-optional        Red Hat Enterprise Linux Server 6 Optional (RPMs)    disabled
rhui-REGION-rhel-server-releases-optional-debug  Red Hat Enterprise Linux Server 6 Optional (Debug RP disabled
rhui-REGION-rhel-server-releases-optional-source Red Hat Enterprise Linux Server 6 Optional (SRPMs)   disabled
rhui-REGION-rhel-server-releases-source          Red Hat Enterprise Linux Server 6 (SRPMs)            disabled
rhui-REGION-rhel-server-rh-common                Red Hat Enterprise Linux Server 6 RH Common (RPMs)   enabled:    128
rhui-REGION-rhel-server-rhscl                    Red Hat Enterprise Linux Server 6 RHSCL (RPMs)       disabled
rhui-REGION-rhel-server-source-rh-common         Red Hat Enterprise Linux Server 6 RH Common (SRPMs)  disabled
rhui-REGION-rhel-server-source-rhscl             Red Hat Enterprise Linux Server 6 RHSCL (SRPMs)      disabled
rhui-REGION-rhel-server-source-supplementary     Red Hat Enterprise Linux Server 6 Supplementary (SRP disabled
rhui-REGION-rhel-server-supplementary            Red Hat Enterprise Linux Server 6 Supplementary (RPM disabled
repolist: 18,114


>> yum --disablerepo=\*rh-common localinstall -y $@ Packages/pulp-cds* Packages/pulp-selinux-server* Packages/grinder* Packages/gofer* Packages/gofer-package* Packages/mod_wsgi* Packages/pulp-common* Packages/PyYAML* Packages/python-gofer* Packages/libyaml* Packages/m2crypto* Packages/rh-rhui-tools-debug-script*

... 
--> Finished Dependency Resolution

Dependencies Resolved
....

Installed:
  gofer.noarch 0:0.65.1-1.el6                                            gofer-package.noarch 0:0.65.1-1.el6         
  grinder.noarch 0:0.0.138.5-1.el6_5.rhui                                mod_wsgi.x86_64 0:3.3-2.pulp.el6            
  pulp-cds.noarch 0:0.0.263-45.el6                                       pulp-common.noarch 0:0.0.263-45.el6         
  pulp-selinux-server.noarch 0:0.0.263-45.el6                            python-gofer.noarch 0:0.65.1-1.el6          
  rh-rhui-tools-debug-script.noarch 0:2.1.39-4.disconnected.el6         

Dependency Installed:
  PyPAM.x86_64 0:0.5.0-12.el6                                      createrepo.noarch 0:0.9.9-24.el6                  
  deltarpm.x86_64 0:3.5-0.5.20090913git.el6                        mod_ssl.x86_64 1:2.2.15-53.el6                    
  python-deltarpm.x86_64 0:3.5-0.5.20090913git.el6                 python-qpid.noarch 0:0.14-11.el6_3                
  python-saslwrapper.x86_64 0:0.14-1.el6                           saslwrapper.x86_64 0:0.14-1.el6                   

Updated:
  m2crypto.x86_64 0:0.21.1.pulp-7.el6                                                                                

Complete!

Comment 4 Vratislav Hutsky 2016-06-16 11:54:09 UTC
I have tried this out with 
RHUI-2.1.3.3-RHEL-6-20160523.t.3-Server-x86_64-dvd1.iso
and the issue still persisted. 

It seems that the issue has been fixed in
install_RHUA.sh:36

However, exactly the same problem was also in
install_CDS.sh:19
and
install_tools.sh:6

When I ran yum commands from the two above mentioned scripts manually with the --disablerepo=\*rh-common option, I was able to proceed with the installation process.

Comment 5 Joey Boggs 2016-06-16 14:31:44 UTC
So the "disablerepo=\*rh-common" option needs to be added to those lines?

Comment 6 Irina Gulina 2016-06-16 14:38:39 UTC

(In reply to Joey Boggs from comment #5)
> So the "disablerepo=\*rh-common" option needs to be added to those lines?

Yes.

Comment 8 Pavlina Bartikova 2016-07-14 13:29:48 UTC
Tested on RHUI-2.1.3.3-RHEL-6-20160627.0-Server-x86_64-dvd1.iso

[root@rhua ~]# yum repolist all
Loaded plugins: amazon-id, pulp-profile-update, rhui-lb, security
repo id                                          repo name                     status
rhel-source                                      Red Hat Enterprise Linux 6Ser disabled
rhel-source-beta                                 Red Hat Enterprise Linux 6Ser disabled
rhui-REGION-client-config-server-6               Red Hat Update Infrastructure enabled:      6
rhui-REGION-rhel-server-debug-rh-common          Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-debug-rhscl              Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-debug-supplementary      Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-releases                 Red Hat Enterprise Linux Serv enabled: 18,020
rhui-REGION-rhel-server-releases-optional        Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-releases-optional-source Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-releases-source          Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-rh-common                Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-rhscl                    Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-source-rh-common         Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-source-rhscl             Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-source-supplementary     Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-supplementary            Red Hat Enterprise Linux Serv disabled
repolist: 18,026

[root@cds1 ~]# yum repolist all
Loaded plugins: amazon-id, rhui-lb, security
repo id                                          repo name                     status
rhel-source                                      Red Hat Enterprise Linux 6Ser disabled
rhel-source-beta                                 Red Hat Enterprise Linux 6Ser disabled
rhui-REGION-client-config-server-6               Red Hat Update Infrastructure enabled:      6
rhui-REGION-rhel-server-debug-rh-common          Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-debug-rhscl              Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-debug-supplementary      Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-releases                 Red Hat Enterprise Linux Serv enabled: 18,090
rhui-REGION-rhel-server-releases-optional        Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-releases-optional-source Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-releases-source          Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-rh-common                Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-rhscl                    Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-source-rh-common         Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-source-rhscl             Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-source-supplementary     Red Hat Enterprise Linux Serv disabled
rhui-REGION-rhel-server-supplementary            Red Hat Enterprise Linux Serv disabled
repolist: 18,096


Moving bug to VERIFIED.

Comment 9 errata-xmlrpc 2017-03-01 22:12:03 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:0367