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 ...
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
This fix was shipped in RHBA-2015:0019 "Red Hat OpenShift Enterprise 2.2.3 bug fix and enhancement update".