[Spacewalk-list] Troubles installing on Debian
Michael Lustfield
mlustfield at good-sam.com
Mon Apr 23 18:04:12 UTC 2012
On 04/23/2012 12:56 PM, Simon Lukasik wrote:
> On 04/23/2012 07:36 PM, Michael Lustfield wrote:
>>
>>
>> On 04/23/2012 12:35 PM, Simon Lukasik wrote:
>>> On 04/23/2012 06:10 PM, Michael Lustfield wrote:
>>>> I'm trying to install the spacewalk client on a Debian system.
>>>>
>>>> sentinel2:~# rhnreg_ks --serverUrl=http://spacewalk.domain.tld/XMLRPC
>>>> --activationkey=1-deb --force
>>>> Traceback (most recent call last):
>>>> File "/usr/sbin/rhnreg_ks", line 33, in<module>
>>>> from up2date_client import rhnreg
>>>> File "/usr/share/rhn/up2date_client/rhnreg.py", line 14,
in<module>
>>>> import up2dateUtils
>>>> File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 11, in
>>>> <module>
>>>> import up2dateErrors
>>>> File "/usr/share/rhn/up2date_client/up2dateErrors.py", line
188, in
>>>> <module>
>>>> class SSLCertificateVerifyFailedError(RepoError, Error):
>>>> TypeError: Error when calling the metaclass bases
>>>> duplicate base class Error
>>>>
>>>
>>> Could You apply the following change to your
>>>
>>> /usr/share/rhn/up2date_client/up2dateErrors.py
>>>
>>> and try again? Thank You.
>>>
>>
>> Traceback (most recent call last):
>> File "/usr/sbin/rhnreg_ks", line 33, in<module>
>> from up2date_client import rhnreg
>> File "/usr/share/rhn/up2date_client/rhnreg.py", line 14, in<module>
>> import up2dateUtils
>> File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 11, in
>> <module>
>> import up2dateErrors
>> File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 188, in
>> <module>
>> class SSLCertificateVerifyFailedError(RepoError, Error):
>> TypeError: Error when calling the metaclass bases
>> Cannot create a consistent method resolution
>> order (MRO) for bases Exception, Error
>>
>> That doesn't help too much, does it? :(
>>
>
> No. Could you please try again another patch (attached)?
>
> Please forgive me that I am using you as tester. I do no longer have
> Debian machine. Disclaimer: Debian support is currently discontinued
> because of lack of community interest.
>
> Thanks,
>
With that patch, I get this:
sentinel2:~# rhnreg_ks --activationkey=1-deb
Traceback (most recent call last):
File "/usr/sbin/rhnreg_ks", line 33, in <module>
from up2date_client import rhnreg
File "/usr/share/rhn/up2date_client/rhnreg.py", line 21, in <module>
import hardware
File "/usr/share/rhn/up2date_client/hardware.py", line 31, in <module>
import dmidecode
File "/usr/lib/pymodules/python2.6/dmidecode.py", line 28, in <module>
import libxml2
ImportError: No module named libxml2
Now, that I understand. There's just an unnamed dependency on
python-libxml2. I installed that and then got this:
sentinel2:~# rhnreg_ks --activationkey=1-deb
An error has occurred:
<type 'exceptions.AttributeError'>
See /var/log/up2date for more information
sentinel2:~# cat /var/log/up2date
[Mon Apr 23 12:57:02 2012] up2date
Traceback (most recent call last):
File "/usr/sbin/rhnreg_ks", line 218, in <module>
cli.run()
File "/usr/share/rhn/up2date_client/rhncli.py", line 83, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhnreg_ks", line 90, in main
rhnreg.getCaps()
File "/usr/share/rhn/up2date_client/rhnreg.py", line 239, in getCaps
s.capabilities.validate()
File "/usr/share/rhn/up2date_client/rhnserver.py", line 67, in __call__
raise up2dateErrors.SSLCertificateVerifyFailedError(), None,
sys.exc_info()[2]
File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 203, in
__init__
self.errmsg = self.value
<type 'exceptions.AttributeError'>: 'SSLCertificateVerifyFailedError'
object has no attribute 'value'
If I specify --serverUrl things work fine. Above, I was trying to
specify that URL in /etc/sysconfig/rhn/up2date.
SO- use --serverUrl and install python-libxml2 and all is well! :D
This email transmission and any documents, files or previous
email messages attached to it may contain information that is
confidential or legally privileged. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
printing, distributing or use of this transmission is strictly
prohibited. If you have received this transmission in error,
please immediately notify the sender by telephone or return
email and delete the original transmission and its attachments
without reading or saving in any manner.
The Evangelical Lutheran Good Samaritan Society.
More information about the Spacewalk-list
mailing list