]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: try to avoid pull when getting container image info 50170/head
authorMykola Golub <mykola.golub@clyso.com>
Tue, 28 Feb 2023 17:27:39 +0000 (19:27 +0200)
committerMykola Golub <mykola.golub@clyso.com>
Tue, 7 Mar 2023 19:40:20 +0000 (21:40 +0200)
commit9bb96319543201390b17c82e50dfc9872119fc29
tree6eec3ec8d615c495b3116a0664239aff2edf1290
parent1e84a3f0e6c38fb7fb3ee89a4266c780bf70c014
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)
src/pybind/mgr/cephadm/serve.py