Project

General

Profile

Actions

Bug #7351

closed

prevent NoneType Errors in dict comprehension

Added by Alfredo Deza about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Traceback (most recent call last):
  File "/home/teuthworker/teuthology-next/teuthology/run_tasks.py", line 33, in run_tasks
    manager.__enter__()
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/teuthworker/teuthology-next/teuthology/task/mds_thrash.py", line 280, in task
    statuses.items())
  File "/home/teuthworker/teuthology-next/teuthology/task/mds_thrash.py", line 277, in <lambda>
    ready = filter(lambda (_,s): s['state'] == 'up:active'
TypeError: 'NoneType' object has no attribute '__getitem__'
2014-02-05T07:10:30.085 ERROR:teuthology.run_tasks: Sentry event: http://sentry.ceph.com/inktank/teuthology/search?q=b40c20fe645a4c28b7133bdd2e69ee61
TypeError: 'NoneType' object has no attribute '__getitem__'
2014-02-05T07:10:30.085 DEBUG:teuthology.run_tasks:Unwinding manager <contextlib.GeneratorContextManager object at 0x2193310>
2014-02-05T07:10:30.085 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/teuthology-next/teuthology/contextutil.py", line 27, in nested
    yield vars
  File "/home/teuthworker/teuthology-next/teuthology/task/ceph.py", line 1360, in task
    yield
TypeError: 'NoneType' object has no attribute '__getitem__'
Actions #1

Updated by Alfredo Deza about 10 years ago

  • Status changed from New to Rejected

it looks like this was already fixed and rebased onto next aaf9b51

Actions

Also available in: Atom PDF