GithubHelp home page GithubHelp logo

docker-tempest-openstack's Introduction

docker-tempest-openstack

Docker container to run smoke tests against an OpenStack environment. It is not dangerous (unless you intentionally run the stress tests) by running it without args.

  • To build the Docker container ./build.sh (name of the image creaded: tempest). Type docker images to see it.

  • To run the container, do the auto-configuration and list all the tests, just put a openrc.sh file in this folder (admin or other user/project with admin role) and type ./run.sh without args. Without args it will list all the test available and a tempest folder will be created to store the test repository.

Configuration

You can provide your own tempest configuration by creating these files in this folder (apart of the openrc.sh file) before running ./run.sh for first time:

  • tempest.conf
  • accounts.yaml
  • logging.conf

If those files are found, no autoconfiguration will be done. Otherwise, the container will try to find out the tempest settings for your environment, by using the OpenStack client openstack.

Autoconfiguration is not easy for complicated environments, so in order to help or for fine tuning, you can provide some variables, have a look at run.sh and adapt it for your environment.

By default it uses ostestr command to run the tests: http://docs.openstack.org/developer/os-testr/readme.html but it is possible to switch to testr by defining TEMPEST_COMMAND=testr

Examples

Tempest repository is created in tempest.

To see the list of available tests: ./run.sh

To run help: ./run.sh --help

To run api tests with pretty print and one test at a time (concurrency == 1) : ./run.sh -p -c 1 --regex '(^tempest\.(api))'

Hacking the container

Go to docker folder and:

  • conf are the files will be copied to \etc\tempest
  • confd is the configuration for confd and the template for tempest autoconfiguration file.
  • bin includes the entrypoint (init.sh) and the confd utility.
  • init includes the files for initialization and autoconfiguration which are launched from bin\init.sh', otherwise they could run using the my_initsystem ofphusion/baseimage`

Known problems

  • Autoconfiguration is done the fist time that tempest folder is created, after the first run the openrc file is not needed anymore. If you need to make changes after the first time, go to tempest/etc folder and change the contents there.

  • tempest folder creates files owner by root. Internally, within the container, the process runs as root and it creates all the files as root uid in tempest. From the host operating system, one cannot go into the folder because the files are owned by root. Workaround, use "sudo"

  • It seems tempest github repository does not use tags (there are tags, but too old) or branches, so, when the container is built it always will get the master branch. I recommend tagging the docker images once they are created and upload them to a registry.

Author

José Riguera López [email protected]

docker-tempest-openstack's People

Contributors

jriguera avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.