이 콘텐츠는 선택한 언어로 제공되지 않습니다.

17.2. Configure the OpenStack Integration Test Suite


Within the tempest virtual machine, run the following steps to configure your environment:
  1. Create a working directory to run the OpenStack Integration Test Suite tools, for example, mytempest:
    # mkdir -p /path/to/mytempest
    Copy to Clipboard Toggle word wrap
  2. Within the mytempest directory, run the configure-tempest-directory command to setup the OpenStack Integration Test Suite within the mytempest directory.
    # cd /path/to/mytempest
    # /usr/share/openstack-tempest-*/tools/configure-tempest-directory
    Copy to Clipboard Toggle word wrap
  3. Export the Red Hat OpenStack Platform environment variable with the proper credentials. The credentials for this environment are as follows:
    # export OS_USERNAME=admin
    # export OS_PROJECT_NAME=admin
    # export OS_PASSWORD=password
    # export OS_AUTH_URL=http://IP:35357/v2
    Copy to Clipboard Toggle word wrap

    Note

    It is not necessary to have admin credetials to run the OpenStack Intergration Test Suite. With admin credentials, you can perform the following actions:
    • Run tests for admin APIs
    • Generate test credentials on the go.
  4. With a saved resource state, run the config_tempest.py script with the following credentials to properly create the tempest.conf configuration file that resides within the /etc directory.
    # tools/config_tempest.py --debug --create identity.uri $OS_AUTH_URL identity.admin_username $OS_USERNAME identity.admin_password $OS_PASSWORD identity.admin_tenant_name $OS_PROJECT_NAME object-storage.operator_role swiftoperator
    Copy to Clipboard Toggle word wrap
  5. Before you run any tests, it is critical to preserve a clean resouce state of the existing OpenStack cloud:
    # tempest cleanup --init-saved-state
    Copy to Clipboard Toggle word wrap

    Note

    Cleanup with the OpenStack Integration Test Suire does not cleanup the entire environment. It is possible that manual intervention is required to clean up the existing OpenStack cloud.
  6. Review the etc/tempest.conf file located within the mytempest directory to ensure it meets all your Red Hat OpenStack Platform environment needs.
  7. Verify the run-test.sh script properly runs, by using one of the tempest tests labeled tempest.api.compute.flavors.
    # tools/run-tests.sh --concurrency 4 tempest.api.compute.flavors
    Copy to Clipboard Toggle word wrap

    Note

    The option concurrency 4 prevents the OpenStack Integration Test Suite from creating race conditions and/or unexpected errors.
  8. After successful verification, run the run-tests.sh scripts as follows:
    # tools/run-tests.sh --concurrency 4 --skip-file tools/ra-skip-file | tee ra-out.txt
    Copy to Clipboard Toggle word wrap

    Note

    The ra-skip-file contains specific tempest tests excluded when running the run-tests.sh script. The reason specific tests are excluded is due to your environment not running certain scenarios, for example, floating IP tests and third party tests. A sample ra-skip file can be as follows:
    -tempest\.api\.compute\.floating_ips.* -tempest\.thirdparty\.boto.*
    -tempest\.api\.compute\.floating_ips.* -tempest\.api\.network\.test_floating_ips.*
    -tempest\.api\.network\.admin\.test_floating_ips_admin_action
    Copy to Clipboard Toggle word wrap
    Every Red Hat OpenStack Environment is different and therefore the test scenario cases to skip may vary for each environment.
  9. Once the OpenStack Integration Test Suite tests that verify your OpenStack deployment are complete, cleanup the environment to return it to its original resource state.
    # python -m tempest.cmd.cleanup
    Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동