Updates catalog missing after registration of OES2

  • 3150078
  • 04-Mar-2008
  • 08-Nov-2012

Environment

SUSE Linux Enterprise Server 10 Service Pack 1
SUSE Linux Enterprise Server 10 Service Pack 2
SUSE Linux Enterprise Server 10 Service Pack 3
Novell Open Enterprise Server 2 (OES 2)
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 1
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 2

Situation

After registration of Novell Open Enterprise Server 2 on top of Novell SUSE Linux Enterprise Server 10 the OES specific update catalogs are missing or mixed up.

Resolution

Check with the command '/usr/lib/zmd/query-pool products' which products have been installed on the system.
If the system was installed in 64bit mode, the path of the command is '/usr/lib64/zmd/query-pool products'.
This output is from an affected 32bit system:

oes2:~ # /usr/lib/zmd/query-pool products
|product|SUSE_SLES_SP1|10.1-0|i686
|product|OPEN_ENTERPRISE_SERVER|2|i686
i|product|SUSE_SLES_SP1|10.1-0|i686
oes2:~ #

In order to successfully add the OES2-Updates channel, the product OPEN_ENTERPRISE_SERVER needs to be installed properly (marked with an 'i'). If this is not the case, please go ahead as described below. For OES2 SP1 and OES2 SP2 the appropriate channels are called OES2-SPx-Updates, OES2-SPx-Online and OES2-SPx-Pool. 

Make sure the YaST Installtion Source is pointing to the installation files used to install the OS (e.g. the SLES and OES DVDs).  Run the following command to install OPEN_ENTERPRISE_SERVER:

   zypper install --type=product OPEN_ENTERPRISE_SERVER

Please note: For OES2 SP1 the zypper command needs to be adjusted to

 zypper install --type=product OPEN_ENTERPRISE_SERVER_SP1


and for OES2 SP2 it needs to be

 zypper install --type=product OPEN_ENTERPRISE_SERVER_SP2

In case
'/usr/lib/zmd/query-pool products' shows several product versions as installed, use

zypper remove --type=product <product name>

for each version to uninstall the product. The only remaining products listed and marked as installed must match the current patch level (OES2SP1 = SLES 10 SP2 and OES 2 SP1, OES 2 SP2 = SLES 10 SP3 and OES2SP2).
  1. The process should be similar to the following:
    oes2:~ # zypper install --type=product OPEN_ENTERPRISE_SERVER
    Restoring system sources...
    Parsing metadata for SUSE Linux Enterprise Server 10 SP1...
    Parsing metadata for Novell Open Enterprise Server 2...
    Parsing metadata for OES2-Updates...
    Parsing metadata for SLES10-SP1-Updates...
    Parsing RPM database...
    Summary:
    [S2:0][product]OPEN_ENTERPRISE_SERVER-2.i686
    Continue? [y/n]
    Please confirm with 'y' to finish.


  2. Recheck using '/usr/lib/zmd/query-pool products' if the products are correctly listed as installed:
    oes2:~ # /usr/lib/zmd/query-pool products
    |product|SUSE_SLES_SP1|10.1-0|i686
    |product|OPEN_ENTERPRISE_SERVER|2|i686
    i|product|SUSE_SLES_SP1|10.1-0|i686
    i|product|OPEN_ENTERPRISE_SERVER|2|i686
    oes2:~ #

The following steps will explain the neccessary steps to re-register the system in order to gain access to the update catalogs.

  1. Remove nu.novell.com from your current configuration:

      oes2:~ # rug sl
    # | Status | Type | Name | URI
    --+---------+------+-------------------------------------+----------------------
    1 | Pending | ZYPP | SUSE Linux Enterprise Server 10 SP1 |
    2 | Pending | ZYPP | Novell Open Enterprise Server 2 |
    3 | Pending | NU |https://nu.novell.com | https://nu.novell.com
    oes2:~ # rug sd 3
    Successfully removed service 'https://nu.novell.com'

  2. Stop the ZMD daemon:

    rczmd stop


  3. Delete /etc/zmd/secret and /etc/zmd/deviceid

    rm /etc/zmd/secret /etc/zmd/deviceid

    Please note that the GUID stored in the device file is used for registration in Novell Customer Center (NCC). As the system gets a new GUID assigned, the license count in NCC will increase and use another license. In case the system runs on physical hardware, this needs to be corrected and the system entry using the old GUID needs to get deleted in order to preserve a waste of licenses.

  4. Start the ZMD daemon

    rczmd start


  5. Delete the suse_register cache

    rm /var/cache/SuseRegister/*


  6. Run suse_register

    suse_register -a regcode-sles=SLES_ACTIVATIONCODE -a regcode-oes=OES_ACTIVATIONCODE -a email=EMAILADDRESS

  7. Check with

    rug sl

    if an update source for nu.novell.com has been created:

      oes2:~ # rug sl
    # | Status | Type | Name | URI
    --+--------+------+-------------------------------------+-----------------------
    1 | Active | ZYPP | SUSE Linux Enterprise Server 10 SP1 |
    2 | Active | ZYPP | Novell Open Enterprise Server 2 |
    oes2:~ #

  8. If not, run
      rug --quiet sa --ignore-failure -t nu https://nu.novell.com
    to add the source manually.


  9. Check again using rug sl :

      oes2:~ # rug sl
    # | Status | Type | Name | URI
    --+--------+------+-------------------------------------+-----------------------
    1 | Active | ZYPP | SUSE Linux Enterprise Server 10 SP1 |
    2 | Active | ZYPP | Novell Open Enterprise Server 2 |
    3 | Active | NU |https://nu.novell.com | https://nu.novell.com
    oes2:~ #

  10. Now check with rug ca for available catalogss:

      oes2:~ # rug ca
    Sub'd? | Name | Service
    -------+-------------------------------------+------------------------------------
    Yes | SUSE Linux Enterprise Server 10 SP1 | SUSE Linux Enterprise Server 10 SP1
    Yes | Novell Open Enterprise Server 2 | Novell Open Enterprise Server 2
    Yes | SLES10-SP1-Updates | https://nu.novell.com
    | SLE10-SP1-Debuginfo-Updates | https://nu.novell.com
    Yes | OES2-Updates | https://nu.novell.com
    oes2:~#

  11. In case the system was not subscribed automatically to the catalog, execute the command

    rug sub OES2-Updates


  12. Now refresh catalog data using

    rug refresh


  13. Use

    rug list-updates

    to check whether updates from the OES2-Updates catalog are available.

Additional Information

For a OES2SP2 system, the channel listing could look like:

oes2:~ # rug ca

Sub'd? | Name                                        | Service
-------+---------------------------------------------+--------------------------------------------
Yes    | Novell Open Enterprise Server 2 SP2 2.0.2-0 | Novell Open Enterprise Server 2 SP2 2.0.2-0
Yes    | SUSE Linux Enterprise Server 10 SP3         | SUSE Linux Enterprise Server 10 SP3
       | SLES10-SP2-Updates                          | https://nu.novell.com
       | SLES10-SP2-Pool                             | https://nu.novell.com
       | SLES10-SP2-Online                           | https://nu.novell.com
       | SLE10-SP2-Debuginfo-Updates                 | https://nu.novell.com
       | OES2-SP1-Updates                            | https://nu.novell.com
       | OES2-SP1-Pool                               | https://nu.novell.com
Yes    | SLES10-SP3-Updates                          | https://nu.novell.com
Yes    | SLES10-SP3-Pool                             | https://nu.novell.com
       | SLES10-SP3-Online                           | https://nu.novell.com
       | SLE10-SP3-Debuginfo-Updates                 | https://nu.novell.com
       | SLE10-SP3-Debuginfo-Pool                    | https://nu.novell.com
       | SLE10-SP3-Debuginfo-Online                  | https://nu.novell.com
Yes    | OES2-SP2-Updates                            | https://nu.novell.com
Yes    | OES2-SP2-Pool                               | https://nu.novell.com
       | OES2-SP2-Online                             | https://nu.novell.com

Please note that the system needs only be subscribed to either Pool or Online as those channels are used to resolve package dependencies if no local installation source is available.