QA:Testcase run Tempest tests

From FedoraProject

Revision as of 15:16, 7 March 2012 by Eglynn (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Description

Run Tempest test cases.

Setup

Optionally include information on preparing the test environment

How to test

Ensure nova is configured to allow resizing of instances on a single host:

$> sudo echo "allow_resize_to_same_host = True" >> /etc/nova/nova.conf                
$> for svc in api compute scheduler; do sudo systemctl restart openstack-nova-$svc.service; done

Ensure SELinux enforcement is disabled:

$> sudo setenforce 0
$> sudo sed -i 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config

Install test dependencies:

$> sudo yum install -y python-nose python-unittest2

Create a temporary directory to work from:

$> mkdir /tmp/tempest
$> cd /tmp/tempest

Upload some test images:

$> wget http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz
$> gunzip cirros-0.3.0-x86_64-uec.tar.gz 
$> tar xvf cirros-0.3.0-x86_64-uec.tar 
$> KERNEL_ID=$(glance add name=cirros-0.3.0-x86_64-kernel is_public=true container_format=aki disk_format=aki --silent-upload < cirros-0.3.0-x86_64-vmlinuz

Expected Results

The time taken to run the testsuite is quite variable, and ranges from ~20 minutes on an EC2 large instance to circa twice that on a VM with 2Gb RAM and 2 CPUs running on a moderately powered laptop.

The majority of the tests should pass, though you may hit some failures due to timeout or resource starvation (for example breaching the floating IPs quota).