[Spacewalk-list] Spacewalk 2.3 Upgrade && SLES 11.3

Bosch, Fabian (BITBW) Fabian.Bosch at bitbw.bwl.de
Thu Jul 30 07:40:25 UTC 2015


Hi

This is because of a rename of Methods in Python libs.

This did the trick: (remember: I am on a SLES SP4 Client-System)

Rename functions in /usr/lib64/python2.6/site-packages/rhn/connections.py

line 241
def idn_pune_to_unicode(hostname):
to
def idn_puny_to_unicode(hostname):

line 248
def idn_ascii_to_pune(hostname):
to
def idn_ascii_to_puny(hostname):

And make sure, that the Up2date config under /usr/share/rhn/up2date_client/config.py
imports and uses the new name.
Make a search & replace

idn_pune_to_unicode
to
idn_puny_to_unicode

idn_ascii_to_pune
to
idn_ascii_to_puny

so that the up2date references the right function.

last step:
renew/review your information in the /etc/sysconfig/rhn/up2date


worked for me.

---------------------------------------
Bug is related to this reported Bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1235574

Hope this will work for you.



Mit freundlichen Grüßen

Fabian Bosch
Referat 34 – Open Source

IT Baden-Württemberg (BITBW)
Krailenshaldenstraße 44
70469 Stuttgart
Telefon: +49 711 8910-94476
Telefax: +49 711 8910-17575
E-Mail: fabian.bosch at bitbw.bwl.de<mailto:fabian.bosch at bitbw.bwl.de>
Internet: www.bitbw.de

Von: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] Im Auftrag von VeNoMouS
Gesendet: Mittwoch, 29. Juli 2015 07:40
An: spacewalk-list at redhat.com
Betreff: [Spacewalk-list] Spacewalk 2.3 Upgrade && SLES 11.3


Hi,

I made the migration to 2.3 today from 2.2, and noticed after pushing out the 2.3 client that a couple test boxes running SLES 11.3, rhnlib appears to be broken...



Getting the following error related to "idn_ascii_to_pune"

Traceback (most recent call last):
File "/usr/sbin/rhn_check", line 47, in <module>
from up2date_client import up2dateErrors
File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 23, in <module>
import up2dateLog
File "/usr/share/rhn/up2date_client/up2dateLog.py", line 4, in <module>
import config
File "/usr/share/rhn/up2date_client/config.py", line 17, in <module>
from rhn.connections import idn_ascii_to_pune, idn_pune_to_unicode
ImportError: cannot import name idn_ascii_to_pune



This is also happening with zypper plugin...  everything worked fine on these boxes for 2.2...

Anyone know of a solution to fix please?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150730/25dce64a/attachment.htm>


More information about the Spacewalk-list mailing list