]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: increase is_available timeout 30s -> 60s
authorMichael Fritch <mfritch@suse.com>
Tue, 9 Jun 2020 20:35:46 +0000 (14:35 -0600)
committerMichael Fritch <mfritch@suse.com>
Tue, 9 Jun 2020 20:35:46 +0000 (14:35 -0600)
bootstrap fails because `ceph -s` might take longer
than 30 sec to return on resource limited hardware

Fixes: https://tracker.ceph.com/issues/45961
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index 7c0cb328ee270687a5e4fa68d95308cda8c70b7d..1a7adcc9359d28d27d0366f74a3764a38d52ed55 100755 (executable)
@@ -2509,7 +2509,7 @@ def command_bootstrap():
     # wait for the service to become available
     def is_mon_available():
         # type: () -> bool
-        timeout=args.timeout if args.timeout else 30 # seconds
+        timeout=args.timeout if args.timeout else 60 # seconds
         out, err, ret = call(c.run_cmd(),
                              desc=c.entrypoint,
                              timeout=timeout)
@@ -2568,7 +2568,7 @@ def command_bootstrap():
     logger.info('Waiting for mgr to start...')
     def is_mgr_available():
         # type: () -> bool
-        timeout=args.timeout if args.timeout else 30 # seconds
+        timeout=args.timeout if args.timeout else 60 # seconds
         try:
             out = cli(['status', '-f', 'json-pretty'], timeout=timeout)
             j = json.loads(out)