第3章 OpenStack Integration Test Suite のインストール
本項では、director または手動のインストール手順を使用した OpenStack Integration Test Suite のインストール方法について説明します。
3.1. director を使用した方法
stack ユーザーのホームディレクトリーにある undercloud.conf ファイルを編集します。デフォルトでは、enable_tempest は false に設定されています。この値を true に変更します。
enable_tempest = true
これで、「OpenStack Integration Test Suite パッケージのインストール」に記載の tempest パッケージとプラグインをインストールする準備が整いました。
3.2. 手動でのインストールの準備
OpenStack Integration Test Suite を実行するには、まず必要なパッケージをインストールして、Integration Test Suite に対してさまざまな OpenStack サービスやその他の動作スイッチの場所を示す設定ファイルを作成します。
コントローラーノードで、root ユーザーとして tempest という名前の仮想マシンを作成します。このマシンは、Red Hat Enterprise Linux 7.3 以上のバージョンを実行している必要があります。また、クラウドにアクセス可能でなければなりませんが、必ずしもクラウドの一部である必要はありません。詳しい情報は、「Virt-Manager を使用したゲストの作成」を参照してください。
また、OpenStack Integration Test Suite をインストールする前には、Red Hat OpenStack Platform 環境内に次のネットワークが設定されている必要があります。
- Floating IP を提供することができる外部ネットワーク
- プライベートネットワーク
これらのネットワークは、1 つのルーターを介して接続されている必要があります。
プライベートネットワークを作成します。
$ openstack network create _<network_name>_ --share $ openstack subnet create _<subnet_name>_ --subnet-range _<address/prefix>_ $ openstack router create _<router_name>_ $ openstack router add subnet _<router_name>_ _<subnet_name>_
パブリックネットワークを作成します。
$ openstack network create _<network_name>_ --external \ --provider-network-type flat $ openstack subnet create _<subnet_name>_ --subnet-range _<address/prefix>_ \ --gateway _<default_gateway>_ --no-dhcp --network _<network_name>_ $ openstack router set _<router_name>_ --external_gateway _<public_network_name>_
これで、OpenStack Integration Test Suite を tempest 仮想マシン内にインストールおよび設定する準備が整いました。詳しい情報は、「OpenStack Integration Test Suite パッケージのインストール」を参照してください。
3.3. OpenStack Integration Test Suite パッケージのインストール
OpenStack Integration Test Suite に関連するパッケージをインストールします。
# yum -y install openstack-tempest
ただし、このコマンドでは、tempest プラグインは一切インストールされません。tempest プラグインは、お使いの OpenStack インストール環境に応じて手動でインストールする必要があります。
マシンにインストール済みの全 OpenStack コンポーネントを確認します。
# openstack-status
各コンポーネントに適切な tempest プラグインをインストールします。以下に例を示します。
# yum install python-glance-tests python-keystone-tests python-horizon-tests-tempest python-neutron-tests python-cinder-tests python-nova-tests python-swift-tests python-ceilometer-tests python-gnocchi-tests python-aodh-tests
各 OpenStack コンポーネント向けの tempest プラグインの一覧は、「tempest プラグインパッケージの一覧」を参照してください。
3.3.1. tempest プラグインパッケージの一覧
| コンポーネント | パッケージ名 |
|---|---|
|
aodh |
python-aodh-tests |
|
ceilometer |
python-ceilometer-tests |
|
cinder |
python-cinder-tests |
|
designate |
python-designate-tests-tempest |
|
glance |
python-glance-tests |
|
gnocchi |
python-gnocchi-tests |
|
heat |
python-heat-tests |
|
horizon |
python-horizon-tests-tempest |
|
ironic |
python-ironic-tests |
|
ironic-inspector |
python-ironic-inspector-tests |
|
keystone |
python-keystone-tests |
|
magnum |
python-magnum-tests |
|
manila |
python-manila-tests |
|
mistral |
python-mistral-tests |
|
murano |
python-murano-tests |
|
neutron |
python-neutron-tests |
|
neutron-fwaas |
python-neutron-fwaas-tests |
|
neutron-lbaas |
python-neutron-lbaas-tests |
|
neutron-vpnaas |
python-neutron-vpnaas-tests |
|
nova |
python-nova-tests |
|
sahara |
python-sahara-tests-tempest |
|
swift |
python-swift-tests |
|
trove |
python-trove-tests |
|
watcher |
python-watcher-tests-tempest |
|
zaqar |
python-zaqar-tests |

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.