]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: upgrade: pull image after upgrade start, and for each host
authorSage Weil <sage@redhat.com>
Sat, 25 Jan 2020 22:09:36 +0000 (16:09 -0600)
committerSage Weil <sage@redhat.com>
Mon, 27 Jan 2020 17:30:32 +0000 (11:30 -0600)
commitfedcfc0a2d246a153f85f4d96e4f58a80674e82a
tree6e138badc243e723826a82cc33a5817caf72eec6
parentff41f5f69d9e0da19b09ba8091ee10d40c78f132
mgr/cephadm: upgrade: pull image after upgrade start, and for each host

Make 'upgrade start' return quickly, without first pulling the image.

Pull the image once to establish the image_id.

For each host, before updating the container, ensure the local image is
up to date, and if not, pull.

If a pull returns a different image_id, restart upgrade process.  (This
could live-lock if two hosts have different container registries that
return different image ids for the same image name. :/)

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py