Documentation survey

SUSE Managerサーバの名前変更のトラブルシューティング

SUSE Managerサーバのホスト名をローカルで変更する場合は、SUSE Managerインストールが適切に機能しなくなります。 これは、変更がデータベースで行われていないため、変更がクライアントとプロキシに伝播されないためです。

1. サーバの名前変更

SUSE Managerサーバのホスト名を変更する必要がある場合は、spacewalk-hostname-renameスクリプトを使用して変更できます。 このスクリプトはPostgreSQLデータベースの設定とSUSE Managerの内部構造を更新します。

1.1. サーバ設定

spacewalk-hostname-renameスクリプトはspacewalk-utilsパッケージの一部です。

The only mandatory parameter for the script is the new fully qualified domain name of the SUSE Manager Server.

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

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

  3. On the container host, from the command line, execute the following command to update the settings of the server:

    mgrctl exec -ti -- spacewalk-hostname-rename <NEW-FQDN>

    Be aware that this script refreshes the pillar data for all Salt clients: the time it takes to run depends on the number of registered clients.

In case third party SSL certificates are used on the SUSE Manager server, the server certificate and key need to be recreated with the new FQDN.

Procedure: Renaming SUSE Manager Server with third party certificates
  1. Copy the root certification authority certificate, the new server certificate and key to the SUSE Manager Server host.

  2. Copy them to a temporary folder in the container using mgrctl cp.

  3. Run spacewalk-hostname-rename with parameters to deploy the new certificate.

    mgrctl exec mkdir /tmp/ssl
    mgrctl cp ca.crt server:/tmp/ssl/ca.crt
    mgrctl cp srv.crt server:/tmp/ssl/srv.crt
    mgrctl cp srv.key server:/tmp/ssl/srv.key
    mgrctl exec -ti -- spacewalk-hostname-rename <NEW-FQDN> --ssl-ca-cert=/tmp/ssl/ca.crt --ssl-server-cert=/tmp/ssl/srv.crt and --ssl-server-key=/tmp/ssl/srv.key
    mgrctl exec rm -r /tmp/ssl

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

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

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

プロシージャ: 直接管理されているクライアントの再設定
  1. すべてのクライアントのSaltクライアント設定ファイルで、新しいSaltマスター(SUSE Managerサーバ)の名前を指定します。 ファイル名は /etc/venv-salt-minion/minion.d/susemanager.confです。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. highstateを適用したクライアント接続

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

2. プロキシの再設定

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

プロキシ経由でPXEブートを使用する場合は、プロキシの設定を確認する必要があります。 コンテナ化されていないSUSE Managerプロキシ4.3経由でPXEブートを使用する場合は、tftpsyncを再設定する必要があります。

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

mgrctl exec -ti -- configure-tftpsync.sh