Actions
Bug #10651
closedstale pycs causing issues
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
We saw this failure after merging new code to master on this run and others: http://qa-proxy.ceph.com/teuthology/teuthology-2015-01-25_23:00:02-rbd-next-distro-basic-multi/722486/teuthology.log
Traceback (most recent call last): File "/home/teuthworker/src/teuthology_master/teuthology/run_tasks.py", line 53, in run_tasks manager = run_one_task(taskname, ctx=ctx, config=config) File "/home/teuthworker/src/teuthology_master/teuthology/run_tasks.py", line 35, in run_one_task task = import_task(submod) File "/home/teuthworker/src/teuthology_master/teuthology/run_tasks.py", line 15, in import_task 0) File "/home/teuthworker/src/teuthology_master/teuthology/task/kernel.py", line 16, in <module> from ..exceptions import UnsupportedPackageTypeError, ConfigError ImportError: cannot import name ConfigError
This is curious because the same commit that introduces ConfigError is the one that uses it, https://github.com/ceph/teuthology/commit/ec81c6bdd11caf7b8e6781e3bd547b35f75ce597
It seems as though a relative import does not create a new pyc file. A new pyc for kernel.py and a stale one for exceptions.py is the only explanation that makes sense for this bug.
We have a function already in repo_utils.py to remove pycs on a teuthology checkout, we need to reenable that.
Actions