Red Hat Bugzilla – Bug 847060
missing dependency for subscription-manager: pygobject2
Last modified: 2013-01-07 22:58:28 EST
Description of problem:
'subscription-manager' RPM is missing a dependency on the 'pygobject2' RPM.
Version-Release number of selected component (if applicable):
Was found on RHEL 5.8.
After installing RHEL 5.8 via the graphical installer with a very tight, specific set of packages based up on our business needs, we found that 'subscription-manager' was installed (due to being a 'mandatory' install included with 'base' package group), but pygobject2 was *NOT* installed.
when /etc/cron.daily/rhsmd ran the first time, we received the following cron error:
Traceback (most recent call last):
File "/usr/libexec/rhsmd", line 21, in ?
ImportError: No module named gobject
It was determined that pygobject2 was never installed on the host as it never listed as an RPM dependency for the 'subscription-manager' RPM. Once we added the package 'pygobject2', rhsmd ran without error.
All RPMs should have all dependencies defined. Specifically, in this case, the RPM 'subscription-manager' should list the RPM 'pygobject2' as as a dependency to ensure this package is installed.
Upon re-installing RHEL5.8 via the graphical installer, accepting *ALL* defaults with the exception of disabling SELinux, we found that pygobject2 was actually installed. It appeared to have been installed as a dependency of the following packages, which were on the system:
[root@localhost ~]# rpm -q --whatrequires pygobject2
So it appears that under most situations, rhsmd probably works fine because pygobject2 was installed due to dependency linking with these other packages. However, in our case, we didn't install any of those packages, but subscription-manager was still installed and we ended up not having pygobject2.
[root@localhost ~]# rpm -q subscription-manager
fixed in master at 61a277b49930a74ef37b302a4d767aa2f9926c66
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release. Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products. This request is not yet committed for inclusion in
Testing with latest in brew ^^
As shown here, /usr/libexec/rhsmd is provided by subscription-manager:
[root@jmolet-vm0 brew]# rpm -qf /usr/libexec/rhsmd
However, pygobject2 is now provided by subscription-manager-gui:
[root@jmolet-vm0 brew]# rpm -q --whatrequires pygobject2 | grep subscription
This means that you could get in a situation where you can install subscription-manager without the gui and still run into this issue.
I'm throwing this one back so that the pygobject2 dependency can be moved to subscription-manager.
fixed in master at 91ecae876d772602d00ef509351ac7ca19802d83
[root@localhost ~]# rpm -qa | grep subscription-manager
[root@localhost ~]# rpm -qf /usr/libexec/rhsmd
[root@localhost ~]# rpm -q --whatrequires pygobject2 | grep subscription
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.