VNF ソフトウェアのアップグレード
ESC は、展開内の初期イメージまたは基本イメージのアップグレードをサポートします。ESC ポリシーフレームワークは、新規および既存の VM のソフトウェアをアップグレードするためのカスタムスクリプトを提供します。ESC ポリシーフレームワークが最新であれば、VM の増分更新がサポートされます。
-
既存の VM のアップグレード:次の ESC ポリシーフレームワークは、ソフトウェアバージョンの更新前にすでに展開されている既存の VM をアップグレードするためのスクリプトをトリガーします。
LCS::DEPLOY_UPDATE::POST_VM_SOFTWARE_VERSION_UPDATED
-
新しい VM のアップグレード:次の ESC ポリシーフレームワークは、導入時、回復時、またはスケールアウト時に新しい VM をアップグレードするためのスクリプトをトリガーします。
LCS::DEPLOY::POST_VM_ALIVE
ボリュームを使用した VNF アップグレードの詳細については、「ボリュームを使用した VNF ソフトウェアのアップグレード」を参照してください。
VNF ソフトウェアバージョンの更新とソフトウェアアップグレードのトリガー
このシナリオでは、カスタムスクリプトを使用してソフトウェアアップグレードをトリガーする手順について説明します。次の例では、CSR VM がアップグレードされます。csr_dep2.xml
を使用したサービスの更新により、カスタム スクリプト アクション LCS::DEPLOY_UPDATE::POST_VM_SOFTWARE_VERSION_UPDATED がトリガーされます。LCS は最初にその VM のモニタリングを無効にしてから、csr_upgrade.exp
スクリプトを呼び出します。スクリプトが CSR に接続し、指定された upgrade.bin を CSR のブートフラッシュに scp し、ブートローダに新しい bin ファイルを指定し、CSR VM を再起動します。その後、bootup_time
をリセットして、モニタリングを有効にします。bootup_time を使用すると、CSR は ESC によって再展開されることなく再起動を完了できます。
手順
ステップ 1 |
ESC VM を展開します。 |
ステップ 2 |
デイゼロ設定を /var/tmp/csp-csr-day0-config として ESC VM にアップロードします。 |
ステップ 3 |
カスタム アップグレード スクリプトを ESC VM にアップロードします。たとえば、csr_upgrade.exp スクリプトを /var/tmp/csr_upgrade.exp として ESC VM にアップロードします。 |
ステップ 4 |
chmod +x /var/tmp/csr_upgrade.exp を実行します。 |
ステップ 5 |
初期展開データモデル(dep.xml など)を編集して、関連する IP、ユーザ名、パスワード、および CSR のアップグレードバージョンを含めます。 |
ステップ 6 |
展開データモデル(dep.xml)のソフトウェアバージョンを編集して、アップグレードされた CSR バージョンを反映させます。 |
ステップ 7 |
ESC ユーザのホームディレクトリに CSR アップグレードをアップロードします。 |
ステップ 8 |
展開された CSR VM をアップグレードします。Run the command: |