Bug 1311754

Summary: RHCI OOO ISO install breaks subscription-manager
Product: Red Hat Quickstart Cloud Installer Reporter: Tasos Papaioannou <tpapaioa>
Component: ISO InstallerAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED DEFERRED QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0CC: dajohnso, jesusr, tcarlin, tsanders
Target Milestone: TP3Keywords: Triaged
Target Release: 1.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-25 17:28:55 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:
Bug Depends On:    
Bug Blocks: 1315447    

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