]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_manager: use get() for self.config powercycle checks
authorSage Weil <sage@inktank.com>
Sun, 3 Feb 2013 05:01:08 +0000 (21:01 -0800)
committerSage Weil <sage@inktank.com>
Sun, 3 Feb 2013 05:01:08 +0000 (21:01 -0800)
commitfe9fb49e27ca0e8f0cee2f8106536d5c69dcdbcb
treee340511d92b7e87d42359a9f5c41a7ae408221b9
parent9a9fe73ec32fd4c73ab392e570f2872d270eeef5
ceph_manager: use get() for self.config powercycle checks

I think this is what is going on...

Traceback (most recent call last):
  File "/var/lib/teuthworker/teuthology-master/teuthology/contextutil.py", line 27, in nested
    yield vars
  File "/var/lib/teuthworker/teuthology-master/teuthology/task/ceph.py", line 1158, in task
    yield
  File "/var/lib/teuthworker/teuthology-master/teuthology/run_tasks.py", line 25, in run_tasks
    manager = _run_one_task(taskname, ctx=ctx, config=config)
  File "/var/lib/teuthworker/teuthology-master/teuthology/run_tasks.py", line 14, in _run_one_task
    return fn(**kwargs)
  File "/var/lib/teuthworker/teuthology-master/teuthology/task/dump_stuck.py", line 93, in task
    manager.kill_osd(id_)
  File "/var/lib/teuthworker/teuthology-master/teuthology/task/ceph_manager.py", line 665, in kill_osd
    if 'powercycle' in self.config and self.config['powercycle']:
TypeError: argument of type 'NoneType' is not iterable
teuthology/task/ceph_manager.py