Bug 1167247 - Syntax of jb-ews repo priority suggested by oo-installer is wrong
Summary: Syntax of jb-ews repo priority suggested by oo-installer is wrong
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 2.2.0
Hardware: Unspecified
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: John W. Lamb
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-24 09:54 UTC by Siamak Sadeghianfar
Modified: 2015-01-08 15:34 UTC (History)
7 users (show)

Fixed In Version: openshift-enterprise-yum-validator-2.2.3-1.el6op
Doc Type: Bug Fix
Doc Text:
Cause: In a previous release, some changes were made so that the code that generates certain output could be made less redundant. This introduced a formatting bug for the RHN-specific output. Consequence: Certain messages - in particular "exclude" repository settings advice - contained improperly quoted portions. This could lead users to break their RHN configurations. Fix: The logic for quoting parameters was updated so it could be enabled only when appropriate Result: The advice generated by oo-admin-yum-validator is correct.
Clone Of:
Environment:
Last Closed: 2015-01-08 15:34:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0019 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.2.3 bug fix and enhancement update 2015-01-08 20:33:24 UTC

Description Siamak Sadeghianfar 2014-11-24 09:54:40 UTC
When installing OSE 2.2 on RHEL 6.6 through oo-installer and rhn the installation failed due to lack of correct repo priorities. The installer suggested the correct config to be added to rhnplugin.conf however the syntax is incorrect:

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

Checking if yum-plugin-priorities is installed
Checking channel/repository priorities
The following repositories need package exclusions set:
    jb-ews-2-x86_64-server-6-rpm
Make the following modifications to /etc/yum/pluginconf.d/rhnplugin.conf
Add the following to the [jb-ews-2-x86_64-server-6-rpm] section:
    exclude="httpd httpd-tools mod_ssl"
Please re-run this tool after making any recommended repairs to this system


The "exclude" directive suggested contains double-quotes however the plugin does not recognise the excluded packages unless the double-quotes are removed:

exclude=httpd httpd-tools mod_ssl

Comment 2 John W. Lamb 2014-11-24 20:21:40 UTC
Thanks for noticing this, I'll make sure it's fixed in the next oo-admin-yum-validator update

Comment 4 wangyanyan 2014-12-17 10:21:01 UTC
Because Bug 1175200 when register rhn didn't verify

Verify when register rhsm
1. 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


2.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

result is correct:
...
exclude = httpd,
   httpd-tools,
   mod_ssl
...

Comment 5 wangyanyan 2014-12-23 09:52:41 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
1.rhn-channel -u user -p password  -a -c jb-ews-2-x86_64-server-6-rpm
2.oo-admin-yum-validator -o 2.2 --role broker --role client --role node -p
3.oo-admin-yum-validator -o 2.2 --role broker --role client --role node -a

Results:
2.# 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:
    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
    Set "priority=30" in the "[jb-ews-2-x86_64-server-6-rpm]" 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
    Set "exclude=httpd httpd-tools mod_ssl" in the "[jb-ews-2-x86_64-server-6-rpm]" section, creating the section if needed
Please re-run this tool after making any recommended repairs to this system


3.# oo-admin-yum-validator -o 2.2 --role broker --role client --role node -a
Detected OpenShift repository subscription managed by RHN Classic or RHN Satellite

The required OpenShift repositories are missing:
    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
Setting priority for repository rhel-x86_64-server-6 to 20
Setting priority for repository jb-ews-2-x86_64-server-6-rpm to 30
Repositories have been found which are missing one or more required package exclusions.
To prevent problems due to package conflicts, package exclusions are being set for the following repositories:
    jb-ews-2-x86_64-server-6-rpm: httpd httpd-tools mod_ssl
    rhel-x86_64-server-6: tomcat6*

cat /etc/yum/pluginconf.d/rhnplugin.conf 
...
[jb-ews-2-x86_64-server-6-rpm]
priority = 30
exclude = httpd mod_ssl httpd-tools

Comment 7 errata-xmlrpc 2015-01-08 15:34:33 UTC
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.

https://rhn.redhat.com/errata/RHBA-2015-0019.html


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