SUSE Multi-Linux Managerサーバの名前変更のトラブルシューティング
SUSE Multi-Linux Managerサーバのホスト名をローカルで変更する場合は、SUSE Multi-Linux Managerインストールが適切に機能しなくなります。 これは、変更がデータベースで行われていないため、変更がクライアントとプロキシに伝播されないためです。
1. サーバの名前変更
If you need to change the hostname of the SUSE Multi-Linux Manager Server, you can do so using the mgradm server rename
command. This command updates the settings in the PostgreSQL database and the internal structures of SUSE Multi-Linux Manager.
1.1. サーバ設定
The command takes no mandatory parameter, but can take the new hostname if it is not the one from the container host.
In case any SSL certificate needs to be generated to match the new hostname, the SSL CA password needs to be provided. This is safely achieved using a configuration file
-
Write a
config.yaml
file with content like the following:ssl: password: "<THE CA PASSWORD>"
-
システムレベルのサーバのネットワーク設定を、DNSサーバでローカルおよびリモートで変更します。 逆引き名前解決のための設定を指定する必要もあります。 ネットワーク設定の変更は、他のシステムの名前変更と同じ方法で実行されます。
-
SUSE Multi-Linux Managerサーバを再起動して、新しいネットワーク構成を使用し、ホスト名が変更されていることを確認します。
-
On the container host, from the command line, execute the following command. Add
-c config.yaml
if you created the file to store the SSL CA password:mgradm server rename
If the new hostname is not resolvable, the command fails.
The renaming procedure also takes place during the restart of the server container. The logs can be found by running this command:
mgrctl exec -ti -- journalctl -u uyuni-update-config
Be aware that this command triggers a refresh of the pillar data for all Salt clients when restarting the server container: the time it takes to run depends on the number of registered clients.
1.2. 直接管理されているクライアントの再設定
クライアントがSUSE Multi-Linux Managerプロキシを介して管理されている場合は、この手順をスキップします。
次のプロシージャを使用して、直接管理されているクライアントを再設定し、新しいホスト名とIPアドレスを認識させるようにします。
-
すべてのクライアントのSaltクライアント設定ファイルで、新しいSaltマスター(SUSE Multi-Linux Managerサーバ)の名前を指定します。 ファイル名は
/etc/venv-salt-minion/minion.d/susemanager.conf
です。Salt Bundleを使用しない場合は、/etc/salt-minion/minion.d/susemanager.conf
です。master: <new_hostname>
-
すべてのクライアントで、Saltサービスを再起動します。 次コマンドを実行します。
systemctl restart venv-salt-minion
または、Salt Bundleを使用しない場合は、次のコマンドを実行します。
systemctl restart salt-minion
1.3. highstateを適用したクライアント接続
最後に、ホスト名がSaltクライアント設定に完全に伝播されるようにするには、highstateを適用します。 highstateを適用すると、リポジトリURLのホスト名が更新されます。
2. プロキシの再設定
すべてのプロキシを再設定する必要があります。 新しいサーバ証明書とキーをプロキシにコピーする必要があります。 詳細については、SUSE Multi-Linux Managerプロキシのインストールを参照してください。
プロキシ経由でPXEブートを使用する場合は、プロキシの設定を確認する必要があります。 コンテナ化されていないSUSE Multi-Linux Managerプロキシ4.3経由でPXEブートを使用する場合は、 コンテナホストで、次のコマンドを実行します。
|