]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/tasks/netsplit.py
import quincy beta 17.1.0
[ceph.git] / ceph / qa / tasks / netsplit.py
index b6614dc5061b4a1af8ed87d43321d07788c699dd..0a9484a89a5c08b6d529460eeac745646c31ff2b 100644 (file)
@@ -35,8 +35,8 @@ def disconnect(ctx, config):
     (ip1, _) = get_ip_and_ports(ctx, config[0])
     (ip2, _) = get_ip_and_ports(ctx, config[1])
 
-    (host1,) = ctx.cluster.only(config[0]).remotes.iterkeys()
-    (host2,) = ctx.cluster.only(config[1]).remotes.iterkeys()
+    (host1,) = ctx.cluster.only(config[0]).remotes.keys()
+    (host2,) = ctx.cluster.only(config[1]).remotes.keys()
     assert host1 is not None
     assert host2 is not None
 
@@ -58,8 +58,8 @@ def reconnect(ctx, config):
     (ip1, _) = get_ip_and_ports(ctx, config[0])
     (ip2, _) = get_ip_and_ports(ctx, config[1])
 
-    (host1,) = ctx.cluster.only(config[0]).remotes.iterkeys()
-    (host2,) = ctx.cluster.only(config[1]).remotes.iterkeys()
+    (host1,) = ctx.cluster.only(config[0]).remotes.keys()
+    (host2,) = ctx.cluster.only(config[1]).remotes.keys()
     assert host1 is not None
     assert host2 is not None