My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

Bootstrap fails with ImportError: cannot import name idn_pune_to_unicode

This document (7018018) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 3
SUSE Manager 2.1

Situation

Attempting to run a bootstrap script on a SUSE Manager client returns the following error:

Traceback (most recent call last):
 File "/usr/sbin/rhnreg_ks", line 25, in <module>
   from rhn.connections import idn_pune_to_unicode
ImportError: cannot import name idn_pune_to_unicode

Resolution

On the client exhibiting the issue follow the instructions in this TID:

https://www.suse.com/support/kb/doc?id=7013242

On the SUSE Manager Server:

Ensure that the channels associated with the client are fully sync'd and the associated bootstrap repo is rebuilt.  You can accomplish this by running the following commands as root on the SUSE Manager replacing the channels with those appropriate to the client experiencing the issue (Note: mgr-sync list channels can be used to get a listing of channels and running mgr-create-bootstrap-repo can be run without switches to list the available bootstrap-repos):

spacewalk-repo-sync -Y -c <updates channel for distribution>
spacewalk-repo-sync -Y -c <pool channel for distribution>
spacewalk-repo-sync -Y -c <suse manager tools channel for distribution>
mgr-create-bootstrap-repo -c <name of bootstrap repo channel>


For example if the client was SLES 11 SP4, the following commands run as root on the SUSE Manager server would ensure that the channels were completely sync'd and that the bootstrap repo contained the latest rpms:

spacewalk-repo-sync -Y -c sles11-sp4-updates-x86_64
spacewalk-repo-sync -Y -c sles11-sp4-pool-x86_64
spacewalk-repo-sync -Y -c sles11-sp4-suse-manager-tools-x86_64
mgr-create-bootstrap-repo -c SLE-11-SP4-x86_64

The final step is to run the bootstrap on the client again.

Cause

The issue is caused by a mismatch in the rhn and spacewalk stack on the client.  By removing the existing stacks on the client and then ensuring the channels on the SUSE Manager server are fully up to date, including the bootstrap repo, the error should be resolved.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7018018
  • Creation Date:02-SEP-16
  • Modified Date:02-SEP-16
    • SUSESUSE Manager

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center