SUSE Multi-Linux Manager Server Migration to a Containerized Environment
1. Requirements and Considerations
1.1. General
-
To migrate a SUSE Multi-Linux Manager 4.3 Server to a container, you require a new machine with SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 and
mgradminstalled. -
An in-place migration from SUSE Multi-Linux Manager 4.3 to 5.1 is not supported, regardless of whether the chosen host operating system is SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7.
-
Before migrating from SUSE Multi-Linux Manager 4.3 to 5.1, any existing traditional clients including the traditional proxies must be migrated to Salt. For more information about migrating traditional SUSE Multi-Linux Manager 4.3 clients to Salt clients, see https://documentation.suse.com/suma/4.3/en/suse-manager/client-configuration/contact-methods-migrate-traditional.html.
-
Traditional contact protocol is no longer supported in SUSE Multi-Linux Manager 5.0 and later.
|
This guide only covers the migration from SUSE Multi-Linux Manager 4.3 to 5.1.
Migrating an existing SUSE Multi-Linux Manager 5.1 instance to the same version while switching the host operating system from SL Micro 6.1 to SUSE Linux Enterprise Server 15 SP7, or vice versa, is not handled by the |
1.2. Hostnames
-
The current migration procedure does not include functionality for renaming hostnames. As a result, the fully qualified domain name (FQDN) of the new server will remain the same as that of the old server.
-
The IP address must remain unchanged to ensure that the clients can contact the server.
After the migration, it will be necessary to manually update the DHCP and DNS records to point to the new server.
1.3. GPG Keys
-
Self trusted GPG keys are not migrated.
-
GPG keys that are trusted in the RPM database only are not migrated. Thus synchronizing channels with
spacewalk-repo-synccan fail. -
The administrator must migrate these keys manually from the 4.3 installation to the container host after the actual server migration.
Procedure: Manual Migration of the 4.3 GPG Keys to New Server-
Copy the keys from the 4.3 server to the container host of the new server.
-
Later, add each key to the migrated server with the command
mgradm gpg add <PATH_TO_KEY_FILE>.
-
1.4. SSL certificates
SSL certificates are needed at a later stage. If not using the self-signed generated CA and certificates, ensure you have the following before starting:
-
A certificate authority (CA) SSL public certificate. If you are using a CA chain, all intermediate CAs must also be available.
-
An SSL database private key
-
An SSL database certificate All files must be in PEM format.
The hostname of the SSL server certificate must match the fully qualified hostname of the machine you deploy them on.
You can set the hostnames in the X509v3 Subject Alternative Name section of the certificate.
You can also list multiple hostnames if your environment requires it.
Supported Key types are RSA and EC (Elliptic Curve).
|
Database SSL certificate requires |
During a migration the server SSL certificate and CA chain are copied from the source server, meaning that only the database certificates are required
2. Migration
2.1. Prepare SUSE Multi-Linux Manager 5.1 Server Host
|
Do not pre-install SUSE Multi-Linux Manager on the prepared SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 system. The migration process is designed to perform the server installation automatically.
Running In the following steps, we are only preparing the host system, not installing the actual SUSE Multi-Linux Manager 5.1 Server. |
You can use VM images based on SL Micro 6.1 as a migration target. In such a scenario, you can prepare the host system as described in
However, at the end the last step is executing the command mgradm migrate <FQDN> instead
of mgradm install <FQDN>.
2.1.1. Prepare SL Micro 6.1 Host
2.1.1.1. Download the installation media
Locate the SL Micro 6.1 installation media at https://www.suse.com/download/sle-micro/, and download the appropriate media file.
Prepare a DVD or USB flash drive with the downloaded
.isoimage for installation.
2.1.1.2. Install SL Micro 6.1
For more information about preparing your machines (virtual or physical), see the SL Micro Deployment Guide.
Insert the DVD or USB flash drive (USB disk or key) containing the installation image for SLE Micro 6.1.
Boot or reboot your system.
Use the arrow keys to select
Installation.Adjust Keyboard and language.
Click the
checkboxto accept the license agreement.Click
Nextto continue.Select the registration method. For this example, we will register the server with SUSE Customer Center.
The SUSE Multi-Linux Manager 5.1 containers are installed as extensions. Depending on the specific extension needed from the list below, additional SUSE Customer Center registration codes will be required for each.
SUSE Multi-Linux Manager 5.1 Server
SUSE Multi-Linux Manager 5.1 Proxy
SUSE Multi-Linux Manager 5.1 Retail Branch Server
The SL Micro 6.1 entitlement is included within the SUSE Multi-Linux Manager entitlement, so it does not require a separate registration code.
Enter your SUSE Customer Center email address.
Enter your registration code for SL Micro 6.1.
Click
Nextto continue.To install a proxy, select the SUSE Multi-Linux Manager 5.1 Proxy extension; to install a server, select the SUSE Multi-Linux Manager 5.1 Server extension
Checkbox.Click
Nextto continue.Enter your SUSE Multi-Linux Manager 5.1 extension registration code.
Click Next to continue.
On the
NTP Configurationpage click Next.On the
Authentication for the Systempage enter a password for the root user. Click Next.On the
Installation Settingspage click Install.
This concludes installation of SL Micro 6.1 and SUSE Multi-Linux Manager 5.1 as an extension.
2.1.1.3. OPTIONAL: Registration from the command line
If you added SUSE Multi-Linux Manager 5.1 as an extension during SL Micro 6.1 installation then you can skip this procedure. However, optionally you may skip registration during SL Micro 6.1 installation by selecting the Skip Registration button. This section provides steps on registering your products after SL Micro 6.1 installation.
|
The following steps register a SUSE Multi-Linux Manager 5.1 extension with the x86-64 architecture and thus require a registration code for the x86-64 architecture. To register ARM or s390x architectures use the correct registration code. |
-
List available extensions with the following command:
transactional-update --quiet register --list-extensions
-
From the list of available extensions, select the one you wish to install:
-
If installing the Server, use your SUSE Multi-Linux Manager Server Extension 5.1 x86_64 registration code with following command:
transactional-update register -p Multi-Linux-Manager-Server/5.1/x86_64 -r <reg_code>
-
If installing the Proxy, use your SUSE Multi-Linux Manager Proxy Extension 5.1 x86_64 registration code with following command:
transactional-update register -p Multi-Linux-Manager-Proxy/5.1/x86_64 -r <reg_code>
-
-
Reboot.
2.1.1.4. Update the system
-
Log in as root.
-
Run transactional-update:
transactional-update -
Reboot.
|
SL Micro is designed to update itself automatically by default and will reboot after applying updates. However, this behavior is not desirable for the SUSE Multi-Linux Manager environment. To prevent automatic updates on your server, SUSE Multi-Linux Manager disables the transactional-update timer during the bootstrap process. If you prefer the SL Micro default behavior, enable the timer by running the following command:
|
2.1.2. Prepare SUSE Linux Enterprise Server 15 SP7 Host
Alternatively, you can deploy SUSE Multi-Linux Manager on SUSE Linux Enterprise Server 15 SP7.
The following procedures describe the main steps of the installation process.
2.1.2.1. Install SUSE Multi-Linux Manager Extensions on SUSE Linux Enterprise Server
Locate and download SUSE Linux Enterprise Server 15 SP7
.isoat https://www.suse.com/download/sles/.Make sure that you have regsistration codes both for the host operating system (SUSE Linux Enterprise Server 15 SP7) and extensions
Start the installation of SUSE Linux Enterprise Server 15 SP7.
On the
Language, keyboard and product selectionselect the product to install.On the
License agreementread the agreement and checkI Agree to the License Terms.Select the registration method. For this example, we will register the server with SUSE Customer Center.
Enter your SUSE Customer Center email address.
Enter your registration code for SUSE Linux Enterprise Server 15 SP7.
Click
Nextto continue.
Please note that for SUSE Linux Enterprise Server 15 SP7, you are required to have a valid SUSE Linux Enterprise Server subscription and corresponding registration code, which you must provide on this screen. You will be required to enter the SUSE Multi-Linux Manager Extension registration code below.
In the screen
Extensions and Modules Selectioncheck the following:
Select the SUSE Multi-Linux Manager Server Extension to install the Server, or the SUSE Multi-Linux Manager Proxy Extension to install the Proxy.
Basesystem Module
Containers Module
Click
Nextto continue.Enter your SUSE Multi-Linux Manager 5.1 extension registration code.
Click Next to continue.
Complete the installation.
When the installation completes, log in to the newly installed server as root.
Update the System (optional, if the system was not set to download updates during install):
zypper upReboot.
2.1.2.2. OPTIONAL: Registration from the command line
If you added SUSE Multi-Linux Manager 5.1 as an extension during SUSE Linux Enterprise Server installation then you can skip this procedure. However, optionally you may skip registration during SUSE Linux Enterprise Server installation by selecting the Skip Registration button. This section provides steps on registering your products after SUSE Linux Enterprise Server installation.
|
The following steps register a SUSE Multi-Linux Manager 5.1 extension with the x86-64 architecture and thus require a registration code for the x86-64 architecture. To register ARM or s390x architectures use the correct registration code. |
List available extensions with the following command:
SUSEConnect --list-extensionsFrom the list of available extensions, select the one you wish to install:
If installing the Server, use your SUSE Multi-Linux Manager Server Extension 5.1 x86_64 registration code. For example for SUSE Linux Enterprise 15 SP7, with the following commands:
SUSEConnect -r <regcode> SUSEConnect -p sle-module-containers/15.7/x86_64 SUSEConnect -p Multi-Linux-Manager-Server-SLE/5.1/x86_64 -r <regcode>If installing the Proxy, use your SUSE Multi-Linux Manager Proxy Extension 5.1 x86_64 registration code with the following command:
SUSEConnect -p Multi-Linux-Manager-Proxy-SLE/5.1/x86_64 -r <regcode>
2.1.2.3. Install and enable podman
podman
Log in as root and install
podmanplus, on the server,mgradmandmgradm-bash-completionor, on the proxies,mgrpxyandmgrpxy-bash-completion(if not already automatically installed):
On the server:
zypper install podman mgradm mgradm-bash-completionOn the proxies:
zypper install podman mgrpxy mgrpxy-bash-completionStart the Podman service by rebooting the system, or running a command:
systemctl enable --now podman.service
2.2. SSH Connection Preparation
This step ensures that the new SUSE Multi-Linux Manager 5.1 Server can connect to the existing 4.3 Server over SSH without requiring a password. It involves generating and configuring SSH keys, setting up an SSH agent, and copying the public key to the old server. This setup is required for the migration process to run without manual intervention.
-
Ensure that for
rootan SSH key exists on the new 5.1 server. If a key does not exist, create it with:ssh-keygen -t rsa
-
The SSH configuration and agent should be ready on the new server for a connection to the 4.3 server that does not prompt for a password.
eval $(ssh-agent); ssh-add
To establish a connection that does not prompt for a password, the migration script relies on an SSH agent running on the new server. If the agent is not active yet, initiate it by running
eval $(ssh-agent). Then add the SSH key to the running agent withssh-addfollowed by the path to the private key. You will be prompted to enter the password for the private key during this process. -
Copy the public SSH key to the SUSE Multi-Linux Manager 4.3 Server (
<oldserver.fqdn>) withssh-copy-id. Replace<oldserver.fqdn>with the FQDN of the 4.3 server:ssh-copy-id <old server.fqdn>
The SSH key will be copied into the old server’s
~/.ssh/authorized_keysfile. For more information, see thessh-copy-idmanpage. -
Establish an SSH connection from the new server to the old SUSE Multi-Linux Manager Server to check that no password is needed. Also there must not by any problem with the host fingerprint. In case of trouble, remove old fingerprints from the
~/.ssh/known_hostsfile. Then try again. The fingerprint will be stored in the local~/.ssh/known_hostsfile.
2.3. Perform the Migration
When planning your migration from SUSE Manager 4.3 to SUSE Multi-Linux Manager 5.1, ensure that your target instance meets or exceeds the specifications of the old setup.
This includes, but is not limited to, memory (RAM), CPU Cores, Storage, and Network Bandwidth.
|
SUSE Multi-Linux Manager server hosts that are hardened for security may restrict execution of files from the
In SUSE Multi-Linux Manager updates, tools will be changed to make this workaround unnecessary. |
|
When migrating from SUSE Manager 4.3, you will be prompted for the Entering the wrong password will result in a failure to generate the database certificate and will cause the migration to abort with the following error: Error: cannot configure db container: Cannot generate database certificate: CA validation failed! Make sure the correct CA password is available before starting the migration process. |
-
This step is optional. If custom persistent storage is required for your infrastructure, use the
mgr-storage-servertool. For more information aboutmgr-storage-server, see installation-and-upgrade:hardware-requirements.adoc#install-hardware-requirements-storage. -
Execute the following command to migrate and set up a new SUSE Multi-Linux Manager 5.1 server. Replace
<oldserver.fqdn>with the FQDN of the 4.3 server:Make sure to upgrade your 4.3 server and apply all available updates before starting the migration process. Additionally, remove any unnecessary channels to help reduce the overall migration time.
The migration can take a very long time depending on the amount of data that needs to be replicated. To reduce downtime it is possible to run the migration multiple times in a process of initial replication, re-replication, or final replication and switch over while all the services on the old 4.3 server can stay up and running.
Only during the final migration, the processes on the old 4.3 server need to be stopped.
For all non-final replications add the parameter
--prepareto prevent the automatic stopping of services on the old 4.3 server.mgradm migrate podman <oldserver.fqdn> --prepare
-
Stop the SUSE Manager services on 4.3 Server:
spacewalk-service stop
-
Stop the PostgreSQL service on 4.3 Server:
systemctl stop postgresql
-
Perform the final migration on SUSE Multi-Linux Manager 5.1 Server
mgradm migrate podman <oldserver.fqdn>
-
Migrate trusted SSL CA certificates.
2.3.1. Migration of the Certificates
Trusted SSL CA certificates that were installed as part of an RPM and stored on SUSE Multi-Linux Manager 4.3 in the /usr/share/pki/trust/anchors/ directory will not be migrated.
Because SUSE does not install RPM packages in the container, the administrator must migrate these certificate files manually from the SUSE Manager 4.3 server after the migration.
-
Copy the file from the SUSE Manager 4.3 Server to the new SUSE Multi-Linux Manager 5.1 Server. For example, as
/local/ca.file. -
Copy the file into the container with:
mgrctl cp /local/ca.file server:/etc/pki/trust/anchors/
|
After successfully running the To redirect them to the 5.1 server, it is required to rename the new server at the infrastructure level (DHCP and DNS) to use the same FQDN and IP address as 4.3 server. Adjusting the IP address can be avoided if the latest version of the minion is installed on the clients, as the newer version can automatically re-connect with the server using only the FQDN. |
3. Client Tools Rebranding
SUSE Multi-Linux Manager 5.1 introduces a rebranded set of client tools for all supported operating systems. This transition is seamless, and users performing a new product synchronization should only notice the updated channel names.
Channels named SUSE Manager Client Tools for XYZ, used by clients previously registered with SUSE Multi-Linux Manager 4.3 or 5.0, are no longer available in version 5.1 and will no longer receive updates in 5.1.
Although the legacy channels remain assigned to existing clients after migration, the corresponding repositories have been removed.
To ensure continued updates, users must:
-
Mirror the new
SUSE Multi-Linux Manager Client Tools for XYZchannels for the relevant products and assign them to the appropriate clients. -
Unassign the outdated
SUSE Manager Client Tools for XYZchannels.
This also means that any CLM projects based on the old client tools must be adjusted accordingly.
For example workflow, see Switch to new client tools channels.