コンテナ化された環境へのSUSE Multi-Linux Managerサーバの移行
1. 要件と考慮事項
1.1. 全般
-
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
mgradm
installed. -
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.
-
従来の接続プロトコルは、SUSE Multi-Linux Manager 5.0以降ではサポートされなくなりました。
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. ホスト名
-
現在、この移行手順にはホスト名の名前変更機能が含まれていません。そのため、新しいサーバの完全修飾ドメイン名(FQDN)は古いサーバのFQDNと同じままです。
-
クライアントがサーバに確実に接続できるよう、IPアドレスは変更しないままにする必要があります。
移行後、新しいサーバを指すようにDHCPおよびDNSレコードを手動で更新する必要があります。
1.3. GPGキー
-
自己信頼GPGキーは移行されません。
-
RPMデータベースで信頼されているGPGキーのみが移行されます。したがって、
spacewalk-repo-sync
でチャンネルを同期すると失敗する可能性があります。 -
管理者は、サーバを実際に移行した後にこれらのキーを4.3のインストールからコンテナホストに手動で移行する必要があります。
プロシージャ: 4.3 GPGキーの新しいサーバへの手動移行-
4.3サーバから新しいサーバのコンテナホストにキーをコピーします。
-
その後、コマンド
mgradm gpg add <PATH_TO_KEY_FILE>
を使用して、移行したサーバに各キーを追加します。
-
2. 移行
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. |
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.
-
インストール用のDVDまたはUSBフラッシュドライブ(ダウンロードした
.iso
イメージを含む)を準備します。
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.
-
SLE Micro 6.1のインストールイメージを含むDVDまたはUSBフラッシュドライブ(USBディスクまたはキー)を挿入します。
-
システムをブートまたは再起動します。
-
矢印キーを使用して
インストール
を選択します。 -
Adjust Keyboard and language.
-
チェックボックス
をクリックしてライセンス契約に同意します。 -
次へ
をクリックして続行します。 -
登録方法を選択します。この例では、SUSE Customer Centerを使用してサーバを登録します。
SUSE Multi-Linux Manager 5.1コンテナは拡張機能としてインストールされます。以下のリストから必要な特定の拡張機能に応じて、それぞれに追加のSUSE Customer Center登録コードが必要です。
-
SUSE Multi-Linux Manager 5.1サーバ
-
SUSE Multi-Linux Manager 5.1プロキシ
-
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.
-
-
SUSE Customer Centerの電子メールアドレスを入力します。
-
Enter your registration code for SL Micro 6.1.
-
次へ
をクリックして続行します。 -
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
. -
次へ
をクリックして続行します。 -
Enter your SUSE Multi-Linux Manager 5.1 extension registration code.
-
次へをクリックして続行します。
-
NTP設定
ページで、次へをクリックします。 -
Authentication for the System (システムの認証)
ページで、rootユーザのパスワードを入力します。Click 次へをクリックします。 -
インストール設定
ページで、インストールをクリックします。
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>
-
-
再起動します。
2.1.1.4. システムの更新
-
rootとしてログインします。
-
transactional-updateを実行します。
transactional-update
-
再起動します。
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 procedure describes the main steps of the installation process.
-
Locate and download SUSE Linux Enterprise Server 15 SP7
.iso
at 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.
-
Language, Keyboard and Product Selection
(言語、キーボードおよび製品の選択)で、インストールする製品を選択します。 -
ライセンス契約
で契約を読み、[I Agree to the License Terms
( ライセンス条項に同意します)にチェックを付けます。
-
-
Select the registration method. For this example, we will register the server with SUSE Customer Center.
-
SUSE Customer Centerの電子メールアドレスを入力します。
-
Enter your registration code for SUSE Linux Enterprise Server 15 SP7.
-
次へ
をクリックして続行します。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.
-
拡張とモジュールの選択
で、以下にチェックを付けます。-
Select the SUSE Multi-Linux Manager Server Extension to install the Server, or the SUSE Multi-Linux Manager Proxy Extension to install the Proxy.
-
ベースシステムモジュール
-
Containersモジュール
-
-
次へ
をクリックして続行します。 -
Enter your SUSE Multi-Linux Manager 5.1 extension registration code.
-
次へをクリックして続行します。
-
インストールを完了します。
-
インストールが完了したら、rootとして新しくインストールしたサーバにログインします。
-
Update the System (optional, if the system was not set to download updates during install):
zypper up
-
再起動します。
-
Log in as root and install
podman
plusmgradm
andmgradm-bash-completion
(if not already automatically installed):zypper install podman mgradm mgradm-bash-completion
-
Start the Podman service by rebooting the system, or running a command:
systemctl enable --now podman.service
2.2. SSH接続の準備
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.
-
root
に対して、新しい5.1サーバ上にSSHキーが存在することを確認します。存在しない場合は、次のコマンドを使用して作成します。ssh-keygen -t rsa
-
パスワードを要求しない4.3サーバへの接続のために、新しいサーバ上でSSH設定とエージェントを準備する必要があります。
eval $(ssh-agent); ssh-add
パスワードを要求しない接続を確立するために、移行スクリプトは新しいサーバで実行されているSSHエージェントに依存します。このエージェントがまだアクティブではない場合は、
eval $(ssh-agent)
を実行して開始します。その後、ssh-add
に続けて機密鍵へのパスを指定し、実行中のエージェントにSSHキーを追加します。このプロセス中に、機密鍵のパスワードの入力を求められます。 -
ssh-copy-id
を使用して、SSH公開鍵をSUSE Multi-Linux Manager 4.3サーバ(<oldserver.fqdn>
)にコピーします。<oldserver.fqdn>
は、4.3サーバのFQDNに置き換えてください。ssh-copy-id <old server.fqdn>
SSHキーは、古いサーバの
~/.ssh/authorized_keys
ファイルにコピーされます。 詳細については、ssh-copy-id
のマニュアルページを参照してください。 -
新しいサーバから古いSUSE Multi-Linux ManagerサーバへのSSH接続を確立し、パスワードが不要であることを確認します。また、ホストの指紋に問題がないことも確認します。問題がある場合は、古い指紋を
~/.ssh/known_hosts
ファイルから削除して、もう一度実行します。指紋はローカルの~/.ssh/known_hosts
ファイルに保存されます。
2.3. 移行の実行
When planning your migration from SUSE Multi-Linux Manager 4.3 to SUSE Multi-Linux Manager 5.1, ensure that your target instance meets or exceeds the specifications of the old setup.
これには、メモリ(RAM)、CPUコア、ストレージ、ネットワーク帯域幅が含まれますが、これらに限定されません。
-
This step is optional. If custom persistent storage is required for your infrastructure, use the
mgr-storage-server
tool. For more information aboutmgr-storage-server
, see installation-and-upgrade:hardware-requirements.adoc#install-hardware-requirements-storage. -
次のコマンドを実行して、新しいSUSE Multi-Linux Managerサーバをインストールします。
<oldserver.fqdn>
は4.3サーバのFQDNに置き換えてください。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 server can stay up and running.
最終移行時のみ、古いサーバ上のプロセスを停止する必要があります。
For all non-final replications add the parameter
--prepare
to prevent the automatic stopping the services on the old server. For example on SUSE Multi-Linux Manager server:mgradm migrate podman <oldserver.fqdn> --prepare
-
Stop the SUSE Multi-Linux Manager services on 4.3 Server:
spacewalk-service stop
-
Stop the PostgreSQL service on 4.3 Server:
systemctl stop postgresql
-
Perform the migration on SUSE Multi-Linux Manager server
mgradm migrate podman <oldserver.fqdn>
-
信頼されているSSL CA証明書を移行します。
2.3.1. 証明書の移行
RPMの一部としてインストールされ、SUSE Multi-Linux Manager 4.3の/usr/share/pki/trust/anchors/
ディレクトリに保存されている信頼済みSSL CA証明書は移行されません。SUSEはRPMパッケージをコンテナ内にインストールしないため、管理者は移行後にこれらの証明書ファイルを4.3のインストールから手動で移行する必要があります。
-
4.3サーバから新しいサーバにファイルをコピーします。 たとえば、
/local/ca.file
です。 -
次のコマンドを使用してファイルをコンテナにコピーします。
mgrctl cp /local/ca.file server:/etc/pki/trust/anchors/
これらを5.1サーバにリダイレクトするために、新しいサーバの名前をインフラストラクチャレベル(DHCPおよびDNS)で変更し、4.3サーバと同じFQDNとIPアドレスを使用する必要があります。 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. |
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 Although the legacy channels remain assigned to existing clients after migration, the corresponding repositories have been removed. To ensure continued updates, users must:
This also means that any CLM projects based on the old client tools must be adjusted accordingly. |