Custom Search

Monday, February 24, 2014

How to Test OpenStack Deployment With Tempest - API Tests - Volume - Network - Object Storage

How to Manually Install OpenStack Tempest
============================
http://fosshelp.blogspot.com/2014/02/how-to-manually-install-openstack.html 


Volume API Tests
############


1)
Minimum Config

Comment all other config under the "[identity]" section and use default value for that.
#sudo vim /etc/tempest/tempest.conf
[identity]
uri=http://127.0.0.1:5000/v2.0/
password=openstack
admin_password=openstack


2)
#nosetests -vx tempest.api.volume.test_volumes_list

3)
  File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1648, in __getattr__
    raise NoSuchOptError(name)
NoSuchOptError: no such option: IMAGE_ID


=============Solution/Fix================

#sudo vim /etc/tempest/tempest.conf
[compute]
image_ref=09e3a9eb-c786-4687-a0e8-0c44b22f5539


4)
#nosetests -vx tempest.api.volume.test_volumes_list
OR
#testr run --parallel tempest.api.volume.test_volumes_list
OR
#testr run tempest.api.volume.test_volumes_list

5)

  File "/home/saju/tempest_test/tempest/tempest/common/rest_client.py", line 192, in keystone_auth
    raise exceptions.EndpointNotFound(service)
EndpointNotFound: Endpoint not found
Details: Volume

=============Solution/Fix================

#sudo vim /etc/tempest/tempest.conf
[volume]
catalog_type=volume




Network API Tests
#############


1)
Minimum Config

Comment all other config under the "[identity]" section and use default value for that.
#sudo vim /etc/tempest/tempest.conf
[identity]
uri=http://127.0.0.1:5000/v2.0/
password=openstack
admin_password=openstack


2)
#nosetests -vx tempest.api.network.test_floating_ips

3)
SKIP: Neutron support is required
SKIP: Neutron support is required

----------------------------------------------------------------------
Ran 0 tests in 0.731s

OK (SKIP=2)

=============Solution/Fix================


Object Storage API Tests
################


1)
Minimum Config

Comment all other config under the "[identity]" section and use default value for that.
#sudo vim /etc/tempest/tempest.conf
[identity]
uri=http://127.0.0.1:5000/v2.0/
password=openstack
admin_password=openstack


2)
#nosetests -vx tempest.api.object_storage.test_container_services:ContainerTest.test_create_container
3)

  File "/home/saju/tempest_test/tempest/tempest/common/rest_client.py", line 192, in keystone_auth
    raise exceptions.EndpointNotFound(service)
EndpointNotFound: Endpoint not found
Details: object-store

=========
Note:

-vxl 
x ---> Stop running tests after the first error or failure
l ---> Run test in Debug mode: So we can see better error message

1 comment:

  1. Test of OpenStack Deployment With Tempest is beautifully explained. Thanks for sharing
    Openstack deployment tools

    ReplyDelete