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

Also available in: Atom PDF