]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: try to avoid pull when getting container image info 50513/head
authorMykola Golub <mykola.golub@clyso.com>
Tue, 28 Feb 2023 17:27:39 +0000 (19:27 +0200)
committerAdam King <adking@redhat.com>
Mon, 13 Mar 2023 22:07:41 +0000 (18:07 -0400)
commitc4b4f739b0ff3fdb70e7aa4ee50aebd655af6881
tree88694a615e912c90e304a5f4d9147951facc1bd7
parent93742f69d49854297bdac8ef3827827cf5627a3b
mgr/cephadm: try to avoid pull when getting container image info

only if use_repo_digest is not set.

The commit ac88200 introduced this possibility to skip pulling, but
doing this unconditionally broke a use case when one was able to have
a ceph image on a floating tag, and was able to upgrade to a new image
pushed to that tag. As using a floating tag is possible only when
use_repo_digest is enabled (the default), now skipping the pull
if use_repo_digest is disabled will not break it anymore.

Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
(cherry picked from commit 4d049880a0effa78b69179694430d8a274829342)

Conflicts:
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/serve.py