Getting ImportError: No module named functionaltests.common
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Undecided
|
Bhavna Saini |
Bug Description
when i running functional test cases getting below error
(tempest)
running=python -m subunit.run discover ./api
=======
FAIL: unittest2.
tags: worker-0
-------
Traceback (most recent call last):
ImportError: Failed to import test module: v2.test_recordset
Traceback (most recent call last):
File "/root/
module = self._get_
File "/root/
__import_
File "/root/
from functionaltests
ImportError: No module named functionaltests
below are the envronment details that i am using
Designate stable/kilo
Tempest 10.0.0
Tempest-lib 1.0.0
Seems like there is a version related issue not sure which one will supoort for designate kilo.
Please fix it. Thanks.
information type: | Private Security → Public |
Changed in designate: | |
assignee: | nobody → Bhavna Saini (imbhavnasaini) |
Changed in designate: | |
status: | New → Invalid |
Changed in designate: | |
status: | Fix Committed → Fix Released |
After i set python environment variable (export PYTHONPATH= /root/designate /) getting below error
2016-03-11 03:06:46.960 30037 INFO tempest [-] Using tempest config file /root/designate /functionaltest s/tempest. conf ntials, which is not a valid Credentials object type. python2. 7/runpy. py", line 162, in _run_module_as_main python2. 7/runpy. py", line 72, in _run_code tempest/ lib/python2. 7/site- packages/ subunit/ run.py" , line 149, in <module> tempest/ lib/python2. 7/site- packages/ subunit/ run.py" , line 145, in main tempest/ local/lib/ python2. 7/site- packages/ testtools/ run.py" , line 171, in __init__ argv) tempest/ local/lib/ python2. 7/site- packages/ unittest2/ main.py" , line 113, in parseArgs discovery( argv[2: ]) tempest/ local/lib/ python2. 7/site- packages/ testtools/ run.py" , line 211, in _do_discovery do_discovery( argv, Loader=Loader) tempest/ local/lib/ python2. 7/site- packages/ unittest2/ main.py" , line 223, in _do_discovery discover( self.start, self.pattern, self.top) tempest/ local/lib/ python2. 7/site- packages/ unittest2/ loader. py", line 367, in discover _find_tests( start_dir, pattern)) tempest/ local/lib/ python2. 7/site- packages/ unittest2/ loader. py", line 433, in _find_tests tempest/ local/lib/ python2. 7/site- packages/ unittest2/ loader. py", line 424, in _find_tests tempest/ local/lib/ python2. 7/site- packages/ unittest2/ loader. py", line 480, in _find_test_path
2016-03-11 03:06:46.995 30037 WARNING oslo_config.cfg [-] Option "lock_path" from group "DEFAULT" is deprecated. Use option "lock_path" from group "oslo_concurrency".
2016-03-11 03:06:46.995 30037 CRITICAL tempest [-] TypeError: credentials object is of type KeystoneV2Crede
2016-03-11 03:06:46.995 30037 ERROR tempest Traceback (most recent call last):
2016-03-11 03:06:46.995 30037 ERROR tempest File "/usr/lib/
2016-03-11 03:06:46.995 30037 ERROR tempest "__main__", fname, loader, pkg_name)
2016-03-11 03:06:46.995 30037 ERROR tempest File "/usr/lib/
2016-03-11 03:06:46.995 30037 ERROR tempest exec code in run_globals
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest main()
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest stdout=stdout, exit=False)
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest self.parseArgs(
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest self._do_
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest super(TestProgram, self)._
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest self.test = loader.
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest tests = list(self.
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest for test in path_tests:
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 30037 ERROR tempest full_path, pattern, namespace)
2016-03-11 03:06:46.995 30037 ERROR tempest File "/root/
2016-03-11 03:06:46.995 3...