The self._health_slot value needs to be updated too if the current key
is removed.
Fixes: https://tracker.ceph.com/issues/43886
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
04f25b26c5aea5b4cf5cb94e939d6fba74228b27)
for key in self._health_filter(lambda ts: ts <= cutoff):
self.log.info("Removing old health slot key {}".format(key))
self.set_store(key, None)
+ if not hours:
+ self._health_slot = health_util.HealthHistorySlot()
def _health_report(self, hours):
"""