list-verifier-tests fails when barbican-tempest-plugin is added
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
New
|
Undecided
|
Unassigned |
Bug Description
If I try to get the test list by running "rally verify list-verifier-
It fails especially when I add barbican-
As far as I investigated, the command does not load the appropriate
"auth" config in tempest.conf.
To solve this problem, "verifier.
TEMPEST_CONFIG and TEMPEST_CONFIG_DIR.
Or, is this a bug on barbican-
To reproduce this error, run the following commands.
$ rally verify create-verifier --type tempest --name tempest-verifier --source https:/
$ rally verify add-verifier-ext --source https:/
$ rally verify list-verifier-tests
Error messages:
Failed to import test module: barbican_
Traceback (most recent call last):
File "/root/
module = self._get_
File "/root/
__import_
File "/root/
from barbican_
File "/root/
from barbican_
File "/root/
ADMIN_CREDS = common_
File "tempest/
identity_
File "tempest/
**params)
File "tempest/
http_
File "tempest/
super(
File "tempest/
raise exceptions.
InvalidCredentials: Invalid Credentials
Details: Credentials are: {'username': None, 'project_name': None, 'project_
Non-zero exit code (2) from test listing.
': CalledProcessError: Command '['testr', 'list-tests', '']' returned non-zero exit status 3
Command failed, please check log for more info
2017-10-13 09:22:54.761 13144 CRITICAL rally [-] Unhandled error: CalledProcessError: Command '['testr', 'list-tests', '']' returned non-zero exit status 3
2017-10-13 09:22:54.761 13144 ERROR rally Traceback (most recent call last):
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally sys.exit(main())
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally return cliutils.
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally ret = fn(*fn_args, **fn_kwargs)
2017-10-13 09:22:54.761 13144 ERROR rally File "<decorator-
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally return f(*args, **kwargs)
2017-10-13 09:22:54.761 13144 ERROR rally File "<decorator-
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally return f(*args, **kwargs)
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally pattern=pattern)
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally return verifier.
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally return super(TempestMa
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally debug_output=False)
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/local/
2017-10-13 09:22:54.761 13144 ERROR rally output = subprocess.
2017-10-13 09:22:54.761 13144 ERROR rally File "/usr/lib/
2017-10-13 09:22:54.761 13144 ERROR rally raise CalledProcessEr
2017-10-13 09:22:54.761 13144 ERROR rally CalledProcessError: Command '['testr', 'list-tests', '']' returned non-zero exit status 3
2017-10-13 09:22:54.761 13144 ERROR rally
I had those problem, because rally try to use /etc/tempest/ tempest. config( it doesn't exist) instead of created config by rally
my workaround: https:/ /github. com/sandriichen ko/rally_ tempest_ docker/ commit/ 9db41bf1fcdf849 955deabb1f52cb9 4e275fa671# diff-33d4e96608 fd2cc7b5413e4eb 3f48fce