[Katello 2.3] Can't install subscription-manager on SL 7.1 server due to python-rhsm ver conflict

When I try to install the katello-agent on the Katello server itself, I get
a version conflict under Scientific Linux 7.1 x86_64

yum install katello-agent

Loaded plugins: priorities
28 packages excluded due to repository priority protections
Resolving Dependencies
–> Running transaction check
—> Package katello-agent.noarch 0:2.3.1-4.el7 will be installed
–> Processing Dependency: python-pulp-agent-lib >= 2.6 for package:
katello-agent-2.3.1-4.el7.noarch
–> Processing Dependency: python-gofer-proton >= 2.5 for package:
katello-agent-2.3.1-4.el7.noarch
–> Processing Dependency: pulp-rpm-handlers >= 2.6 for package:
katello-agent-2.3.1-4.el7.noarch
–> Processing Dependency: gofer >= 2.5 for package:
katello-agent-2.3.1-4.el7.noarch
–> Processing Dependency: subscription-manager for package:
katello-agent-2.3.1-4.el7.noarch
–> Running transaction check
—> Package gofer.noarch 0:2.6.2-1.el7 will be installed
—> Package pulp-rpm-handlers.noarch 0:2.6.2-1.el7 will be installed
—> Package python-gofer-proton.noarch 0:2.6.2-1.el7 will be installed
–> Processing Dependency: python-qpid-proton >= 0.9-1.20150219 for
package: python-gofer-proton-2.6.2-1.el7.noarch
—> Package python-pulp-agent-lib.noarch 0:2.6.2-1.el7 will be installed
—> Package subscription-manager.x86_64 0:1.13.22-1.sl7 will be installed
–> Processing Dependency: python-rhsm >= 1.13.10 for package:
subscription-manager-1.13.22-1.sl7.x86_64
–> Processing Dependency: usermode for package:
subscription-manager-1.13.22-1.sl7.x86_64
–> Processing Dependency: python-ethtool for package:
subscription-manager-1.13.22-1.sl7.x86_64
–> Processing Dependency: python-dmidecode for package:
subscription-manager-1.13.22-1.sl7.x86_64
–> Processing Dependency: pygobject2 for package:
subscription-manager-1.13.22-1.sl7.x86_64
–> Running transaction check
—> Package pygobject2.x86_64 0:2.28.6-11.el7 will be installed
—> Package python-dmidecode.x86_64 0:3.10.13-11.el7 will be installed
—> Package python-ethtool.x86_64 0:0.8-5.el7 will be installed
–> Processing Dependency: libnl.so.1()(64bit) for package:
python-ethtool-0.8-5.el7.x86_64
—> Package python-qpid-proton.x86_64 0:0.9-2.el7 will be installed
—> Package subscription-manager.x86_64 0:1.13.22-1.sl7 will be installed
–> Processing Dependency: python-rhsm >= 1.13.10 for package:
subscription-manager-1.13.22-1.sl7.x86_64
—> Package usermode.x86_64 0:1.111-5.el7 will be installed
–> Running transaction check
—> Package libnl.x86_64 0:1.1.4-3.el7 will be installed
—> Package subscription-manager.x86_64 0:1.13.22-1.sl7 will be installed
–> Processing Dependency: python-rhsm >= 1.13.10 for package:
subscription-manager-1.13.22-1.sl7.x86_64
–> Finished Dependency Resolution
Error: Package: subscription-manager-1.13.22-1.sl7.x86_64 (sl)
Requires: python-rhsm >= 1.13.10
Installed: python-rhsm-1.8.0-2.pulp.el7.x86_64 (@katello-pulp)
python-rhsm = 1.8.0-2.pulp.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Same problem here on CentOS 7.1. Any ideas?

I was able to temporarily fix the issue by disabling the katello pulp repo
in /etc/yum.repos.d.

··· Am Dienstag, 20. Oktober 2015 15:20:06 UTC+2 schrieb Oliver Weinmann: > > Same problem here on CentOS 7.1. Any ideas? >

Updated EL6/7 Subscription Manager Packages are available under:
https://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-6/dgoodwin-subscription-manager-epel-6.repo
https://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-7/dgoodwin-subscription-manager-epel-7.repo

More Infos under:
http://www.katello.org/docs/2.3/user_guide/content_hosts/index.html

This is still an open issue. Is seems katello-pulp works with python-rhsm
-1.15.4-5
Thanks for this answer!

terça-feira, 20 de Outubro de 2015 às 14:29:53 UTC+1, Oliver Weinmann
escreveu:

··· > > I was able to temporarily fix the issue by disabling the katello pulp repo > in /etc/yum.repos.d. > > Am Dienstag, 20. Oktober 2015 15:20:06 UTC+2 schrieb Oliver Weinmann: >> >> Same problem here on CentOS 7.1. Any ideas? >> >

Sorry to piggyback on this old thread, but this is still an issue on
up-to-date CentOS 7 + Katello 2.4 and it's not documented in the link
provided. It seems like the katello-pulp repository provides an outdated
version of python-rhsm but is configured as high-priority repository. The
version of subscription-manager available in CentOS' repositories requires
at least python-rhsm >= 1.15 while katello-pulp provides python-rhsm-1.8.0.

[root@capsule-01 tmp]# yum install subscription-manager
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile

  • base: centos.copahost.com
  • epel: epel.besthosting.ua
  • extras: artfiles.org
  • updates: artfiles.org
    25 packages excluded due to repository priority protections
    Resolving Dependencies
    –> Running transaction check
    —> Package subscription-manager.x86_64 0:1.15.9-15.el7.centos.0.1 will be
    installed
    –> Processing Dependency: python-rhsm >= 1.15.0 for package: subscription-
    manager-1.15.9-15.el7.centos.0.1.x86_64
    –> Processing Dependency: usermode for package: subscription-manager-1.15.9
    -15.el7.centos.0.1.x86_64
    –> Processing Dependency: python-ethtool for package: subscription-manager-
    1.15.9-15.el7.centos.0.1.x86_64
    –> Processing Dependency: python-dmidecode for package: subscription-
    manager-1.15.9-15.el7.centos.0.1.x86_64
    –> Processing Dependency: python-dateutil for package: subscription-manager
    -1.15.9-15.el7.centos.0.1.x86_64
    –> Running transaction check
    —> Package python-dateutil.noarch 0:1.5-7.el7 will be installed
    —> Package python-dmidecode.x86_64 0:3.10.13-11.el7 will be installed
    –> Processing Dependency: libxml2-python for package: python-dmidecode-3.10
    .13-11.el7.x86_64
    –> Processing Dependency: libxml2mod.so()(64bit) for package: python-
    dmidecode-3.10.13-11.el7.x86_64
    —> Package python-ethtool.x86_64 0:0.8-5.el7 will be installed
    –> Processing Dependency: libnl.so.1()(64bit) for package: python-ethtool-
    0.8-5.el7.x86_64
    —> Package subscription-manager.x86_64 0:1.15.9-15.el7.centos.0.1 will be
    installed
    –> Processing Dependency: python-rhsm >= 1.15.0 for package: subscription-
    manager-1.15.9-15.el7.centos.0.1.x86_64
    —> Package usermode.x86_64 0:1.111-5.el7 will be installed
    –> Running transaction check
    —> Package libnl.x86_64 0:1.1.4-3.el7 will be installed
    —> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.2 will be installed
    —> Package subscription-manager.x86_64 0:1.15.9-15.el7.centos.0.1 will be
    installed
    –> Processing Dependency: python-rhsm >= 1.15.0 for package: subscription-
    manager-1.15.9-15.el7.centos.0.1.x86_64
    –> Finished Dependency Resolution
    Error: Package: subscription-manager-1.15.9-15.el7.centos.0.1.x86_64 (base)
    Requires: python-rhsm >= 1.15.0
    Available: python-rhsm-1.8.0-2.pulp.el7.x86_64 (katello-pulp)
    python-rhsm = 1.8.0-2.pulp.el7
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

Should this be reported to Katello as a bug (I can't evaluate whether that
version of python-rhsm is still needed or not) or to the katello.org
repository on GitHub to add further documentation?

Greetings
Marvin

··· Am Dienstag, 20. Oktober 2015 18:53:13 UTC+2 schrieb ehar...@gmail.com: > > Updated EL6/7 Subscription Manager Packages are available under: > > https://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-6/dgoodwin-subscription-manager-epel-6.repo > > https://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-7/dgoodwin-subscription-manager-epel-7.repo > > More Infos under: > http://www.katello.org/docs/2.3/user_guide/content_hosts/index.html >

Thanks bro! it worked for me…I got the epel7 for my OEL7 and worked fine.

··· On Tuesday, October 20, 2015 at 10:23:13 PM UTC+5:30, ehar...@gmail.com wrote: > > Updated EL6/7 Subscription Manager Packages are available under: > > https://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-6/dgoodwin-subscription-manager-epel-6.repo > > https://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-7/dgoodwin-subscription-manager-epel-7.repo > > More Infos under: > http://www.katello.org/docs/2.3/user_guide/content_hosts/index.html >