Custom Search

Monday, February 24, 2014

How to Manually Install and Configure OpenStack Tempest

1)
Install OpenStack using devstack and make it running
http://www.youtube.com/watch?v=AdrbYP7utDE

2)
#mkdir tempest_test
#cd tempest_test
#git clone https://github.com/openstack/tempest.git

#git checkout stable/branch_you_need



3)
You will get dependency errors when running following commands
#nosetests -v tempest

4)
Create virtualenv and install all dependencies
#./run_tempest.sh

5)
Activate virtualenv
#ls -a
#source .venv/bin/activate


6)
Find command help
#nosetests -v tempest --help

7)
Stop running tests after the first error or failure (use -x or --stop option)
#nosetests -vx tempest
or
#nosetests -v tempest --stop


8)

ConfigFilesNotFoundError: Failed to read some config files: /etc/tempest/tempest.conf

=============Solution/Fix================

a)
Goto
#cd tempest_test/tempest/etc
#vim tempest.conf.sample

Read "tempest.conf.sample" file and understand different config options

b)
Copy tempest.conf.sample to /etc/tempest/tempest.conf
#sudo mkdir /etc/tempest
#sudo cp tempest.conf.sample /etc/tempest/tempest.conf

1 comment:

  1. (nosetests -v tempest ) How much time will it take to complete this command .

    ReplyDelete