Project

General

Profile

Actions

Bug #11040

closed

Host registration / subscription-manager problem

Added by David Moreira over 9 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I tried to register some CentOS (5.5, 5.8, 5.11) hosts on my Katello 2.2 server and have a trouble when installing subscription-manager.

I followed the procedure : http://www.katello.org/docs/user_guide/content_hosts/index.html
and got this error with an unknown mainloop.glib module :

# wget -O /etc/yum.repos.d/subscription-manager.repo http://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-5/dgoodwin-subscription-manager-epel-5.repo--2015-07-07 17:00:02--  http://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-5/dgoodwin-subscription-manager-epel-5.repo

Length: 354 [text/plain]
Saving to: `/etc/yum.repos.d/subscription-manager.repo'

100%[=======================================================================================================================================>] 354         --.-K/s   in 0s

2015-07-07 17:00:03 (45.0 MB/s) - `/etc/yum.repos.d/subscription-manager.repo' saved [354/354]

# yum install subscription-manager

Dependencies Resolved

=================================================================================================================================================================================
 Package                                     Arch                          Version                                    Repository                                            Size
=================================================================================================================================================================================
Installing:
 subscription-manager                        i386                          1.14.1-1.el5                               dgoodwin-subscription-manager                        1.2 M
Installing for dependencies:
 libnl                                       i386                          1.0-0.10.pre5.5                            base                                                  95 k
 python-dateutil                             noarch                        1.2-3.el5                                  base                                                 166 k
 python-dmidecode                            i386                          3.10.13-1.el5_5.1                          base                                                  83 k
 python-ethtool                              i386                          0.6-5.el5                                  base                                                  29 k
 python-rhsm                                 i386                          1.14.1-1.el5                               dgoodwin-subscription-manager                        152 k
 python-simplejson                           i386                          2.0.9-8.el5                                base                                                 140 k

Transaction Summary
=================================================================================================================================================================================
Install       7 Package(s)
Upgrade       0 Package(s)

Total download size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): python-ethtool-0.6-5.el5.i386.rpm                                                                                                                  |  29 kB     00:00
(2/7): python-dmidecode-3.10.13-1.el5_5.1.i386.rpm                                                                                                        |  83 kB     00:00
(3/7): libnl-1.0-0.10.pre5.5.i386.rpm                                                                                                                     |  95 kB     00:00
(4/7): python-simplejson-2.0.9-8.el5.i386.rpm                                                                                                             | 140 kB     00:00
(5/7): python-rhsm-1.14.1-1.el5.i386.rpm                                                                                                                  | 152 kB     00:00
(6/7): python-dateutil-1.2-3.el5.noarch.rpm                                                                                                               | 166 kB     00:00
(7/7): subscription-manager-1.14.1-1.el5.i386.rpm                                                                                                         | 1.2 MB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                            647 kB/s | 1.8 MB     00:02
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 signature: NOKEY, key ID 406521c7
dgoodwin-subscription-manager/gpgkey                                                                                                                      | 1.0 kB     00:00
Importing GPG key 0x406521C7 "dgoodwin_subscription-manager (None) <dgoodwin#subscription-manager@copr.fedorahosted.org>" from https://copr-be.cloud.fedoraproject.org/results/dgoodwin/subscription-manager/pubkey.gpg
Is this ok [y/N]: y
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
base/gpgkey                                                                                                                                               | 1.5 kB     00:00
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : python-dateutil                                                                                                                                           1/7
  Installing     : python-simplejson                                                                                                                                         2/7
  Installing     : python-rhsm                                                                                                                                               3/7
  Installing     : libnl                                                                                                                                                     4/7
  Installing     : python-ethtool                                                                                                                                            5/7
  Installing     : python-dmidecode                                                                                                                                          6/7
  Installing     : subscription-manager                                                                                                                                      7/7

Installed:
  subscription-manager.i386 0:1.14.1-1.el5

Dependency Installed:
  libnl.i386 0:1.0-0.10.pre5.5            python-dateutil.noarch 0:1.2-3.el5           python-dmidecode.i386 0:3.10.13-1.el5_5.1         python-ethtool.i386 0:0.6-5.el5
  python-rhsm.i386 0:1.14.1-1.el5         python-simplejson.i386 0:2.0.9-8.el5

Complete!

# rpm -Uvh http://katello/pub/katello-ca-consumer-latest.noarch.rpm
Retrieving http://katello/pub/katello-ca-consumer-latest.noarch.rpm
Preparing...                ########################################### [100%]
   1:katello-ca-consumer-kat########################################### [100%]
Unable to find Subscription Manager module.
Error: No module named mainloop.glib


# subscription-manager register --org=Default_Organization --environment=Library
Unable to find Subscription Manager module.
Error: No module named mainloop.glib
# subscription-manager
Unable to find Subscription Manager module.
Error: No module named mainloop.glib
Actions #1

Updated by Eric Helms over 9 years ago

  • Status changed from New to Need more information
  • Translation missing: en.field_release set to 61
  • Triaged changed from No to Yes

Our EL5 client repositories provide a specific version of subscription-manager. I would recommend uninstall the one from the copr repositories, enabling our client repository and allowing it to be installed from there.

Actions #2

Updated by David Moreira over 9 years ago

Eric Helms wrote:

Our EL5 client repositories provide a specific version of subscription-manager. I would recommend uninstall the one from the copr repositories, enabling our client repository and allowing it to be installed from there.

Thank you but could you please give me the link of this repository, the only one I can find is the one I gave above.

Actions #3

Updated by David Moreira over 9 years ago

I found this repository, I think it's the good one, but it seems to have a problem with it :

# wget -O /etc/yum.repos.d/subscription-manager.repo http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-subscription-manager.repo
--2015-07-08 15:23:29--  http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-subscription-manager.repo
Length: 540 [text/plain]
Saving to: `/etc/yum.repos.d/subscription-manager.repo'

100%[=======================================================================================================================================>] 540         --.-K/s   in 0s

2015-07-08 15:23:30 (9.93 MB/s) - `/etc/yum.repos.d/subscription-manager.repo' saved [540/540]

# yum install subscription-manager
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
epel-subscription-manager/primary_db                                                                                                                      | 9.6 kB     00:00
http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-5/i386/repodata/0fae670cca2c4686c9483ec90294f0e6a9799ece92635e3112e54aa84553763e-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/0fae670cca2c4686c9483ec90294f0e6a9799ece92635e3112e54aa84553763e-primary.sqlite.bz2 from epel-subscription-manager: [Errno 256] No more mirrors to try.

Could you confirm that ?

Actions #4

Updated by David Moreira over 9 years ago

I downloaded manually the rpms from the repository (subscription-manager-1.13.9-1.el5.centos.i386.rpm, subscription-manager-1.13.12-1.el5.centos.i386.rpm and python-rhsm-1.10.3-1.el5.centos.i386.rpm), but both subscription-manager packages have the same problem :

rpm -Uvh subscription-manager-1.13.9-1.el5.centos.i386.rpm
error: Failed dependencies:
        python-rhsm >= 1.13.5 is needed by subscription-manager-1.13.9-1.el5.centos.i386
rpm -Uvh subscription-manager-1.13.12-1.el5.centos.i386.rpm
error: Failed dependencies:
        python-rhsm >= 1.13.5 is needed by subscription-manager-1.13.12-1.el5.centos.i386

and the version of python-rshm available is only 1.10.3 and impossible to find a newer version... I'm lost with that.

Actions #5

Updated by Eric d over 9 years ago

David Moreira wrote:

I found this repository, I think it's the good one, but it seems to have a problem with it :

David - I had (what I think is) the same problem you ran into. I mirrored this repository locally:

https://fedorapeople.org/groups/katello/releases/yum/2.2/client/RHEL/5Server/x86_64/

On my client CentOS 5 x86_64 host, I had to remove python-rhsm package and install from ^ along with subscription-manager.

They are both version 1.11.3-x

Actions #6

Updated by David Moreira over 9 years ago

Eric d wrote:

David Moreira wrote:

I found this repository, I think it's the good one, but it seems to have a problem with it :

David - I had (what I think is) the same problem you ran into. I mirrored this repository locally:

https://fedorapeople.org/groups/katello/releases/yum/2.2/client/RHEL/5Server/x86_64/

On my client CentOS 5 x86_64 host, I had to remove python-rhsm package and install from ^ along with subscription-manager.

They are both version 1.11.3-x

Thank you, it worked for me on my x86_64 clients.

Now, I'm principally searching the same for my i386 clients because I have a lot to manage with katello but this version seems to be unreacheable

Actions #7

Updated by David Moreira over 9 years ago

I finally found a version working on CentOS 5 i386 hosts, the exact same version as above (1.11.3-x), and it is available on the Scientific Linux repository.

Thanks for help

Actions #8

Updated by Eric d over 9 years ago

David Moreira wrote:

I finally found a version working on CentOS 5 i386 hosts, the exact same version as above (1.11.3-x), and it is available on the Scientific Linux repository.

Thanks for help

If you find that doesn't work (not sure if Katello/Foreman version is specific to Katello), I will be building the i386 packages from source later this month and can probably get a binary to you if you need it.

Actions #9

Updated by David Moreira over 9 years ago

Fine. I'll make my tests with this version for the moment and test your version when available.

Actions #10

Updated by Eric Helms over 9 years ago

  • Translation missing: en.field_release changed from 61 to 31

Reading through the replies, what if anything do you need from the Katello team ?

Actions #11

Updated by Stephen Benjamin over 9 years ago

  • Translation missing: en.field_release changed from 31 to 70

Mass move to 2.4.0

Actions #12

Updated by David Moreira over 9 years ago

I made all my tests on versions 5.2, 5.5, 5.8 and 5.11 of CentOS on i386 architecture and all is working fine.
I found and used the Koji version of subscription-manager to do them.
Thanks for help, the problem is solved and can be closed now.
Best regards

Actions #13

Updated by Justin Sherrill about 9 years ago

  • Translation missing: en.field_release changed from 70 to 86
Actions #14

Updated by Eric Helms over 8 years ago

  • Category set to Client/Agent
  • Status changed from Need more information to Resolved
Actions

Also available in: Atom PDF