2.2. 自動スケーリングのためのオーバークラウドのデプロイ

Director を使用するか、スタンドアロン環境を使用して、自動スケーリング用にオーバークラウドをデプロイできます。

前提条件

2.2.1. Director を使用した自動スケーリング用のオーバークラウドのデプロイ

Director を使用して、オーバークラウドをデプロイします。スタンドアロン環境を使用している場合は、「スタンドアロン環境での自動スケーリング用のオーバークラウドのデプロイ」 を参照してください。

前提条件

手順

  1. アンダークラウドに stack ユーザーとしてログインします。
  2. stackrc アンダークラウド認証情報ファイルを入手します。

    [stack@director ~]$ source ~/stackrc
  3. 自動スケーリング環境ファイルを他の環境ファイルとともにスタックに追加し、オーバークラウドをデプロイします。

    (undercloud)$ openstack overcloud deploy --templates \
      -e [your environment files] \
      -e $HOME/templates/autoscaling/parameters-autoscaling.yaml \
      -e $HOME/templates/autoscaling/resources-autoscaling.yaml

2.2.2. スタンドアロン環境での自動スケーリング用のオーバークラウドのデプロイ

実稼働前環境で環境ファイルをテストするには、スタンドアロンデプロイメントを使用して、自動スケーリングに必要なサービスを含むオーバークラウドをデプロイできます。

注記

この手順では、実稼働環境に合わせて変更する必要がある値とコマンドの例を使用します。

Director を使用して、自動スケーリング用のオーバークラウドをデプロイする場合は、「Director を使用した自動スケーリング用のオーバークラウドのデプロイ」 を参照してください。

前提条件

手順

  1. オーバークラウドのデプロイメントを管理するユーザー (例: stack ユーザー) に変更します。

    [root@standalone ~]# su - stack
  2. オーバークラウドデプロイメントの環境変数 $IP$NETMASK、および $VIP を置換または設定します。

    $ export IP=192.168.25.2
    $ export VIP=192.168.25.3
    $ export NETMASK=24
  3. オーバークラウドをデプロイして、リソースとパラメーターファイルをテストおよび検証します。

    $ sudo openstack tripleo deploy \
      --templates \
      --local-ip=$IP/$NETMASK \
      --control-virtual-ip=$VIP \
      -e /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml \
      -r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml \
      -e $HOME/containers-prepare-parameters.yaml \
      -e $HOME/standalone_parameters.yaml \
      -e $HOME/templates/autoscaling/resources-autoscaling.yaml \
      -e $HOME/templates/autoscaling/parameters-autoscaling.yaml \
      --output-dir $HOME \
      --standalone
  4. OS_CLOUD 環境変数をエクスポートします。

    $ export OS_CLOUD=standalone