Bug 1024532
| Summary: | oo-admin-check-sources does not handle the case of a misconfigured EUS subscription | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Brenton Leanhardt <bleanhar> |
| Component: | Cluster Version Operator | Assignee: | John W. Lamb <jolamb> |
| Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.0.0 | CC: | libra-onpremise-devel, xiama |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-16 09:11:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Addressed in https://github.com/openshift/openshift-extras/tree/enterprise-2.0/admin/check-sources # ./oo-admin-check-sources.py -r node -p 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 The required OpenShift Enterprise repositories are disabled: jb-ews-2-for-rhel-6-server-rpms Enable these repositories by running these commands: # subscription-manager repos --enable=jb-ews-2-for-rhel-6-server-rpms The required OpenShift Enterprise repositories are missing: rhel-server-rhscl-6-rpms rhel-6-server-rpms 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 Required package yum-plugin-priorities is not installed. Install the package with the following command: # yum install yum-plugin-priorities Checking channel/repository priorities The calculated priorities for the following repoids are too large (>= 99) rhel-server-ose-1.2-node-6-rpms Please re-run this script with the --fix argument to set an appropriate priority, or update the system priorities by hand Please re-run this tool after making any recommended repairs to this system |
Description of problem: In QA I registered a system to RHN Classic with an EUS subscription to see what would happen. After discussion we thought it would be best if the tool simply stopped after the 'The required OpenShift Enterprise repositories are missing:' line and forced the user to resolve the situation before continuing. --------------------------------- [root@bleanhar-dev2 ~]# python oo-admin-check-sources.py --role=node --role=broker --oo_version=1.2 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 rhel-x86_64-server-6-ose-1.2-infrastructure rhel-x86_64-server-6 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 channel/repository priorities Traceback (most recent call last): File "oo-admin-check-sources.py", line 405, in <module> oacs.main() File "oo-admin-check-sources.py", line 376, in main self.verify_priorities() File "oo-admin-check-sources.py", line 232, in verify_priorities self.verify_rhel_priorities(ose, rhel) File "oo-admin-check-sources.py", line 209, in verify_rhel_priorities rhel_pri = self.oscs.repo_priority(rhel6_repo) File "/root/check_sources.py", line 92, in repo_priority repo = self._resolve_repoid(repoid) File "/root/check_sources.py", line 80, in _resolve_repoid repo = self.yb.repos.getRepo(repoid) File "/usr/lib/python2.6/site-packages/yum/repos.py", line 149, in getRepo 'Error getting repository data for %s, repository not found' % (repoid) yum.Errors.RepoError: Error getting repository data for rhel-x86_64-server-6, repository not founder of selected component (if applicable):