]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: upgrade: fix handling when target container id changes 33487/head
authorSage Weil <sage@redhat.com>
Mon, 24 Feb 2020 15:28:42 +0000 (09:28 -0600)
committerSage Weil <sage@redhat.com>
Mon, 24 Feb 2020 15:47:25 +0000 (09:47 -0600)
commitd9f9a69ab2cb7197e309dbbe0947d0800703fb2c
tree5d793fa57c91d962257ab1229a913b99a01f83b9
parent5649d5571c14e6f739e5e6e75dcf28ea7c9fb6c1
mgr/cephadm: upgrade: fix handling when target container id changes

If the same target_name pulls a new hash partway through the upgrade
(e.g., because the tag was updated in the registry), we restart the
upgrade.

Fix the code so that we update target_id instead of (unused) image_id.

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