summaryrefslogtreecommitdiffstats
path: root/qa/tasks/reg11184.py
diff options
context:
space:
mode:
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>2019-10-11 17:57:47 +0200
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>2019-10-11 18:54:29 +0200
commit5f95b532aa26249cecea4586166399a0bf10ad47 (patch)
tree0f9949d9265d750fce9ce5394959b22e5eac29f6 /qa/tasks/reg11184.py
parentMerge PR #30734 into master (diff)
downloadceph-5f95b532aa26249cecea4586166399a0bf10ad47.tar.xz
ceph-5f95b532aa26249cecea4586166399a0bf10ad47.zip
qa: get rid of iterkeys for py3 compatibility
Fixes: https://tracker.ceph.com/issues/42287 Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Diffstat (limited to 'qa/tasks/reg11184.py')
-rw-r--r--qa/tasks/reg11184.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/tasks/reg11184.py b/qa/tasks/reg11184.py
index f2486238449..7bb304608b0 100644
--- a/qa/tasks/reg11184.py
+++ b/qa/tasks/reg11184.py
@@ -76,7 +76,7 @@ def task(ctx, config):
log.info('writing initial objects')
first_mon = teuthology.get_first_mon(ctx, config)
- (mon,) = ctx.cluster.only(first_mon).remotes.iterkeys()
+ (mon,) = ctx.cluster.only(first_mon).remotes.keys()
# write 100 objects
for i in range(100):
rados(ctx, mon, ['-p', 'foo', 'put', 'existing_%d' % i, dummyfile])
@@ -164,7 +164,7 @@ def task(ctx, config):
# Export a pg
(exp_remote,) = ctx.\
- cluster.only('osd.{o}'.format(o=divergent)).remotes.iterkeys()
+ cluster.only('osd.{o}'.format(o=divergent)).remotes.keys()
FSPATH = manager.get_filepath()
JPATH = os.path.join(FSPATH, "journal")
prefix = ("sudo adjust-ulimits ceph-objectstore-tool "
@@ -235,7 +235,7 @@ def task(ctx, config):
assert exit_status is 0
(remote,) = ctx.\
- cluster.only('osd.{o}'.format(o=divergent)).remotes.iterkeys()
+ cluster.only('osd.{o}'.format(o=divergent)).remotes.keys()
cmd = 'rm {file}'.format(file=expfile)
remote.run(args=cmd, wait=True)
log.info("success")