6.3. 컨테이너 외부에서 컨테이너화된 Tempest 실행
컨테이너는 tempest.conf 파일을 생성하거나 검색하고 테스트를 실행합니다. 컨테이너 외부에서 다음 작업을 수행할 수 있습니다.
오버클라우드에 대해 tempest를 실행하려면
overcloudrc파일을 소싱합니다. 언더클라우드에 대해 tempest를 실행하려면stackrc파일을 소싱합니다.# source /home/stack/container_tempest/overcloudrctempest init을 실행하여 tempest Workspace를 생성합니다. 호스트에서 파일도 액세스할 수 있도록 공유 디렉터리를 사용합니다.# tempest init /home/stack/tempest_workspacetempest.conf파일을 생성합니다.# discover-tempest-config \ --out /home/stack/tempest_workspace/tempest.conf \ --deployer-input /home/stack/container_tempest/tempest-deployer-input-conf \ --debug \ --create \ object-storage.reseller_admin ResellerAdmindiscover-tempest-config명령에 포함할 수 있는 옵션에 대한 자세한 내용은discover-tempest-config --help를 실행합니다.tempest 테스트를 실행합니다. 예를 들어 이전 단계에서 생성한 별칭을 사용하여 tempest 스모크 테스트를 실행하려면 다음 명령을 실행합니다.
# docker-tempest -c "tempest run --smoke"-
테스트 결과에 대한 정보는
.stestr디렉토리를 검사합니다. tempest 테스트를 다시 실행하려면 먼저 tempest 작업 영역을 제거하고 다시 생성해야 합니다.
$ sudo rm -rf /home/stack/tempest_workspace $ mkdir /home/stack/tempest_workspace