From Fedora Project Wiki

No edit summary
(remove from cloud SIG category)
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
It can be useful to use these to sanity check your configuration.
It can be useful to use these to sanity check your configuration.


|setup=First off, you need the nova-adminclient python library which isn't yet packaged:
|setup=
You need these packages


  $> sudo yum install python-nova-adminclient --enablerepo=updates-testing -y
  $> sudo yum install python-nose python-paramiko fedpkg python-nova-adminclient


You also need these packages
Make sure you have a block of floating IPs created, also as described above.


  $> sudo yum install python-nose python-paramiko fedpkg
Also ensure that the nova objectstore service is running, as the S3 API is hit by the image tests:
 
  $> sudo systemctl start openstack-nova-objectstore.service
 
 
Creating Certs (needed by euca-bundle-image in the ImageTests )
$> cd ~
$> nova x509-create-cert
$> export EC2_USER_ID=42
$> export EC2_CERT=~/cert.pem
$> export EC2_PRIVATE_KEY=~/pk.pem
$> nova x509-get-root-cert
$> export EUCALYPTUS_CERT=~/cacert.pem


Make sure you have a block of floating IPs created, also as described above.


|actions=Then, run the tests from a fedpkg checkout:
|actions=Then, run the tests from a fedpkg checkout:
Line 17: Line 29:
  $> git clone git://pkgs.fedoraproject.org/openstack-nova.git
  $> git clone git://pkgs.fedoraproject.org/openstack-nova.git
  $> cd openstack-nova
  $> cd openstack-nova
  $> git checkout f16
  $> git checkout f17
  $> fedpkg prep
  $> fedpkg prep
  $> cd nova-2011.3/smoketests
  $> cd nova-2012.1/smoketests
  $> python ./run_tests.py
  $> python ./run_tests.py


Line 27: Line 39:


[[Category:OpenStack Test Cases]]
[[Category:OpenStack Test Cases]]
[[Category:Cloud SIG]]

Latest revision as of 06:11, 25 April 2012

Description

Nova comes with a selection of fairly basic smoke tests which you can run against your installation. It can be useful to use these to sanity check your configuration.

Setup

You need these packages

$> sudo yum install python-nose python-paramiko fedpkg python-nova-adminclient

Make sure you have a block of floating IPs created, also as described above.

Also ensure that the nova objectstore service is running, as the S3 API is hit by the image tests:

$> sudo systemctl start openstack-nova-objectstore.service


Creating Certs (needed by euca-bundle-image in the ImageTests )

$> cd ~
$> nova x509-create-cert
$> export EC2_USER_ID=42
$> export EC2_CERT=~/cert.pem
$> export EC2_PRIVATE_KEY=~/pk.pem
$> nova x509-get-root-cert
$> export EUCALYPTUS_CERT=~/cacert.pem 

How to test

Then, run the tests from a fedpkg checkout:

$> git clone git://pkgs.fedoraproject.org/openstack-nova.git
$> cd openstack-nova
$> git checkout f17
$> fedpkg prep
$> cd nova-2012.1/smoketests
$> python ./run_tests.py

Expected Results

Ensure all tests pass