Description of problem: When I register the channels of version 1.2 and version 2.0; the tool only checks resource with one version. 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.register rhn channel #rhnreg_ks --username=user --password=passwd --serverUrl=https://xmlrpc.rhn.errata.stage.redhat.com/XMLRPC #rhn-channel -a -c rhel-x86_64-server-6-ose-1.2-infrastructure -u user -p passwd #rhn-channel -a -c rhel-x86_64-server-6-ose-2.0-infrastructure -u user -p passwd 2.run command to check resource ./oo-admin-check-sources.py -r node Actual results: Output: 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 missing: ['jb-ews-2-x86_64-server-6-rpm', 'rhel-x86_64-server-6-ose-1.2-node'] Add the missing repositories with the following commands: # rhn-channel -a -c jb-ews-2-x86_64-server-6-rpm # rhn-channel -a -c rhel-x86_64-server-6-ose-1.2-node Checking channel/repository priorities Please re-run this tool after making any recommended repairs to this system there are two versions on the server , the tool check the resource with version 1.2 Expected results: The tool should show version conflict, then exit. Additional info:
Addressed in https://github.com/openshift/openshift-extras/pull/127
check it on the new version priority: ose-2.0:rhsm -> ose-2.0:rhn -> ose-1.2:rhsm -> ose-2.0:rhn
(In reply to Ma xiaoqiang from comment #3) > check it on the new version > priority: > ose-2.0:rhsm -> ose-2.0:rhn -> ose-1.2:rhsm -> ose-2.0:rhn the priority should be: ose-2.0:rhsm -> ose-2.0:rhn -> ose-1.2:rhsm -> ose-1.2:rhn