Project

General

Profile

Actions

Bug #7510

closed

Value error in ceph.py

Added by Anonymous about 10 years ago. Updated about 10 years ago.

Status:
Resolved
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

  File "/home/teuthworker/teuthology-master/teuthology/contextutil.py", line 25, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/teuthworker/teuthology-master/teuthology/task/ceph.py", line 566, in cluster
    (mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys()
ValueError: too many values to unpack

I am pretty sure that the problem with the statement:

(mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys()

is caused by the fact that there is more than one key in the list returned from keys(). I suspect that what we want here is:

(mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys().iteritems()

There may also be a problem when iteritems() returns null so we probably need another check here too.

The x to firefly upgrade tests have exposed this problem. I will look through the logs for more/other instances.

Actions

Also available in: Atom PDF