]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: add explicit pull at bootstrap start
authorSage Weil <sage@redhat.com>
Fri, 8 Nov 2019 03:43:37 +0000 (21:43 -0600)
committerSage Weil <sage@redhat.com>
Fri, 8 Nov 2019 03:43:37 +0000 (21:43 -0600)
This is less confusing for users since the pull can be slow and the
uid/gid check is a weird thing to hang on for a long time.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon

index 99d38b36aeacbf9895241dfaad36a7706d9c3c2b..15033700482a60588fa0df92afc30e63d65660e5 100755 (executable)
@@ -842,6 +842,9 @@ def command_bootstrap():
         if ret:
             raise RuntimeError('Failed to ping %s' % mon_ip)
 
+    logger.info('Pulling latest %s container...' % args.image)
+    call_throws([podman_path, 'pull', args.image])
+
     logger.info('Extracting ceph user uid/gid from container image...')
     (uid, gid) = extract_uid_gid()