SMT connected SLES 12 SP1 fails to migrate to SP2 because of missing add-on modules

  • 7018790
  • 10-Apr-2017
  • 11-Apr-2017

Environment

SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)

Situation

A SMT connected client fails to migrate to SLES 12 SP2 with the following messages:

linux-server:/ # zypper migration


Executing 'zypper  refresh'

Repository 'SLES12-SP1-12.1-0' is up to date.
Repository 'SLES12-SP1-Pool' is up to date.
Repository 'SLES12-SP1-Updates' is up to date.
All repositories have been refreshed.

Executing 'zypper  --no-refresh patch-check --updatestack-only'

Loading repository data...
Reading installed packages...
0 patches needed (0 security patches)

Can't get available migrations from server: SUSE::Connect::ApiError: The requested products 'Web and Scripting Module 12 x86_64, Legacy Module 12 x86_64' are not activated on the system.
'/usr/lib/zypper/commands/zypper-migration' exited with status 1

Resolution

Add the products with SUSEConnect

linux-server:~ #SUSEConnect -p sle-module-legacy/12/x86_64
Registered sle-module-legacy 12 x86_64
To server: https://linux-smt-server

linux-server:~ #SUSEConnect -p sle-module-web-scripting/12/x86_64
Registered sle-module-web-scripting 12 x86_64
To server: https://linux-smt-server

linux-server:~ #zypper pd
Refreshing service 'SMT-http_linux-smt-server'.
Loading repository data...
Reading installed packages...
S | Repository                         | Internal Name            | Name                                | Version | Arch   | Is Base
--+------------------------------------+--------------------------+-------------------------------------+---------+--------+--------
v | SLE-Module-Legacy12-Pool           | sle-module-legacy        | Legacy Module                       | 12-0    | x86_64 | No
i | SLE-Module-Legacy12-Updates        | sle-module-legacy        | Legacy Module                       | 12-0    | x86_64 | No
v | SLE-Module-Legacy12-Updates        | sle-module-legacy        | Legacy Module                       | 12-0    | x86_64 | No
v | SLE-Module-Web-Scripting12-Pool    | sle-module-web-scripting | Web and Scripting Module            | 12-0    | x86_64 | No
i | SLE-Module-Web-Scripting12-Updates | sle-module-web-scripting | Web and Scripting Module            | 12-0    | x86_64 | No
v | SLE-Module-Web-Scripting12-Updates | sle-module-web-scripting | Web and Scripting Module            | 12-0    | x86_64 | No
i | SLES12-SP1-Pool                    | SLES                     | SUSE Linux Enterprise Server 12 SP1 | 12.1-0  | x86_64 | Yes

Results in:

linux-smt-server:~ # smt-list-registrations | grep
linux-server -B1 -A3
+--------------------------------------+------------------------------------+---------------------+-----------+----------------------------------------------------+
| SCC_<NUMBER>                         | linux-server                       | 2017-04-07 09:03:00 |           | sle-module-web-scripting 12 x86_64                 |
|                                      |                                    |                     |           | sle-module-legacy 12 x86_64                        |
|                                      |                                    |                     |           | SLES 12.1 x86_64                                   |
+--------------------------------------+------------------------------------+---------------------+-----------+----------------------------------------------------+

A full list of products can be found with: SUSEConnect --list-extensions

Cause

The Web and Scripting Module 12 x86_64, Legacy Module 12 x86_64 products are not registered with the SMT server.

linux-server:~ #  zypper pd
Refreshing service 'SMT-http_linux-smt-server'.
Loading repository data...
Reading installed packages...
S | Repository      | Internal Name            | Name                                | Version | Arch   | Is Base
--+-----------------+--------------------------+-------------------------------------+---------+--------+--------
i | @System         | sle-module-web-scripting | Web and Scripting Module            | 12-0    | x86_64 | No
i | @System         | sle-module-legacy        | Legacy Module                       | 12-0    | x86_64 | No
i | SLES12-SP1-Pool | SLES                     | SUSE Linux Enterprise Server 12 SP1 | 12.1-0  | x86_64 | Yes


linux-smt-server:~ # smt-list-registrations | grep linux-server -B1 -A1
+--------------------------------------+------------------------------------+---------------------+-----------+----------------------------------------------------+
| SCC_<NUMBER>                         | linux-server                       | 2017-04-07 09:03:00 |           | SLES 12.1 x86_64                                   |
+--------------------------------------+------------------------------------+---------------------+-----------+----------------------------------------------------+