centos 6.4 service virt-who won't start without python-rhsm

Issues related to applications and software problems
Post Reply
ljanvier
Posts: 1
Joined: 2013/03/27 10:24:34

centos 6.4 service virt-who won't start without python-rhsm

Post by ljanvier » 2013/03/27 10:37:58

hello,

Even if virt-who package has been modified by centos, it still depends on rhsm, which is not in the repository (but is in upstream).

The service can't start without this lib :
[root@pc-usb ~]# service virt-who start
Démarrage de virt-who : Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 33, in
from subscriptionmanager import SubscriptionManager, SubscriptionManagerError
File "/usr/share/virt-who/subscriptionmanager.py", line 24, in
import rhsm.connection as rhsm_connection
ImportError: No module named rhsm.connection
[FAILED]

What is the best practice to deal with this issue ? Is it a bug ? Do I have to get python-rhsm manually ?

Thanks

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

centos 6.4 service virt-who won't start without python-rhsm

Post by toracat » 2013/03/27 13:26:47

Please go ahead and file a bug report at http://bugs.centos.org .

pjc123
Posts: 80
Joined: 2010/08/17 16:59:11
Contact:

Re: centos 6.4 service virt-who won't start without python-rhsm

Post by pjc123 » 2013/08/14 18:23:37

I have been doing upgrades to each Centos 6 version from 6.0 to 6.4, but never got this message. Today I did a direct install of 6.4 and got this message at boot. I see it is still an active bug; do I basically just wait until it gets fixed?

grifs71
Posts: 157
Joined: 2007/10/02 05:15:38
Location: Arkansas, United States

Re: centos 6.4 service virt-who won't start without python-rhsm

Post by grifs71 » 2013/08/31 15:58:42

Starting virt-who: Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 33, in
from subscriptionmanager import SubscriptionManager, SubscriptionManagerError
File "/usr/share/virt-who/subscriptionmanager.py", line 24, in
import rhsm.connection as rhsm_connection
ImportError: No module named rhsm.connection
[FAILED]
Starting libvirtd daemon: [ OK ]


Same behavior in kernel 2.6.32-358.18.1.el6.x86_64 with all updates applied.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: centos 6.4 service virt-who won't start without python-rhsm

Post by TrevorH » 2013/08/31 23:00:48

The real problem is that the virt-who package is useless on CentOS since it

[quote]
Description : Agent that collects information about virtual guests present in the system and
: report them to the subscription manager.
[/quote]

and there is no "subscription manager" on CentOS, that's a RHN licensing thing. So the real answer is `yum remove virt-who`

pjc123
Posts: 80
Joined: 2010/08/17 16:59:11
Contact:

Re: centos 6.4 service virt-who won't start without python-rhsm

Post by pjc123 » 2013/09/01 11:24:49

[quote]
There is no "subscription manager" on CentOS, that's a RHN licensing thing. So the real answer is `yum remove virt-who`[/quote]

Thanks for that explanation and fix.

Post Reply