From 0c7af43a44184b211c2ee13ab0cf8e68a48d7495 Mon Sep 17 00:00:00 2001 From: Owen Synge Date: Tue, 15 Nov 2016 15:59:05 +0100 Subject: [PATCH] src.ceph-create-keys: Add connection timeouts. ceph commands will hang indefinitely if called without a parameter: --connect-timeout Signed-off-by: Owen Synge --- src/ceph-create-keys | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ceph-create-keys b/src/ceph-create-keys index d1dce4209b46..c7846f85d504 100755 --- a/src/ceph-create-keys +++ b/src/ceph-create-keys @@ -103,6 +103,7 @@ def get_key(cluster, mon_id): args_prefix = [ "ceph", + '--connect-timeout=20', '--cluster={cluster}'.format(cluster=cluster), '--name=mon.', '--keyring=/var/lib/ceph/mon/{cluster}-{mon_id}/keyring'.format( @@ -175,6 +176,7 @@ def bootstrap_key(cluster, type_): args = [ 'ceph', + '--connect-timeout=20', '--cluster={cluster}'.format(cluster=cluster), 'auth', 'get-or-create', -- 2.47.3