Ask Your Question
1

tempest all object storage test failing RestClientException

asked 2014-10-08 10:47:36 -0500

Bindas gravatar image

updated 2014-10-10 05:09:56 -0500

smaffulli gravatar image

hello

I am having a issue with running tempest on object storage. it works fine for other openstack components expect for object storage. below is the detials for my tempest.conf for object storage.

[object-storage]
catalog_type = object-store
region = xxxx
container_sync_timeout = 120
container_sync_interval = 120
accounts_quotas_available = True
container_quotas_available = True
operator_role = admin

below is the output from tempest run. i have change the endpoint url so i dont show my public url.

ks@M400005Tempest-API-Testing:~/tempest_old/tempest/Tempest_Automated_Test$ nosetests -v /home/ks/tempest_old/tempest/api/object_storage/test_object_expiry.pyc
ERROR

======================================================================
ERROR: test suite for <class 'tempest.api.object_storage.test_object_expiry.ObjectExpiryTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/ks/tempest_old/tempest/api/object_storage/test_object_expiry.py", line 33, in setUpClass
    cls.container_client.create_container(cls.container_name)
  File "/home/ks/tempest_old/tempest/services/object_storage/container_client.py", line 47, in create_container
    resp, body = self.put(url, body=None, headers=headers)
  File "/home/ks/tempest_old/tempest/common/rest_client.py", line 314, in put
    return self.request('PUT', url, headers, body)
  File "/home/ks/tempest_old/tempest/common/rest_client.py", line 436, in request
    resp, resp_body)
  File "/home/ks/tempest_old/tempest/common/rest_client.py", line 527, in _error_checker
    raise exceptions.RestClientException(str(resp.status))
RestClientException: An unknown exception occurred
Details: An unknown exception occurred
Details: 411
-------------------- >> begin captured stdout << ---------------------
self.image.client
config:<tempest.config.TempestConfig instance at 0x2e75a70>, user:ksadmin, password:AAPcloud123, auth_url:https://api.aaptest.cci.blah.com:5000/v2.0/, tenant_name:admin, auth_version:v1.0, service:image, base_url:None, region:{'compute': 'aaptest-region1', 'network': 'aaptest-region1', 'image': 'aaptest-region1', 'volume': 'aaptest-region1', 'orchestration': 'aaptest-region1', 'object-store': 'aaptest-region1', 'identity': 'aaptest-region1'}, endpoint_url:publicURL, build_interval:10, build_timeout:600
token:None...,
headers:{'Content-Type': 'application/json', 'Accept': 'application/json'}...
self.image.client_v2
config:<tempest.config.TempestConfig instance at 0x2e75a70>, user:ksadmin, password:AAPcloud123, auth_url:https://api.aaptest.cci.blah.com:5000/v2.0/, tenant_name:admin, auth_version:v1.0, service:image, base_url:None, region:{'compute': 'aaptest-region1', 'network': 'aaptest-region1', 'image': 'aaptest-region1', 'volume': 'aaptest-region1', 'orchestration': 'aaptest-region1', 'object-store': 'aaptest-region1', 'identity': 'aaptest-region1'}, endpoint_url:publicURL, build_interval:10, build_timeout:600
token:None...,
headers:{'Content-Type': 'application/json', 'Accept': 'application/json'}...
self.image.client
config:<tempest.config.TempestConfig instance at 0x2e75a70>, user:tempest_demouser_4, password:secret, auth_url:https://api.aaptest.cci.blah.com:5000/v2.0/, tenant_name:tempest_test2, auth_version:v1.0, service:image, base_url:None, region:{'compute': 'aaptest-region1', 'network': 'aaptest-region1', 'image': 'aaptest-region1', 'volume': 'aaptest-region1', 'orchestration': 'aaptest-region1', 'object-store': 'aaptest-region1', 'identity': 'aaptest-region1'}, endpoint_url:publicURL, build_interval:10, build_timeout:600
token:None...,
headers:{'Content-Type': 'application/json', 'Accept': 'application/json'}...
self.image.client_v2
config:<tempest.config.TempestConfig instance at 0x2e75a70>, user:tempest_demouser_4, password:secret, auth_url:https://api.aaptest.cci.blah.com:5000/v2.0/, tenant_name:tempest_test2, auth_version:v1.0, service:image, base_url:None, region:{'compute': 'aaptest-region1', 'network': 'aaptest-region1', 'image': 'aaptest-region1', 'volume': 'aaptest-region1', 'orchestration ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-11-26 10:02:26 -0500

updated 2014-11-26 10:02:37 -0500

Why are you running nosetests on .pyc extension?

I suggest u remove content in test_object_expiry.pyc and then run ( it removes cached test files )

run

nosetests -v /home/ks/tempest_old/tempest/api/bject_storage/test_object_expiry.py

Suggestion: next time when you post logs, please remove env values and post :-) Because i can guess them out easily :P

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-08 10:47:36 -0500

Seen: 543 times

Last updated: Nov 26 '14