]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: save host cache data after scheduling daemon action 49863/head
authorAdam King <adking@redhat.com>
Mon, 17 Oct 2022 18:56:34 +0000 (14:56 -0400)
committerAdam King <adking@redhat.com>
Wed, 25 Jan 2023 00:45:54 +0000 (19:45 -0500)
commit8042cb92ef3a702de77b9cb70cbe5849d034ef9c
tree98fbb678a7c12c4d5d8f01c92abc4d6150f1cfd8
parent22c2d68820ab09fd18a2b41e5a46b6e888789c40
mgr/cephadm: save host cache data after scheduling daemon action

Otherwise, the actions could be lost on a mgr failover
despite us including shceduled actions as part of the data
we store in the config-key entry for the host.

This also makes it impossible to redeploy the active mgr
with a new image in one command.

Fixes: https://tracker.ceph.com/issues/57884
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 2ff3ae71fac22f9267451442b9e43c49375e40e3)
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py