Bug 1175200 - Traceback is seen when runing oo-admin-yum-validator with register rhn
Summary: Traceback is seen when runing oo-admin-yum-validator with register rhn
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: John W. Lamb
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-17 10:17 UTC by wangyanyan
Modified: 2015-09-18 20:25 UTC (History)
7 users (show)

Fixed In Version: openshift-enterprise-yum-validator-2.2.3-1.el6op
Doc Type: Bug Fix
Doc Text:
Cause: A typographical error was made in a variable name inside of some RHN-specific code. Consequence: An unhandled exception was raised when the non-existent variable was referenced. Fix: The typographical error was corrected. Result: oo-admin-yum-validator now works properly for RHN repositories.
Clone Of:
Environment:
Last Closed: 2015-09-18 20:24:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description wangyanyan 2014-12-17 10:17:28 UTC
Description of problem:
Execute "oo-admin-yum-validator -o 2.2 --role broker --role client --role node -p" in new env, it throws out traceback 

Version-Release number of selected component (if applicable):
ose2.2.3/2014-12-16.1

How reproducible:
Always

Steps to Reproduce:
setup:
New rhel66 env:install the latest openshift-enterprise-yum-validator
register rhn
1.oo-admin-yum-validator -o 2.2 --role broker --role client --role node -p
2.New env register rhsm
oo-admin-yum-validator -o 2.2 --role broker --role client --role node -p

Actual results:
1.# oo-admin-yum-validator -o 2.2 --role broker --role client --role node -p
Detected OpenShift repository subscription managed by RHN Classic or RHN Satellite
The required OpenShift repositories are missing:
    jb-ews-2-x86_64-server-6-rpm
    rhel-x86_64-server-6-ose-2.2-infrastructure
    rhel-x86_64-server-6-ose-2.2-rhc
    rhel-x86_64-server-6-rhscl-1
    rhel-x86_64-server-6-ose-2.2-node
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
Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Resolving repository/channel/subscription priority conflicts
To resolve conflicting repositories, update /etc/yum/pluginconf.d/rhnplugin.conf with the following changes:
    Set "priority=20" in the [rhel-x86_64-server-6] section
Repositories have been found which are missing one or more required package exclusions.
To prevent problems due to package conflicts, modify these repositories according to the directions given below.
Set package exclusions for RHN-managed repos by updating /etc/yum/pluginconf.d/rhnplugin.conf with the following changes:
Traceback (most recent call last):
  File "/usr/bin/oo-admin-yum-validator", line 1078, in <module>
    validate_yum()
  File "/usr/bin/oo-admin-yum-validator", line 1075, in validate_yum
    sys.exit(yum_vdtr.main())
  File "/usr/bin/oo-admin-yum-validator", line 970, in main
    self.run_checks()
  File "/usr/bin/oo-admin-yum-validator", line 947, in run_checks
    if not (self.set_excludes() or self.opts.report_all):
  File "/usr/bin/oo-admin-yum-validator", line 778, in set_excludes
    self._output_excludes()
  File "/usr/bin/oo-admin-yum-validator", line 735, in _output_excludes
    (exclusion, repoid))
NameError: global name 'exclusion' is not defined
2.# oo-admin-yum-validator -o 2.2 --role broker --role client --role node -p
Detected OpenShift repository subscription managed by Red Hat Subscription Manager

Required OpenShift repositories have been found which are currently disabled. Enable them according to the following directions.
Enable Yum and/or locally-managed RHSM repositories by running:
    # yum-config-manager --enable rhel-server-rhscl-6-rpms
    # yum-config-manager --enable rhel-6-server-ose-2.2-rhc-rpms
    # yum-config-manager --enable rhel-6-server-ose-2.2-node-rpms
    # yum-config-manager --enable jb-ews-2-for-rhel-6-server-rpms
    # yum-config-manager --enable rhel-6-server-ose-2.2-infra-rpms
Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Resolving repository/channel/subscription priority conflicts
To resolve conflicting repositories, update repo priority by running:
    # yum-config-manager --setopt=rhel-6-server-rpms.priority=20 rhel-6-server-rpms --save
Repositories have been found which are missing one or more required package exclusions.
To prevent problems due to package conflicts, modify these repositories according to the directions given below.
Set package exclusions for Yum repositories and/or locally-managed RHSM repositories by running:
    # yum-config-manager --setopt=jb-ews-2-for-rhel-6-server-rpms.exclude="httpd httpd-tools mod_ssl" jb-ews-2-for-rhel-6-server-rpms --save
    # yum-config-manager --setopt=rhel-6-server-rpms.exclude="tomcat6*" rhel-6-server-rpms --save
    # yum-config-manager --setopt=rhel-6-server-ose-2.2-node-rpms.exclude="facter" rhel-6-server-ose-2.2-node-rpms --save
Please re-run this tool after making any recommended repairs to this system



Expected results:
1.Should prompt correct exclude info

Additional info:
Env register rhsm: execute "yum-config-manager --setopt=jb-ews-2-for-rhel-6-server-rpms.exclude="httpd httpd-tools mod_ssl" jb-ews-2-for-rhel-6-server-rpms --save" success
...
exclude = httpd,
   httpd-tools,
   mod_ssl
...

Comment 3 wangyanyan 2014-12-23 05:47:17 UTC
Verify steps:
env:
openshift-enterprise-yum-validator-2.2.2-1.git.13.8c80de9.el6op.noarch.rpm yum-plugin-priorities-1.1.30-17.el6_5.noarch.rpm

Actions:
Register rhn
oo-admin-yum-validator -o 2.2 --role broker --role client --role node -p

Results:
# oo-admin-yum-validator  -o 2.2 --role broker --role client --role node -p
Detected OpenShift repository subscription managed by RHN Classic or RHN Satellite

The required OpenShift repositories are missing:
    jb-ews-2-x86_64-server-6-rpm
    rhel-x86_64-server-6-ose-2.2-infrastructure
    rhel-x86_64-server-6-ose-2.2-rhc
    rhel-x86_64-server-6-rhscl-1
    rhel-x86_64-server-6-ose-2.2-node
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
Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
Resolving repository/channel/subscription priority conflicts
To resolve conflicting repositories, update /etc/yum/pluginconf.d/rhnplugin.conf with the following changes:
    Set "priority=20" in the "[rhel-x86_64-server-6]" section, creating the section if needed
Repositories have been found which are missing one or more required package exclusions.
To prevent problems due to package conflicts, modify these repositories according to the directions given below.
Set package exclusions for RHN-managed repos by updating /etc/yum/pluginconf.d/rhnplugin.conf with the following changes:
    Set "exclude=tomcat6*" in the "[rhel-x86_64-server-6]" section, creating the section if needed
Please re-run this tool after making any recommended repairs to this system

Comment 5 Miciah Dashiel Butler Masters 2015-09-18 20:25:03 UTC
This fix was shipped in RHBA-2015:0019 "Red Hat OpenShift Enterprise 2.2.3 bug fix and enhancement update".


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