Bug 1031081 - oo-admin-yum-validator gives advice that depends on functionality in yum-config-manager that is broken currently
Summary: oo-admin-yum-validator gives advice that depends on functionality in yum-conf...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: John W. Lamb
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-15 15:04 UTC by John W. Lamb
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:20 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description John W. Lamb 2013-11-15 15:04:54 UTC
Description of problem:

For Yum and RHSM managed repositories, oo-admin-yum-validator instructs the user to adjust repository settings using yum-config-manager, included in yum-utils.

According to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1024111 the --setopt argument to yum-config-manager doesn't work on repositories that have periods in their repoid. This includes almost all of the OpenShift Enterprise repositories.

Until yum-config-manager is fixed, this advice should be replaced with "by-hand" instructions, similar to what is output for RHN channels.

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

All

How reproducible:
always

Steps to Reproduce:
1. Register with RHSM
# subscription-manager register --username=$user --password=$pass
2. Attach the OpenShift Employee Subscription pool
# subscription-manager attach --pool=$poolid
3. run oo-admin-yum-validator:
# ./oo-admin-yum-validator -rnode -rclient -rbroker -o1.2

Actual results:
If this system will be providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument
Detected OpenShift Enterprise repository subscription managed by Red Hat Subscription Manager.
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=rhel-server-rhscl-6-rpms.priority=10 rhel-server-rhscl-6-rpms --save
# yum-config-manager --setopt=rhel-server-ose-1.2-rhc-6-rpms.priority=10 rhel-server-ose-1.2-rhc-6-rpms --save
# yum-config-manager --setopt=rhel-server-ose-1.2-infra-6-rpms.priority=10 rhel-server-ose-1.2-infra-6-rpms --save
# yum-config-manager --setopt=rhel-server-ose-1.2-node-6-rpms.priority=10 rhel-server-ose-1.2-node-6-rpms --save
# yum-config-manager --setopt=rhel-6-server-rpms.priority=20 rhel-6-server-rpms --save
# yum-config-manager --setopt=jb-ews-2-for-rhel-6-server-rpms.priority=30 jb-ews-2-for-rhel-6-server-rpms --save
Please re-run this tool after making any recommended repairs to this system


Expected results:
Text that instructs the user to modify the relevant sections in /etc/yum.repos.d/redhat.repo manually

Additional info:

Comment 2 John W. Lamb 2013-11-15 17:00:47 UTC
Addressed in https://github.com/openshift/openshift-extras/pull/181

Comment 3 Ma xiaoqiang 2013-11-18 02:44:18 UTC
check in on openshift-openshift-extras-ed3e560

#./oo-admin-yum-validator -r node -r broker -p
Output 
<--snip-->
Resolving repository/channel/subscription priority conflicts
To resolve conflicting repositories, update /etc/yum.repos.d/redhat.repo with the following changes:
    Set priority=10 in the [rhel-server-ose-1.2-infra-6-rpms] section
    Set priority=10 in the [rhel-server-ose-1.2-rhc-6-rpms] section
    Set priority=10 in the [rhel-server-ose-1.2-node-6-rpms] section
    Set priority=20 in the [rhel-6-server-rpms] section
<--snip-->


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