Hide Forgot
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:
Addressed in https://github.com/openshift/openshift-extras/pull/181
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-->