During Registration or Migration/Upgrade the wrong architecture is added for repositories

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

Environment

SUSE Linux Enterprise Server 11 Service Pack 1 (SLES 11 SP1)
SUSE Linux Enterprise Server 11 Service Pack 2 (SLES 11 SP2)
SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)
SUSE Linux Enterprise Desktop 11 Service Pack 1 (SLED 11 SP1)
SUSE Linux Enterprise Desktop 11 Service Pack 2 (SLED 11 SP2)
SUSE Linux Enterprise Desktop 11 Service Pack 3 (SLED 11 SP3)

Situation

NOTE:                                                                                                                                                                                        
The Novell Customer Center (NCC) and nu.novell.com are not available anymore.
Systems still registered to the Novell Customer Center (NCC) can be migrated
to the SUSE Customer Center (SCC) as outlined at:
https://www.suse.com/support/kb/doc/?id=000019508




While performing a registration or migration/upgrade the wrong repo architectures are returned.  The following was taken from a SLES 11 SP2 x86_64 registration log exhibiting the issue (the output has been edited so that only the information related to the issue is shown):

---------------- currentSources --------------------

URL' => 'https://nu.novell.com/repo/$RCE/SLE11-SP2-Debuginfo-Core/sle-11-i586?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP2-Pool/sle-11-s390x?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP2-Updates/sle-11-ppc64?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLES11-SP1-Updates/sle-11-s390x?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLES11-Extras/sle-11-ia64?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLES11-SP2-Core/sle-11-x86_64?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLE11-SP1-Debuginfo-Updates/sle-11-x86_64?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLES11-SP1-Pool/sle-11-i586?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLES11-SP2-Extension-Store/sle-11-i586?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLE11-SP2-Debuginfo-Updates/sle-11-i586?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLES11-SP2-Updates/sle-11-ppc64?credentials=NCCcredentials',
URL' => 'https://nu.novell.com/repo/$RCE/SLE11-SP1-Debuginfo-Pool/sle-11-ppc64?credentials=NCCcredentials',

Note that repositories with i586, ppc64, and s390x architectures have been added to a system that is running an x86_64 architecture.

Resolution

The problem is caused by a missing baseproduct symbolic link in the /etc/products.d/ subdirectory.  Listing the contents of the /etc/products.d/ we see the following:

:/etc/products.d # l
total 20
drwxr-xr-x     2 root root  4096    Feb  6 07:10  ./
drwxr-xr-x 103 root root 12288   Feb  6 07:09  ../
-rw-r--r--        1 root root   2805   Feb  6  2012  SUSE_SLES.prod

which should look like this:

:/etc/products.d # ls -l
total 20
drwxr-xr-x     2 root root   4096 Feb 6    07:09   ./
drwxr-xr-x 103 root root 12288 Feb 6    07:09   ../
lrwxrwxrwx   1 root root       30 Feb 6    07:09   baseproduct -> /etc/products.d/SUSE_SLES.prod
-rw-r--r--        1 root root   2805 Feb 6  2012     SUSE_SLES.prod

To resolve the issue do the following:

1. recreate the symbolic link
              cd /etc/products.d/
              ln -s SUSE_SLES.prod  baseproduct

2. Remove the repo files:

             rm /etc/zypp/repos.d/nu*

3. Make sure /etc/suseRegister.conf points to the SCC!
 
# Content of /etc/suseRegister.conf
#
register = command=register
url = https://scc.suse.com/ncc/center/regsvc
# 

4. Refresh the registration

             suse_register -r -d 3

The repos should then be returned with the correct architecture.

Disclaimer

This Support Knowledgebase provides a valuable tool for 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:7015056
  • Creation Date: 14-May-2014
  • Modified Date:21-Dec-2021
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

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