Contents
......Unfinished page, work in progress.......
Testing a Openstack Installation with tempest on Debian GNU/Linux
Scope of this howto
This page explains how to test a Openstack Cluster installation on Debian The Tempest tools will be used to test the installation and the stability of the cluster.
The s3-tests tools for swift s3
DOCUMENT CONVENTIONS
In formatted blocks :
command lines starting with a # must be run as root.
values between < and > must be replaced by your values.
replace <mgmt.host> with the actual hostname of the machine chosen to be the management node.
Prerequise
Tempest Installation
Setup the Dependencies:
# apt-get install -y git python-nose python-anyjson python-unittest2 python-lxml python-boto openstack-clients python-paramiko python-netifaces python-webob
Clone the git repository (here the folsom branch is used to test a folsom cluster)
# git clone https://github.com/openstack/tempest.git -b stable/folsom
Prepare a image in glance for tempest: NB: we assume that Openstack environment variables (OS_USERNAME, OS_TENANT_NAME, OS_PASSWORD and OS_AUTH_URL) are set.
# wget https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img # glance add name="cirrOS-0.3.0-x86_64" is_public=true container_format=bare disk_format=qcow2 distro="cirrOS-0.3.0-x86_64" < cirros-0.3.0-x86_64-disk.img
Create two users for tempest test:
# keystone tenant-create --name demo | awk '/id/{print $4}' 2c5beb41f0184cd8a7bf39fb6dfe56be # keystone user-create --name demo --pass pass --email demo@demo.com --tenant-id 2c5beb41f0184cd8a7bf39fb6dfe56be | awk '/id/{print $4}' ea80cb1a216c44f1845e6fe9d1025ac2 # keystone tenant-create --name alt-demo | awk '/id/{print $4}' 541fef9a6a364b05b0bd37c0a2219504 # keystone user-create --name alt-demo --pass pass --email alt-demo@demo.com --tenant-id 541fef9a6a364b05b0bd37c0a2219504 bfe2b7da10034329b04caef5d12345a8 keystone --os-username demo --os-password pass --os-tenant-name demo --os-auth-url http://identity.mystack.net:5000/v2.0/ ec2-credentials-create | grep -e access -e secret | access | fd158f8c4841411f8ec0b1500b8c3c16 | | secret | e6563c4efcc14c418f20262e92e8bfa9 |
Tempest configuration
Prepare the configuration file
cp /root/tempest/etc/tempest.conf.sample /root/tempest/etc/tempest.conf
Edit the following fields in /root/tempest/etc/tempest.conf:
nb: identity/host define field "host" in section "[identity"]
identity/host = <KEYSTONE_HOST> identity/port = <KEYSTONE_PORT> compute/image_ref = <ID_OF_THE_PREVIOUSLY_CREATED_GLANCE_IMAGE> compute/image_ref_alt = <ID_OF_THE_PREVIOUSLY_CREATED_GLANCE_IMAGE> compute/whitebox_enabled = false # this disable tests inside VM compute/resize_available = false # disable it only if your cluster don't support resize image/host = <GLANCE_HOST> image/host = <GLANCE_PORT> boto/ec2_url = <URL_OF_THE_EC2_API> # ie: http://identity.mystack.net:8773/services/Cloud boto/s3_url = <URL_OF_THE_S3_API> # ie: http://storage.mystack.net:8080 boto/aws_access = fd158f8c4841411f8ec0b1500b8c3c16 boto/aws_secret = e6563c4efcc14c418f20262e92e8bfa9