2014-06-10 12:05:06 |
Amit Prakash Pandey |
description |
In havana it was possible to do this though some tests that require admin are not skipped. On master you can't even do 'testr list-tests' without correct admin creds. This is because the OfficialClientManager tries to create network and object clients with admin credentials. I'm not sure of the best way to fix this. Here is the backtrace, generated from nose because testr gives you no information on import failures:
nosetests -v tempest/scenario/test_server_basic_ops.py
Failure: Unauthorized (Could not find project, admi. (HTTP 401)) ... ERROR
======================================================================
ERROR: Failure: Unauthorized (Could not find project, admi. (HTTP 401))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/opt/stack/tempest/tempest/scenario/test_server_basic_ops.py", line 32, in <module>
class TestServerBasicOps(manager.OfficialClientTest):
File "/opt/stack/tempest/tempest/scenario/test_server_basic_ops.py", line 46, in TestServerBasicOps
scenario_utils = test_utils.InputScenarioUtils()
File "/opt/stack/tempest/tempest/common/utils/misc.py", line 23, in getinstance
instances[cls] = cls()
File "/opt/stack/tempest/tempest/common/utils/test_utils.py", line 100, in __init__
CONF.identity.tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 482, in __init__
tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 542, in _get_object_storage_client
CONF.identity.admin_tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 607, in _get_identity_client
insecure=dscv)
File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 144, in __init__
self.authenticate()
File "/opt/stack/python-keystoneclient/keystoneclient/httpclient.py", line 383, in authenticate |
In havana it was possible to do this though some tests that require admin are not skipped. On master you can't even do 'testr list-tests' without correct admin creds. This is because the OfficialClientManager tries to create network and object clients with admin credentials. I'm not sure of the best way to fix this. Here is the backtrace, generated from nose because testr gives you no information on import failures:
nosetests -v tempest/scenario/test_server_basic_ops.py
Failure: Unauthorized (Could not find project, admi. (HTTP 401)) ... ERROR
======================================================================
ERROR: Failure: Unauthorized (Could not find project, admi. (HTTP 401))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/opt/stack/tempest/tempest/scenario/test_server_basic_ops.py", line 32, in <module>
class TestServerBasicOps(manager.OfficialClientTest):
File "/opt/stack/tempest/tempest/scenario/test_server_basic_ops.py", line 46, in TestServerBasicOps
scenario_utils = test_utils.InputScenarioUtils()
File "/opt/stack/tempest/tempest/common/utils/misc.py", line 23, in getinstance
instances[cls] = cls()
File "/opt/stack/tempest/tempest/common/utils/test_utils.py", line 100, in __init__
CONF.identity.tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 482, in __init__
tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 542, in _get_object_storage_client
CONF.identity.admin_tenant_name)
File "/opt/stack/tempest/tempest/clients.py", line 607, in _get_identity_client
insecure=dscv)
File "/opt/stack/python-keystoneclient/keystoneclient/v2_0/client.py", line 144, in __init__
self.authenticate()
File "/opt/stack/python-keystoneclient/keystoneclient/httpclient.py", line 383, in authenticate |
|