]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm/upgrade: match against any repo_digest, not image_id
authorSage Weil <sage@newdream.net>
Wed, 27 Jan 2021 14:54:00 +0000 (08:54 -0600)
committerSage Weil <sage@newdream.net>
Mon, 1 Feb 2021 23:20:14 +0000 (17:20 -0600)
commitfe72946729dada7646863b17c06d90abd82d61ad
tree32ebdedb31542b4e5a72d3d42e47c84ec9df0f48
parente9333972c1b84ebdfe43c8f686d74d4c859eedf1
mgr/cephadm/upgrade: match against any repo_digest, not image_id

The image id can vary across hosts and (most notably) docker vs podman.
Instead, use the repo_digest as an image identifier.

Unfortunately, a single image may have multiple digests, even within the
same registry, so keep a list of the digests for the image we are
upgrading to, and ensure that each container has a digest that matches at
least one of them.

This allows upgrade to proceed in mixed docker+podman clusters.  However,
it does not yet address a cluster with mixed CPU architectures, because
the container image will have different digest(s) for each architecture
build.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/tests/test_upgrade.py
src/pybind/mgr/cephadm/upgrade.py