Bug 1022828 - oo-admin-check-source tool can not guess the system is installed by rhn or rhsm.
Summary: oo-admin-check-source tool can not guess the system is installed by rhn or rhsm.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: John W. Lamb
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-24 06:43 UTC by Ma xiaoqiang
Modified: 2017-03-08 17:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-16 09:11:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ma xiaoqiang 2013-10-24 06:43:37 UTC
Description of problem:
When I register some channels, the tools can not guess the system is installed by rhn or rhsm. Then the tools exit.

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 jbappplatform-6-x86_64-server-6-rpm -u user -p passwd 
#rhn-channel -a -c jb-ews-2-x86_64-server-6-rpm -u user -p passwd 
2.run command  to check resource 
./oo-admin-check-sources.py -o 1.2 -r node 
         
Actual results:
Output:
NOTE: If this system will be providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument
ERROR: Could not determine subscription type or product version. Register your system to RHSM or RHN and re-run this script with the --oo_version argument
Then the tools exit, does not continue the check process.

Expected results:
The tools shoud guess the system is installed by rhn or rhsm, and continue the check process.

Additional info:
I think we can allow user to assign the intalling method by adding a parameter.

Comment 2 John W. Lamb 2013-10-24 16:01:10 UTC
Fixed in https://github.com/openshift/openshift-extras/pull/107

Tested and merged, updated code available in https://github.com/openshift/openshift-extras/tree/enterprise-2.0

Comment 3 Ma xiaoqiang 2013-10-25 02:26:50 UTC
check it on new version
# rhn-channel -l
rhel-x86_64-server-6
# ./oo-admin-check-sources.py -r node -o 1.2

Output
If this system will be providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument
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']


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