Hide Forgot
Description of problem: oo-admin-check-source can not find out that the rhel channel is disabled Version-Release number of selected component (if applicable): https://github.com/openshift/openshift-extras/tree/enterprise-2.0/admin/check-sources How reproducible: always Steps to Reproduce: 1.use the following settings in /etc/rhsm/rhsm.conf: hostname=subscription.rhn.stage.redhat.com baseurl=https://cdn.rcm-qa.redhat.com 2.register a subscription # subscription-manager subscribe --pool 8a99f98341c648100141d9bab4fc13b5 3.make sure this subscription has disabled rhel-6-server-rpms repo, if not, run the command #yum-config-manager --disable rhel-6-server-rpms --save 4.check the resource #./oo-admin-check-sources.py --role=node -o 1.2 Actual results: Output Checking if yum-plugin-priorities is installed The required OpenShift Enterprise repositories are disabled: ['jb-ews-2-for-rhel-6-server-rpms'] Enable these repositories with the following commands: # subscription-manager repos --enable=jb-ews-2-for-rhel-6-server-rpms Checking channel/repository priorities Resolving repository/channel/subscription priority conflicts To resolve conflicting repositories, update repo priority by running: # yum-config-manager --setopt=rhel-6-server-rpms.priority=20 rhel-6-server-rpms --save The calculated priorities for the following repoids are too large (>= 99) rhel-6-server-rpms The tool can not find that the RHEL channel is disabled Expected results: The tool should find out this problem Additional info:
Fixed with https://github.com/openshift/openshift-extras/pull/112 to https://github.com/openshift/openshift-extras/tree/enterprise-2.0
1.check with rhn # vim /etc/yum/pluginconf.d/rhnplugin.conf [rhel-x86_64-server-6] priority = 10 enabled=0 #python oo-admin-check-sources.py -r broker -o 1.2 Checking if yum-plugin-priorities is installed The required OpenShift Enterprise repositories are disabled: rhel-x86_64-server-6 2.check with rhsm # yum-config-manager --disable rhel-6-server-rpms # python oo-admin-check-sources.py -r node This system is receiving updates from Red Hat Subscription Management. If this system will be providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument Detected installed OpenShift Enterprise version 1.2 Checking if yum-plugin-priorities is installed The required OpenShift Enterprise repositories are disabled: jb-ews-2-for-rhel-6-server-rpms rhel-6-server-rpms