Page 1 of 1

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

Posted: 2013/03/27 10:37:58
by ljanvier
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

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

Posted: 2013/03/27 13:26:47
by toracat
Please go ahead and file a bug report at http://bugs.centos.org .

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

Posted: 2013/08/14 18:23:37
by pjc123
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?

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

Posted: 2013/08/31 15:58:42
by grifs71
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.

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

Posted: 2013/08/31 23:00:48
by TrevorH
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`

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

Posted: 2013/09/01 11:24:49
by pjc123
[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.