]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_manager: Add timeout to admin_socket/osd_admin_socket
authorDavid Zafman <dzafman@redhat.com>
Tue, 12 Apr 2016 16:27:33 +0000 (09:27 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 22 Nov 2016 02:33:19 +0000 (18:33 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 4ad3b866041a3a5391f46cd3d96297834b95956b)

tasks/ceph_manager.py

index 71722232f71131cfea07f1617fe4eacfc91ba109..366ab327dfbf02b34a2a874f60ea255869831ced 100644 (file)
@@ -889,8 +889,8 @@ class CephManager:
                 ]
             )
 
-    def osd_admin_socket(self, osd_id, command, check_status=True):
-        return self.admin_socket('osd', osd_id, command, check_status)
+    def osd_admin_socket(self, osd_id, command, check_status=True, timeout=0):
+        return self.admin_socket('osd', osd_id, command, check_status, timeout)
 
     def find_remote(self, service_type, service_id):
         """
@@ -911,7 +911,7 @@ class CephManager:
                                                           service_id))
 
     def admin_socket(self, service_type, service_id,
-                     command, check_status=True):
+                     command, check_status=True, timeout=0):
         """
         Remotely start up ceph specifying the admin socket
         :param command: a list of words to use as the command
@@ -924,6 +924,8 @@ class CephManager:
             'adjust-ulimits',
             'ceph-coverage',
             '{tdir}/archive/coverage'.format(tdir=testdir),
+            'timeout',
+            str(timeout),
             'ceph',
             '--admin-daemon',
             '/var/run/ceph/ceph-{type}.{id}.asok'.format(