In Yoga testing, we are making py3.9 job to run as voting, so adding py3.9 job as voting. Also, as Tempest is branchless and needs to support older supported stable branches, let's test it with all the python version supported in those supported stable branches. For that, we need to explicitly dd the py jobs instead of using the template. This way, we will explicitly know that we are testing all supported python versions when the new release template bumps the min python version in the template. Change-Id: Ib147eb983a0635d6f14f0d0fb8ca537224729d89
|3 weeks ago|
|doc/source||6 months ago|
|releasenotes/notes||2 years ago|
|tempest_stress||11 months ago|
|.gitignore||2 years ago|
|.gitreview||3 years ago|
|.stestr.conf||3 years ago|
|.zuul.yaml||3 weeks ago|
|AUTHORS||5 years ago|
|CONTRIBUTING.rst||2 years ago|
|ChangeLog||5 years ago|
|HACKING.rst||3 years ago|
|LICENSE||5 years ago|
|MANIFEST.in||5 years ago|
|README.rst||2 years ago|
|babel.cfg||5 years ago|
|bindep.txt||6 months ago|
|requirements.txt||5 years ago|
|setup.cfg||3 weeks ago|
|setup.py||2 years ago|
|test-requirements.txt||2 years ago|
|tox.ini||7 months ago|
Tempest Field Guide to Stress Tests
OpenStack is a distributed, asynchronous system that is prone to race condition bugs. These bugs will not be easily found during functional testing but will be encountered by users in large deployments in a way that is hard to debug. The stress test tries to cause these bugs to happen in a more controlled environment.
Stress tests are designed to stress an OpenStack environment by running a high workload against it and seeing what breaks. The stress test framework runs several test jobs in parallel and can run any existing test in Tempest as a stress job.
This particular framework assumes your working Nova cluster understands Nova API 2.0. The stress tests can read the logs from the cluster. To enable this you have to provide the hostname to call 'nova-manage' and the private key and user name for ssh to the cluster in the [stress] section of tempest.conf. You also need to provide the location of the log files:
- target_logfiles = "regexp to all log files to be checked for errors"
- target_private_key_path = "private ssh key for controller and log file nodes"
- target_ssh_user = "username for controller and log file nodes"
- target_controller = "hostname or ip of controller node (for nova-manage)
- log_check_interval = "time between checking logs for errors (default 60s)"
To activate logging on your console please make sure that you activate use_stderr in tempest.conf or use the default logging.conf.sample file.
Running default stress test set
You first need to clone this repo.:
$ git clone https://github.com/openstack/tempest-stress $ cd tempest_stress
$ python setup.py install
To Run stress tests, two configuration files are needed:
- tempest.conf - As per Tempest configuration guidelines here: configuration
- stress_tests.conf - same location as tempest.conf
later one is being used to define all config options specific to stress tests.
Run all tests:
$ run-tempest-stress -a -d 30
Run specific test:
$ run-tempest-stress -t ./tempest_stress/etc/server-create-destroy-test.json -d 30
This sample test tries to create a few VMs and kill a few VMs.
For more information please refer run-tempest-stress CLI help:
$ run-tempest-stress -h
Sometimes the tests don't finish, or there are failures. In these cases, you may want to clean out the nova cluster. We have provided some scripts to do this in the
tools subdirectory. You can use the following script to destroy any keypairs, floating ips, and servers: