Bug 1097844
| Summary: | oo-admin-yum-validator doesn't detect OSE version 2.1 under RHN | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Luke Meyer <lmeyer> | |
| Component: | Installer | Assignee: | John W. Lamb <jolamb> | |
| Status: | CLOSED ERRATA | QA Contact: | ||
| Severity: | medium | Docs Contact: | ||
| Priority: | high | |||
| Version: | 2.0.0 | CC: | adellape, bleanhar, jokerman, libra-bugs, libra-onpremise-devel, mmccomas, xiama | |
| Target Milestone: | --- | Keywords: | ZStream | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
The oo-admin-yum-validator tool that shipped with OpenShift Enterprise release 2.1 did not automatically detect the installed product version, which is the default behavior when run without any arguments. Because the oo-diagnostics tool runs the oo-admin-yum-validator tool without any arguments, running the oo-diagnostics tool on release 2.1 reported a warning that it could not detect the product version. This bug fix adds this detection back into the oo-admin-yum-validator tool for release 2.1, and the oo-diagnostics tool no longer reports the warning.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1097920 (view as bug list) | Environment: | ||
| Last Closed: | 2014-06-23 07:37:44 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: | ||||
The version of oo-admin-yum-validator we ship for 2.1 currently has the version/product detection hardcoded, and needs the 2.1 detection added. Alternatively, we could pull in the version from here: https://github.com/openshift/openshift-extras/tree/master/admin/yum-validator and update the repos.ini file appropriately (and do a bunch of testing) There are the same issue under RHSM, the function 'guess_ose_version_and_subscription' doesn't support ose-2.1 The version of yum-validator on the openshift-extras master branch has been updated to fix this issue for RHSM and RHN: https://github.com/openshift/openshift-extras/tree/master I think it would be helpful to test this against 2.1 before we package it; pull down the updated version with git: git clone https://github.com/openshift/openshift-extras.git cd openshift-extras git checkout -b master origin/master Then run the oo-admin-yum-validator tool from inside the repository as usual, but with the -c option to specify the branch configuration file: cd admin/yum-validator ./oo-admin-yum-validator -c ./etc/repos.ini -r node etc. Please don't mark this as VERIFIED until an updated openshift-enterprise-yum-validator-2.1.x package appears in a puddle (I will update this ticket when that happens) Sorry for the departure from our normal procedure; the way this tool gets packaged is a little non-standard. configure the testing env, then run './oo-admin-yum-validator -r node -r node-eap ' Output: Detected OpenShift repository subscription managed by Red Hat Subscription Manager Detected OpenShift version 2.1 (In reply to Ma xiaoqiang from comment #9) > configure the testing env, then run './oo-admin-yum-validator -r node -r > node-eap ' > Output: > Detected OpenShift repository subscription managed by Red Hat Subscription > Manager > Detected OpenShift version 2.1 Is that all of the output? (In reply to John W. Lamb from comment #10) > (In reply to Ma xiaoqiang from comment #9) > > configure the testing env, then run './oo-admin-yum-validator -r node -r > > node-eap ' > > Output: > > Detected OpenShift repository subscription managed by Red Hat Subscription > > Manager > > Detected OpenShift version 2.1 > > Is that all of the output? I only paste part of the output # ./oo-admin-yum-validator -r node Output: If this system will be running OpenShift Enterprise and providing the JBossEAP cartridge, re-run this command with the --role=node-eap argument Detected OpenShift repository subscription managed by RHN Classic or RHN Satellite Detected OpenShift version 2.1 The required OpenShift repositories are missing: jb-ews-2-x86_64-server-6-rpm rhel-x86_64-server-6-rhscl-1 Please verify that an OpenShift 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 Please re-run this tool after making any recommended repairs to this system Check on puddle [2.1.z/2014-06.12]
Scenario 1:
Step 1: Register via rhn and enable the 'rhel-x86_64-server-6-ose-2.1-infrastructure' repo after installing the openshift via yum
Step 2: run the command
## oo-admin-yum-validator -p
<--snip-->
Detected OpenShift version 2.1
Detected OpenShift repository subscription managed by RHN Classic or RHN Satellite
The required OpenShift repositories are missing:
rhel-x86_64-server-6-rhscl-1
rhel-x86_64-server-6-ose-2.1-rhc
<--snip-->
Scenario 2:
Step 1: Register via rhn and enable the 'rhel-6-server-ose-2.1-jbosseap-rpms' repo after installing the openshift via yum
Step 2:
# oo-admin-yum-validator -p
<--snip-->
Detected OpenShift version 2.1
Detected OpenShift repository subscription managed by Red Hat Subscription Manager
The required OpenShift repositories are disabled:
rhel-server-rhscl-6-rpms
rhel-6-server-ose-2.1-rhc-rpms
rhel-6-server-ose-2.1-infra-rpms
Enable these repositories by running these commands:
<--snip-->
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0781.html |
Description of problem: oo-diagnostics calls oo-admin-yum-validator with no args, resulting in a warning because it can't detect the version. This is what I get under an RHN subscription: [cloud-user@node1 ~]$ sudo oo-admin-yum-validator No roles have been specified. Attempting to guess the roles for this system... If the roles listed below are incorrect or incomplete, please re-run this script with the appropriate --role arguments node node-eap Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite. Could not determine product version. Please re-run this script with the --oo-version argument. Please re-run this tool after making any recommended repairs to this system [cloud-user@node1 ~]$ sudo oo-admin-yum-validator -o 2.1 No roles have been specified. Attempting to guess the roles for this system... If the roles listed below are incorrect or incomplete, please re-run this script with the appropriate --role arguments node node-eap Detected OpenShift Enterprise repository subscription managed by RHN Classic or RHN Satellite. Checking if yum-plugin-priorities is installed Checking channel/repository priorities No problems could be detected! [cloud-user@node1 ~]$