=======
This repo contains Dockerfile to build and run a simple set of acceptance tests for OpenStack. This projects uses modified smoke tests of openstack/tempest project.
We created docker parent image with Tempest and prerequisites. It located in ykisialiou/tempest-parent repo. Tempest has quite large and complicated config, used for all test sets, unfortunately it is full of sensitive data (such as API accessing user with credentials). So, it’s would be better to configure a lot of options on your side (users credentials, network options, openstack components and features, used on your installation). tempest.config is self documented and most of options described well. We also provide you config from our testing environment, maybe it will be useful.
The testing process will consist of several steps on your side:
- Clone this repo:
git clone https://github.com/Ykisialiou/tempest-docker.git. - Fill necessary options in
tempest.conf. You can find some notes bellow. - Build docker image:
sudo docker build -t openstack-tests . - Run docker image:
sudo docker run openstack-tests > testing_results
testing_results file is a result of test envokation.
If you look at testing_results file and see errors, it is not necessary you Openstack problems. Sometimes it may be connected with tempest misconfiguration or bugs.
======= Options, which should be paid attention to is located below corresponding sections.
[service_available] section
cinder
neutron
glance
swift
nova
bool options to describe components, you are using in you install. true if component set up and should be tested
[identity] section
uri
username
tenant_name
admin_role
password
alt_username
alt_tenant_name
alt_password
admin_username
admin_tenant_name
admin_password
uri - api endpoint URI in form https://10.10.10.10/v2/5000
other options - credentials and tennants for users, having nova API access and Keystone access
[compute] section
image_ref
flavor_ref
image_ssh_user
image_ssh_password
ssh_auth_method
ssh_connect_method
references to images and flavours for test vm, which will be created and then deleted.
network options for ssh connections to hosts
[network] section
tenant_network_cidr
tenant_network_mask_bits
public_network_id
floating_network_name
internal and floating IP networks names and IDs