Bug 1025560 - oo-admin-check-sources reports yum repo multiple times
Summary: oo-admin-check-sources reports yum repo multiple times
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: John W. Lamb
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-31 22:02 UTC by Luke Meyer
Modified: 2017-03-08 17:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-16 09:11:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Luke Meyer 2013-10-31 22:02:51 UTC
Description of problem:
When I enable an openshift yum repo on a host where RHN channels are already set up, it tells me to deprioritize the yum repo... 5 times.

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

Steps to Reproduce:
1. Install an OSE 1.2 all-in-one host with RHN subscription
2. Add the openshift_node yum repo
3. Run oo-admin-check-sources.py

Results:

[root@broker check-sources]# ./oo-admin-check-sources.py 
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No roles have been specified. Attempting to guess the roles for this system...
If the roles listed below are incorrect or incomplete, please re-run this script with the appropriate --role arguments
    broker
    node
    client
    node-eap
Detected installed OpenShift Enterprise version 1.2
Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Resolving repository/channel/subscription priority conflicts
To resolve conflicting repositories, update repo priority by running:
# yum-config-manager --setopt=openshift_node.priority=40 openshift_node --save
# yum-config-manager --setopt=openshift_node.priority=40 openshift_node --save
# yum-config-manager --setopt=openshift_node.priority=40 openshift_node --save
# yum-config-manager --setopt=openshift_node.priority=40 openshift_node --save
# yum-config-manager --setopt=openshift_node.priority=40 openshift_node --save
Please re-run this tool after making any recommended repairs to this system

Comment 3 John W. Lamb 2013-11-01 14:19:17 UTC
Addressed in https://github.com/openshift/openshift-extras/pull/132

[root@broker check-sources]# python ./oo-admin-check-sources.py                                                                                                                          
No roles have been specified. Attempting to guess the roles for this system...
If the roles listed below are incorrect or incomplete, please re-run this script with the appropriate --role arguments
    broker
    node
    client
    node-eap
Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite.
Detected installed OpenShift Enterprise version 1.2

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Resolving repository/channel/subscription priority conflicts
To resolve conflicting repositories, update repo priority by running:
# yum-config-manager --setopt=openshift_node.priority=40 openshift_node --save
Please re-run this tool after making any recommended repairs to this system
[root@broker check-sources]#

Comment 4 Ma xiaoqiang 2013-11-04 06:13:14 UTC
Addressed in https://github.com/openshift/openshift-extras/tree/enterprise-2.0/admin/check-sources

#python oo-admin-check-sources.py -r client
Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite.
Detected installed OpenShift Enterprise version 1.2

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Resolving repository/channel/subscription priority conflicts
To resolve conflicting repositories, update repo priority by running:
# yum-config-manager --setopt=openshift_client.priority=40 openshift_client --save
Please re-run this tool after making any recommended repairs to this system


Note You need to log in before you can comment on or make changes to this bug.