From 785a272babca6b0bd2c4e549d7f17f55b92a2dad Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 8 Jul 2014 12:44:40 +0100 Subject: [PATCH] task: fix admin_socket for non-int ids This was working for OSDs and for my config where MDS happened to have numeric ID, but in general service IDs are strings, not ints. Signed-off-by: John Spray --- teuthology/task/ceph_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/ceph_manager.py b/teuthology/task/ceph_manager.py index 3ed9c251ff2..8d638ff675d 100644 --- a/teuthology/task/ceph_manager.py +++ b/teuthology/task/ceph_manager.py @@ -532,7 +532,7 @@ class CephManager: remote = None for _remote, roles_for_host in self.ctx.cluster.remotes.iteritems(): for id_ in teuthology.roles_of_type(roles_for_host, service_type): - if int(id_) == int(service_id): + if id_ == str(service_id): remote = _remote assert remote is not None args = [