[Spacewalk-list] Unable to register servers: idn_ascii_to_puny and idn_ascii_to_pune errors

William H. ten Bensel WHTENBEN at up.com
Tue Nov 24 17:41:37 UTC 2015


Hello Spacewalk community,

Issue: 
        Servers will not register

Root Cause: 
        We updated an older kickstart centos6.6 with a root password 
change (not a major change), and now the kickstart will no longer register 
the servers.  We found that when the kickstart was updated, the kickstart 
wizard automatically updated the install of rhnlib to 2.5.77-1 (from the 
activation key) vs the previous specified version of rhnlib provided by 
Spacewalk 2.2 (kickstart child channel) and the previous state of the 
activation key (when the kickstart was created/updated).

        This newer version of rhnlib 2.5.77-1 is not compatible with 
rhn-setup provided by spacewalk <2.2 and Distributions 7.0/7.1.  Thus we 
are receiving idn_ascii_to_puny and idn_ascii_to_pune errors.

Assistance/Guidance:
        Are we doing something non-standard in our setup or kickstarts 
(example below)?   If so, could someone guide us on best practices to 
avoid this?
        Are other Spacewalk Admins working around this issue with rhnlib 
and rhnsetup?  If so, how?

        Also, can someone help us understand:

        In the KickstartFormatter.java (lines 102 - 119 and 901-934, URL 
below for reference), newer packages of rhnlib, pyOpenSSL, libxml2-python, 
and libxml2 are being installed without dependency resolution?  We believe 
that this is causing the issue, and we opened bug 
https://bugzilla.redhat.com/show_bug.cgi?id=1280167.   However if we are 
doing something non-standard, please provide feedback and we will close 
the bug.


Setup:
        Spacewalk 2.3 Server (
http://yum.spacewalkproject.org/2.3/RHEL/6/x86_64/)

        Static kickstarts have a CentOS 5.x/6.x/7.x and Spacewalk 2.2 
client child channel 
(Systems->Kickstart->Profiles->kickstart_name->Operating System-> check 
Spacewalk client 2.2)
        Under Software of the kickstart:
                # below pkgs needed for rhn registration
                rhn-check
                rhnsd
                rhn-setup
                rhn-client-tools
                yum-rhn-plugin
                libidn
                rhncfg
                rhncfg-client
                rhncfg-actions
                pyOpenSSL
                libxml2-python
                rhnlib
                libxml2
                perl
        The kickstart activation key has the newer releases of CentOS 
5.11/6.7/7.1 and Spacewalk 2.4 client.  We will update the OS, client, etc 
based on the System Admin's and/or customer time frame or requirements.


The code that determines that the newest packages need to be installed.

https://github.com/spacewalkproject/spacewalk/blob/0e5a18207c74cc83b2dd65bd1242a4b082549774/java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java


102     public static final String[] UPDATE_PKG_NAMES = 
103     {"pyOpenSSL", "rhnlib", "libxml2-python", "libxml2"}; 
104     public static final String[] FRESH_PKG_NAMES_RHEL34 = 
105     {"up2date",  "up2date-gnome"}; 
106     public static final String[] FRESH_PKG_NAMES_RHEL2 = 
107     {"rhn_register", "up2date", "rhn_register-gnome", 
"up2date-gnome"}; 
108     private static final String UPDATE_OPT_PATH = 
"/tmp/rhn_rpms/optional/"; 
109     private static final String UPDATE_CMD = "rpm -Uvh --replacepkgs 
--replacefiles "; 
110     private static final String FRESH_CMD = "rpm -Fvh 
/tmp/rhn_rpms/*rpm"; 
111     private static final String IMPORT_RHN_KEY34 = 
112         "rpm --import /usr/share/rhn/RPM-GPG-KEY"; 
113     private static final String IMPORT_RHN_KEY2 = 
114         "gpg $(up2date --gpg-flags) --batch --import 
/usr/share/rhn/RPM-GPG-KEY" + 
115         NEWLINE + 
116         "gpg $(up2date --gpg-flags) --batch --import 
/usr/share/rhn/RPM-GPG-KEY"; 
117     private static final String MKDIR_OPTIONAL = "mkdir -p 
/tmp/rhn_rpms/optional"; 
118     private static final String WGET_OPT_RPMS = "wget -P 
/tmp/rhn_rpms/optional "; 
119     private static final String WGET_RPMS = "wget -P /tmp/rhn_rpms "; 




901      * @return list of packages we need to up2date 
902      */ 
903     private HashSet<String> getUpdatePackages(List<ActivationKey> 
keys) { 
904         log.debug("getUpdatePackages() .."); 
905         HashSet<String> retval = new HashSet<String>(); 
906         Channel c = 
ksdata.getKickstartDefaults().getKstree().getChannel(); 
907         for (ActivationKey key : keys) { 
908             if (key.getChannels() != null) { 
909                 for (Channel chan : key.getChannels()) { 
910                     if (chan.isBaseChannel()) { 
911                         c = chan; 
912                         break; 
913                     } 
914                 } 
915             } 
916         } 
917         for (int i = 0; i < UPDATE_PKG_NAMES.length; i++) { 
918             Long packageId = 
ChannelManager.getLatestPackageEqualInTree(c.getId(), 
919                     UPDATE_PKG_NAMES[i]); 
920             if (packageId == null) { 
921                 log.debug("package:" + packageId + "not found in 
kickstart's channel"); 
922                 continue; 
923             } 
924 
 
925             log.debug("package  : " + UPDATE_PKG_NAMES[i]); 
926             log.debug("packageId: " + packageId); 
927             Package p = 
928                 PackageFactory.lookupByIdAndUser(packageId, user); 
929             if (p != null) { 
930                 retval.add(getSHA1PackagePath(p)); 
931             } 
932         } 
933         return retval; 
934     } 

**

This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20151124/d9c5d944/attachment.htm>


More information about the Spacewalk-list mailing list