Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jriguera/docker-tempest-openstack
Docker tempest OpenStack
https://github.com/jriguera/docker-tempest-openstack
Last synced: about 14 hours ago
JSON representation
Docker tempest OpenStack
- Host: GitHub
- URL: https://github.com/jriguera/docker-tempest-openstack
- Owner: jriguera
- Created: 2016-02-10T00:06:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-22T23:55:36.000Z (over 8 years ago)
- Last Synced: 2024-04-30T10:25:36.925Z (7 months ago)
- Language: Shell
- Size: 2.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.confIf 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_init` system of `phusion/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