Any tempest plugin import failure leads other plugin tests fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Invalid
|
Undecided
|
Unassigned | ||
Magnum |
Invalid
|
Critical
|
Unassigned | ||
neutron |
Fix Released
|
Undecided
|
Unassigned | ||
tempest |
Invalid
|
Undecided
|
Pragadeeswaran Sathyanarayanan |
Bug Description
There is failure for all projects runs tempest plugin tests. That was due to fwaas tempest plugin having import error.
When testr try to list all tests and it also list the loaded plugin tests, if there is any import error in any plugin, it will leads failure to other plugin also.
I think plugin should work in isolated way, mean if Tempest detect any error from any plugin, it should just log the error and ignore that plugin tests and run others. Tempest does while registering conf options or loading plugin.
But we should have same way for import error also.
error- http://
2016-03-10 03:42:34.018 | all-plugin runtests: commands[1] | bash tools/pretty_tox.sh --concurrency=4 congress_
2016-03-10 03:42:36.139 | running testr
2016-03-10 03:42:39.664 | /usr/local/
2016-03-10 03:42:39.664 | DeprecationWarning)
2016-03-10 03:42:39.916 | running=
2016-03-10 03:42:39.916 | OS_STDERR_
2016-03-10 03:42:39.916 | OS_TEST_
2016-03-10 03:42:39.916 | OS_TEST_
2016-03-10 03:42:39.917 | ${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_
2016-03-10 03:42:39.917 | --- imNon-zero exit code (2) from test listing.
2016-03-10 03:42:39.949 | perror: testr failed (3)o
2016-03-10 03:42:39.950 | rt errors ---
2016-03-10 03:42:39.983 | Failed to import test module: neutron_
2016-03-10 03:42:39.985 | Traceback (most recent call last):
2016-03-10 03:42:39.989 | File "/usr/local/
2016-03-10 03:42:39.989 | module = self._get_
2016-03-10 03:42:39.989 | File "/usr/local/
2016-03-10 03:42:39.989 | __import__(name)
2016-03-10 03:42:39.989 | File "/opt/stack/
2016-03-10 03:42:39.989 | from neutron_
2016-03-10 03:42:39.989 | File "/opt/stack/
2016-03-10 03:42:39.989 | from neutron_
2016-03-10 03:42:39.989 | File "/opt/stack/
2016-03-10 03:42:39.990 | from neutron_
2016-03-10 03:42:39.990 | File "/opt/stack/
2016-03-10 03:42:39.990 | from tempest.
2016-03-10 03:42:39.990 | ImportError: cannot import name base
2016-03-10 03:42:39.990 |
2016-03-10 03:42:39.990 | Failed to import test module: neutron_
2016-03-10 03:42:39.990 | Traceback (most recent call last):
2016-03-10 03:42:39.990 | File "/usr/local/
2016-03-10 03:42:39.990 | module = self._get_
2016-03-10 03:42:39.990 | File "/usr/local/
2016-03-10 03:42:39.990 | __import__(name)
2016-03-10 03:42:39.990 | File "/opt/stack/
2016-03-10 03:42:39.991 | from neutron_
2016-03-10 03:42:39.991 | File "/opt/stack/
2016-03-10 03:42:39.991 | from neutron_
2016-03-10 03:42:39.991 | File "/opt/stack/
2016-03-10 03:42:39.991 | from neutron_
2016-03-10 03:42:39.991 | File "/opt/stack/
2016-03-10 03:42:39.991 | from tempest.
2016-03-10 03:42:39.991 | ImportError: cannot import name base
2016-03-10 03:42:39.991 | The test run didn't actually run any tests
Changed in tempest: | |
assignee: | nobody → Ghanshyam Mann (ghanshyammann) |
Changed in magnum: | |
status: | New → Fix Committed |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Actual issue is with fwaas plugin tests and fixed in https:/ /review. openstack. org/#/c/ 290983/
after merging that, all tests should run fine.