Bug 1311754 - RHCI OOO ISO install breaks subscription-manager
Summary: RHCI OOO ISO install breaks subscription-manager
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: ISO Installer
Version: 1.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: TP3
: 1.0
Assignee: Jesus M. Rodriguez
QA Contact: Tasos Papaioannou
URL:
Whiteboard:
: 1312063 (view as bug list)
Depends On:
Blocks: rhci-sprint-14
TreeView+ depends on / blocked
 
Reported: 2016-02-24 22:12 UTC by Tasos Papaioannou
Modified: 2019-02-25 17:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-25 17:28:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tasos Papaioannou 2016-02-24 22:12:05 UTC
Description of problem:

Installing RHCI OOO leads to a broken subscription-manager module:

# yum repolist
Plugin "product-id" can't be imported
Plugin "subscription-manager" can't be imported
Loaded plugins: langpacks
repolist: 0

# subscription-manager status
Unable to find Subscription Manager module.
Error: cannot import name Versions

Attempts to install packages on the OSP Director via yum during a deployment fail.

Version-Release number of selected component (if applicable):

RHCIOOO-7-RHEL-7-20160223.t.0

How reproducible:

100%

Steps to Reproduce:
1.) Install OSP Director via RHCI OOO ISO.
2.) See above errors in yum or subscription-manager commands.

Actual results:

subscription-manager yum plugins can't be loaded.

Expected results:

No errors in yum or subscription-manager.

Additional info:

The ISO installs

subscription-manager-1.13.22-1.el7.x86_64
python-rhsm-1.15.4-5.el7.x86_64

The version of python-rhsm installed is too new for the version of subscription-manager. According to https://rhn.redhat.com/errata/RHBA-2015-0502.html , subscription-manager-1.13.22-1.el7.x86_64 and python-rhsm-1.13.10-1.el7.x86_64 were released together.

Comment 1 Dave Johnson 2016-02-25 16:34:57 UTC
*** Bug 1312063 has been marked as a duplicate of this bug. ***

Comment 4 Thom Carlin 2016-03-18 18:19:20 UTC
Problem still exists on TP3_RC1

Comment 5 Thom Carlin 2016-03-31 10:25:40 UTC
Problem still exists on TP3 RC2

Comment 6 Jesus M. Rodriguez 2016-04-01 01:57:11 UTC
What tasos said in the original comment, the problem is the python-rhsm is the 7.2 version while the subscription-manager is from 7.1.

I installed a minimal RHEL 7.1 it had the following:

[root@localhost ~]# rpm -q python-rhsm subscription-manager
python-rhsm-1.13.10-1.el7.x86_64
subscription-manager-1.13.22-1.el7.x86_64

# yum repolist
Loaded plugins: product-id, subscription-manager
This system is not registered to ....

So I installed python-rhsm-1.15.4-5 to match the OOO RHEL:

# rpm -q python-rhsm subscription-manager
python-rhsm-1.15.4-5.el7.x86_64
subscription-manager-1.13.22-1.el7.x86_64

And low and behold, repolist breaks:

# yum repolist
Plugin "product-id" can't be imported
Plugin "subscription-manager" can't be imported
repolist: 0

Comment 7 Jesus M. Rodriguez 2016-04-01 02:01:36 UTC
We need to do one of two things:

1) upgrade subscription-manager to 1.15.9-15

[root@localhost ~]# rpm -q python-rhsm subscription-manager
python-rhsm-1.15.4-5.el7.x86_64
subscription-manager-1.15.9-15.el7.x86_64

[root@localhost ~]# yum repolist
Plugin "search-disabled-repos" requires API 2.7. Supported API is 2.6.
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

2) downgrade python-rhsm to 1.13.10-1

[root@localhost ~]# rpm -q python-rhsm subscription-manager
python-rhsm-1.13.10-1.el7.x86_64
subscription-manager-1.13.22-1.el7.x86_64

[root@localhost ~]# yum repolist
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repolist: 0

Comment 9 Tasos Papaioannou 2016-04-04 16:04:21 UTC
Verified on QCIOOO-7-RHEL-7-20160401.t.3 and QCIOOO-8.0-RHEL-7-20160331.t.1.

Comment 10 Sudhir Mallamprabhakara 2019-02-25 17:28:55 UTC
QCI has sunset. Closing the BZ's


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