Bug 1028612

Summary: oo-admin-check-sources does not properly set excludes
Product: OpenShift Container Platform Reporter: Brenton Leanhardt <bleanhar>
Component: Cluster Version OperatorAssignee: John W. Lamb <jolamb>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: jialiu, libra-onpremise-devel, xiama
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-16 09:11:11 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 Brenton Leanhardt 2013-11-08 21:15:12 UTC
Description of problem:

$ python oo-admin-check-sources.py -c beta2.ini --role=broker --role=node-eap --role=client --oo-version=2.0 --fix
Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite.

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Setting package exclusions for the following repositories:
    jbappplatform-6-x86_64-server-6-rpm: httpd httpd-tools mod_ssl
    jb-ews-2-x86_64-server-6-rpm: httpd httpd-tools mod_ssl
    rhel-x86_64-server-6: tomcat6*
    rhel-x86_64-server-6-beta: tomcat6*


Running it again produces the same output.

$ python oo-admin-check-sources.py -c beta2.ini --role=broker --role=node-eap --role=client --oo-version=2.0 --fix
Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite.

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Setting package exclusions for the following repositories:
    jbappplatform-6-x86_64-server-6-rpm: httpd httpd-tools mod_ssl
    jb-ews-2-x86_64-server-6-rpm: httpd httpd-tools mod_ssl
    rhel-x86_64-server-6: tomcat6*
    rhel-x86_64-server-6-beta: tomcat6*

Comment 1 Brenton Leanhardt 2013-11-08 21:16:55 UTC
/etc/yum/pluginconf.d/rhnplugin.conf has:

...
[rhel-x86_64-server-6]
priority = 20
exclude = ['tomcat6*', '"[\'tomcat6*\']"]', "['tomcat6*'"]


[rhel-x86_64-server-6-beta]
priority = 20
exclude = ['tomcat6*', '"[\'tomcat6*\']"]', "['tomcat6*'"]
...

Comment 3 Johnny Liu 2013-11-11 07:58:03 UTC
This issue also happened with rhsm.

# python oo-admin-check-sources.py -c beta2.ini --role=broker --oo-version=2.0
Detected OpenShift Enterprise repository subscription managed by Red Hat Subscription Manager.

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
The following repositories need package exclusions set:
    rhel-6-server-rpms
    rhel-6-server-beta-rpms
Make the following modifications to /etc/yum.repos.d/redhat.repo
Add the following line to the [rhel-6-server-rpms] section:
    exclude=tomcat6*
Add the following line to the [rhel-6-server-beta-rpms] section:
    exclude=tomcat6*
Please re-run this tool after making any recommended repairs to this system


# python oo-admin-check-sources.py -c beta2.ini --role=broker --oo-version=2.0 -f
Detected OpenShift Enterprise repository subscription managed by Red Hat Subscription Manager.

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Setting package exclusions for the following repositories:
    rhel-6-server-rpms: tomcat6*
    rhel-6-server-beta-rpms: tomcat6*

# python oo-admin-check-sources.py -c beta2.ini --role=broker --oo-version=2.0
Detected OpenShift Enterprise repository subscription managed by Red Hat Subscription Manager.

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
The following repositories need package exclusions set:
    rhel-6-server-rpms
    rhel-6-server-beta-rpms
Make the following modifications to /etc/yum.repos.d/redhat.repo
Add the following line to the [rhel-6-server-rpms] section:
    exclude=tomcat6*
Add the following line to the [rhel-6-server-beta-rpms] section:
    exclude=tomcat6*
Please re-run this tool after making any recommended repairs to this system

Comment 4 John W. Lamb 2013-11-11 21:20:21 UTC
Addressed in https://github.com/openshift/openshift-extras/pull/173

Comment 5 Ma xiaoqiang 2013-11-12 01:04:33 UTC
check on openshift-openshift-extras-c9d6230
for rhsm:
#./oo-admin-check-sources.py -r broker -p -o 2.0 -r node -r node-eap -r client -c beta2.ini -s rhsm -a
#./oo-admin-check-sources.py -r broker -p -o 2.0 -r node -r node-eap -r client -c beta2.ini -p 
Output:
Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite.

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
No problems could be detected!

for rhn:
#./oo-admin-check-sources.py -r broker -p -o 2.0 -r node -r node-eap -r client -c beta2.ini -s rhn -a
#./oo-admin-check-sources.py -r broker -p -o 2.0 -r node -r node-eap -r client -c beta2.ini -s -p
Output:
Detected OpenShift Enterprise repository subscription managed by Red Hat Subscription Manager.
Detected installed OpenShift Enterprise version 2.0

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
No problems could be detected!