]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: persist cached daemon state
authorSage Weil <sage@redhat.com>
Fri, 14 Feb 2020 18:07:13 +0000 (12:07 -0600)
committerSage Weil <sage@redhat.com>
Tue, 18 Feb 2020 21:50:00 +0000 (15:50 -0600)
commite7037db99f18dbc2aae2788c9c1b1481faa9358a
tree1a12e0d7bf1106250b237f68014573dd68b0d32f
parent66775ece9af2f4384f7ad00aa6be519e93d50b8f
mgr/cephadm: persist cached daemon state

- load cached state on startup
- persist state after a scrape only
- scrape everything after startup

Note that we modify our in-memory cache when we add or remove a service
and then immediately trigger a scrape, but we do not invalidate the
persisted state, since it's simpler (and presumably a good idea) to
simply re-scrape everything after a mgr restart.

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