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.
*** Bug 1312063 has been marked as a duplicate of this bug. ***
Problem still exists on TP3_RC1
Problem still exists on TP3 RC2
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
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
Fixed in http://rhcidev.satellite.lab.eng.rdu2.redhat.com/devel/candidate-trees/RHCI/latest-QCIOOO--RHEL-7/
Verified on QCIOOO-7-RHEL-7-20160401.t.3 and QCIOOO-8.0-RHEL-7-20160331.t.1.
QCI has sunset. Closing the BZ's