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.

If your system uses a certificate signed by an external or third-party certificate authority, the new certificate containing the new hostname must be obtained before beginning the renaming process. To replace active certificates with your external certificates, see Replace certificates.

1.1. サーバ設定

コマンドは必須パラメータを取りませんが、コンテナホストのホスト名とは異なる場合は、新しいホスト名を受け取ることができます。

新しいホスト名に一致するようにSSL証明書を生成する必要がある場合は、SSL CAパスワードを提供する必要があります。 これは、設定ファイルを使用して安全に実行されます

プロシージャ: SSL CAパスワード用の設定ファイルの準備
  1. Write a config.yaml file with content like the following:

    ssl:
      password: "<CA PASSWORD>"

このファイルは次のプロシージャで使用されます。

プロシージャ: SUSE Multi-Linux Managerサーバの名前変更
  1. システムレベルのサーバのネットワーク設定を、DNSサーバでローカルおよびリモートで変更します。 逆引き名前解決のための設定を指定する必要もあります。 ネットワーク設定の変更は、他のシステムの名前変更と同じ方法で実行されます。

  2. SUSE Multi-Linux Managerサーバを再起動して、新しいネットワーク構成を使用し、ホスト名が変更されていることを確認します。

  3. 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

    新しいホスト名が解決できない場合、コマンドは失敗します。

名前変更のプロシージャは、サーバコンテナの再起動中にも実行されます。 次のコマンドを実行して、ログを確認できます。

mgrctl exec -ti -- journalctl -u uyuni-update-config

サーバコンテナを再起動する際に、このコマンドがすべてのSaltクライアントのpillarデータの更新をトリガすることに注意してください。実行にかかる時間は登録済みクライアントの数によって異なります。

1.2. 直接管理されているクライアントの再設定

クライアントがSUSE Multi-Linux Managerプロキシを介して管理されている場合は、この手順をスキップします。

次のプロシージャを使用して、直接管理されているクライアントを再設定し、新しいホスト名とIPアドレスを認識させるようにします。

プロシージャ: 直接管理されているクライアントの再設定
  1. On the every client, in the Salt client configuration file, specify the name of the new Salt master (SUSE Multi-Linux Manager Server). The filename is /etc/venv-salt-minion/minion.d/susemanager.conf or, if you do not use the Salt bundle, /etc/salt-minion/minion.d/susemanager.conf:

    master: <new_hostname>
  2. すべてのクライアントで、Saltサービスを再起動します。 次コマンドを実行します。

    systemctl restart venv-salt-minion

    または、Salt Bundleを使用しない場合は、次のコマンドを実行します。

    systemctl restart salt-minion

1.3. ClientcConnection with applying high state

最後に、ホスト名がSaltクライアント設定に完全に伝播されるようにするには、highstateを適用します。 highstateを適用すると、リポジトリURLのホスト名が更新されます。

2. プロキシの再設定

すべてのプロキシを再設定する必要があります。 新しいサーバ証明書とキーをプロキシにコピーする必要があります。 詳細については、SUSE Multi-Linux Managerプロキシのインストールを参照してください。

If you use PXE boot through a proxy, you must check the configuration settings of the proxy. If you use PXE boot through non-containerized SUSE Multi-Linux Manager Proxy 4.3, tftpsync needs to be reconfigured.

コンテナホストで、次のコマンドを実行します。

mgrctl exec -ti -- configure-tftpsync.sh