Hide Forgot
Description of problem: oo-admin-check-resource.py does not fix priority conflict with "fix-all" option Version-Release number of selected component (if applicable): openshift-openshift-extras-4f0ef12 How reproducible: always Steps to Reproduce: 1.register with rhn #rhnreg_ks --username=$user --password=$passwd --serverUrl=https://xmlrpc.rhn.redhat.com/XMLRPC 2.register several channels as follow. #rhn-channel -u $user -p $passwd -r -c rhel-x86_64-server-6-ose-1.2-infrastructure #rhn-channel -u $user -p $passwd -r -c rhel-x86_64-server-6-beta 3.run check resources tool # ./oo-admin-check-sources.py --role=broker -c beta2.ini -o 2.0 --fix-all 4.configure the file as folow #cat /etc/yum/pluginconf.d/rhnplugin.conf [main] enabled = 1 gpgcheck = 1 [rhel-x86_64-server-6] priority = 20 [rhel-x86_64-server-6-beta] priority = 99 5.run check resources tool again # ./oo-admin-check-sources.py --role=broker -c beta2.ini -o 2.0 --fix-all Actual results: Output Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite. The required OpenShift Enterprise repositories are missing: rhel-x86_64-server-6-rhscl-1 rhel-x86_64-server-6-ose-2-infrastructure-beta Please verify that an OpenShift Enterprise subscription is attached to this system using either RHN Classic or Red Hat Subscription Manager by following the instructions here: https://access.redhat.com/site/articles/522923 Checking if yum-plugin-priorities is installed Checking channel/repository priorities The calculated priorities for the following repoids are too large (>= 99) rhel-x86_64-server-6-beta <--snip--> It does not set priority of the rhel channel, it does not fix the priority problem. I check the resource again # ./oo-admin-check-sources.py --role=broker -c beta2.ini -o 2.0 --report-all Output: Checking channel/repository priorities The calculated priorities for the following repoids are too large (>= 99) rhel-x86_64-server-6-beta It still prompt that the priority for rhel-x86_64-server-6-beta is too large, seem like --fix-all does nothing. Expected results: Should set the priority of the rhel-x86_64-server-6-beta channel. Additional info:
Addressed in these two PRs (originally for https://bugzilla.redhat.com/show_bug.cgi?id=1028941): * https://github.com/openshift/openshift-extras/pull/174 * https://github.com/openshift/openshift-extras/pull/176
check on openshift-openshift-extras-ed3e560 Only get the finally Output # ./oo-admin-yum-validator --role=broker -c beta2.ini -o 2.0 -p Output: Please note: --role=broker implicitly enables --role=client to ensure /usr/bin/rhc is available for testing and troubleshooting. Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite. The required OpenShift Enterprise repositories are missing: rhel-x86_64-server-6-rhscl-1 rhel-x86_64-server-6-ose-2-rhc-beta rhel-x86_64-server-6-ose-2-infrastructure-beta Please verify that an OpenShift Enterprise subscription is attached to this system using either RHN Classic or Red Hat Subscription Manager by following the instructions here: https://access.redhat.com/site/articles/522923 Checking if yum-plugin-priorities is installed Checking channel/repository priorities Please re-run this tool after making any recommended repairs to this system the tool have set the priority correctly.