SUSE Multi-Linux Managerプロキシのアップグレード

アップグレードコマンドを実行する前に、ホストオペレーティングシステムを更新する必要があります。ホストオペレーティングシステムを更新すると、mgrpxyツールなどのSUSE Multi-Linux Managerツールも更新されます。

プロシージャ: プロキシのアップグレード
  1. zypperを使用してソフトウェアリポジトリを更新します。

    zypper ref
  2. ホストオペレーティングシステムに応じて、以下のステップに進みます。

    SL Microなどのトランザクションシステムの場合:
    1. transactional-updateを使用して利用可能な更新を適用します。

      transactional-update
    2. 更新が適用されたら、rebootを実行して再起動します。

    SUSE Linux Enterprise Serverの場合:

    zypperを使用してインストールされたソフトウェアを更新します。

    zypper up
  3. podman上で実行されるSUSE Multi-Linux Managerプロキシコンテナは、次のコマンドを使用して更新できます。

    mgrpxy upgrade podman

    または、Kubernetesクラスタ上で実行されるプロキシコンテナは、次のコマンドを使用して更新できます。

    mgrpxy upgrade kubernetes
  4. podman上で、未使用のコンテナイメージをクリーンアップしてディスク容量を解放します。

    podman image prune -a

    On Kubernetes the image cleanup is handled automatically, or it depends on the Kubernetes distribution. ``

  5. Check for *.rpmnew and *.rpmsave files inside the container:

    mgrctl exec 'find /etc/ -name "*.rpmnew" -o -name "*.rpmsave"'

    When an upgrade includes changes to a default configuration file that has been altered after package installation, instead of overwriting the file, one of these file types is created:

    • *.rpmnew: contains the new default configuration and leaves your altered file untouched

    • *.rpmsave: a copy of your altered configuration that has been replaced by the new default file

  6. If you find any *.rpmnew or *.rpmsave files, examine their content and merge desirable changes.

特定のバージョンにアップグレードする際にタグパラメータを指定しない場合、デフォルトで最新バージョンにアップグレードされます。特定のバージョンにアップグレードするには、タグパラメータと目的のイメージタグを指定します。

特定のタグを使用して特定のコンテナをアップグレードするオプションはありますが、この機能はPTFの適用のみを意図しています。

通常の状況下では、すべてのプロキシコンテナに同じタグを使用して一貫性を確保することを強くお勧めします。

Air-gappedインストールでは、まずコンテナのRPMパッケージをアップグレードし、その後mgrpxy upgrade podmanコマンドを実行します。