Otherwise the mgr cannot shutdown because it waits for the pg_autoscaler
thread forever.
Fixes: https://tracker.ceph.com/issues/42640
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
372b6350ba0c7b770df252261a169272ada0d465)
self._maybe_adjust()
self._shutdown.wait(timeout=int(self.sleep_interval))
+ def shutdown(self):
+ self.log.info('Stopping pg_autoscaler')
+ self._shutdown.set()
+
def get_subtree_resource_status(self, osdmap, crush):
"""
For each CRUSH subtree of interest (i.e. the roots under which