Show Table of Contents
2.6. Subscription Asset Manager のアップグレード
- アップグレード手順を始める前に、Subscription Asset Manager インスタンスのバックアップを作成します。Subscription Asset Manager インスタンスのバックアップ方法は、「Subscription Asset Manager のバックアップ」 で説明しています。
- Subscription Asset Manager サービスをすべて停止します。
[root@server]# katello-service stop
katello-serviceコマンドが利用できない場合は、関連するサービスを手動で停止します。[root@server]# service katello stop [root@server]# service katello-jobs stop [root@server]# service httpd stop [root@server]# service tomcat6 stop [root@server]# service elasticsearch stop
重要
postgresqlサービスは停止しないでください。 - インデックスをフラッシュします。
- Elasticsearch サービスを開始します。
# service elasticsearch start
- インデックスをフラッシュします。
# curl localhost:9200/_flush
- Elasticsearch サービスを停止します。
# service elasticsearch stop
yumで Subscription Asset Manager パッケージをアップグレードします。[root@server]# yum upgrade
yumは、.rpmnewファイルおよび.rpmsaveファイルの両方を作成することで、現在の Subscription Asset Manager 設定を上書きしないようにします。新しい変更については、このファイルで既存の設定を確認します。設定ファイルの一覧を表示する場合は、次のコマンドを実行します。[root@server]# rpm -ql katello-configure | grep erb | grep etc | sed 's/.*etc/\/etc/' | sed 's/\.erb//'
.rpmnewファイルの一覧を表示するには、次のコマンドを実行します。[root@server]# find /etc -name *rpmnew
- アップグレードスクリプトを使用して Subscription Asset Manager をアップグレードします。
[root@server]# katello-upgrade
アップグレードスクリプトでは、以下のように、アップグレードの各プロセスでユーザーの確認が求められます。1/1: Update Candlepin (0003_update_candlepin.sh) Updates Candlepin database schema to the latest version Do you want to proceed? (y/n): y Update Candlepin OK.
- 設定ファイルの修正を行ったり、 ログ出力でエラーの分析を行ったりする場合は、
katello-configureを実行します。[root@server]# katello-configure
注記
katello-configureを実行しても設定プロセスが完了しない場合があります。この場合、設定プロセスを完了するためもう一度katello-configureを実行する必要があります。katello-configureは設定プロセスが終了するまで何度でも実行して構いませんが、通常は 2 度の実行で完了します。 - Subscription Asset Manager サーバーを起動します。
[root@server]# katello-service start
- Subscription Asset Manager サーバーをテストします。
[root@server]# katello-service status [root@server]# katello -u admin -p admin password ping
- すべての Subscription Asset Manager エージェントシステムで、ポート設定を更新します。QPIDD ポートは、Subscription Asset Manager 1.1 以降、5674 から 5671 に変更になりました。katello-agent を使用して、Subscription Asset Manager に接続している全システムでポート 5671 を使用するように更新する必要があります。
- システムを、katello-agent および goferd の最新バージョンにアップグレードします。
- Katello プラグイン設定ファイルを開きます。
[root@server]# vim /etc/gofer/plugins/katelloplugin.conf
url行で、ポート番号を変更します。url=ssl://$(host):
5671- katello-agent サービスおよび goferd サービスを再開します。
- Subscription Asset Manager のファイアウォールに対してポート 5671 を開きます。たとえば、以下のルールを iptables に追加します。
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5671 -j ACCEPT

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.