第4章 OpenStack Integration Test Suite の設定
4.1. ワークスペースの作成
管理者の認証情報を読み込みます。
アンダークラウドでは、以下のコマンドを実行します。
# source stackrc
また、オーバークラウドでは、以下のコマンドを実行します。
# source overcloudrc
tempestを初期化します。# tempest init mytempest # cd mytempest
これで、
mytempestという名前の tempest ワークスペースが作成されます。既存のワークスペースの一覧を表示することができます。
# tempest workspace list
etc/tempest.confファイルを生成します。# discover-tempest-config --deployer-input ~/tempest-deployer-input.conf \ --debug --create identity.uri $OS_AUTH_URL identity.admin_password \ $OS_PASSWORD --network-id _<uuid>_
uuidは、外部ネットワークの UUID です。discover-tempest-configは、以前はconfig_tempest.pyという名前で、同じパラメーターを取ります。これは、openstack-tempestの依存関係としてインストールされるpython-tempestconfによって提供されます。
4.2. tempest の設定の確認
現在の tempest の設定を確認します。
# tempest verify-config -o _<output>_
output は、更新した設定を書き込むための出力ファイルです。これは、元の設定ファイルとは異なります。
4.3. ロギング設定の変更
ログファイルのデフォルトの場所は、tempest ワークプレース内の logs ディレクトリーです。
このディレクトリーを変更するには、tempest.conf の [DEFAULT] セクション下で、log_dir を必要なディレクトリーに設定します。
[DEFAULT] log_dir = _<directory>_
独自のログ設定ファイルがある場合には、tempest.conf の [DEFAULT] セクション下で log_config_append をそのファイルに指定します。
[DEFAULT] log_config_append = _<file>_
このパラメーターが設定されている場合には、log_dir を含む、tempest.conf 内のその他のログ設定はすべて無視されます。
4.4. マイクロバージョンテストの設定
OpenStack Integration Test Suite は、API マイクロバージョンをテストする安定性のあるインターフェースを提供します。以下のセクションは、これらのインターフェースを使用してマイクロバージョンテストの実装方法を説明します。
まず最初に、tempest.conf 設定ファイルのオプションを設定して、ターゲットのマイクロバージョンを指定する必要があります。これは、サポートされているマイクロバージョンが OpenStack 使用されているマイクロバージョンと必ず一致するようにするためです。ターゲットバージョンの範囲を指定すると、Integration Test Suite の 1 回の操作で複数のマイクロバージョンテストを実行することが可能です。
たとえば、 compute サービスのマイクロバージョンの範囲を限定するには、設定ファイルの [compute] セクションで min_microversion および max_microversion パラメーターの値を割り当てます。
[compute] min_microversion = 2.14 max_microversion = latest

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.