]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mg/progress: Disregard unreported pgs 41872/head
authorKamoltat <ksirivad@redhat.com>
Thu, 13 May 2021 17:38:10 +0000 (17:38 +0000)
committerKamoltat <ksirivad@redhat.com>
Tue, 15 Jun 2021 18:45:20 +0000 (18:45 +0000)
commitea0a70c92a53bebf0c74e75e6a30c017bc5213c0
tree49cc3405d8c5c9a9a833cf57660fa91e7f979f13
parent35be045edfba00bec8492fe76abf8c384f2ebbac
pybind/mg/progress: Disregard unreported pgs

The global recovery event progress calculations only
takes into account pgs with `reported_epoch < start_epoch_of_event`
but sometimes the pgs doesn't get move before or after the creation
of the global recovery event, therefore this might result in a bug
where the global event gets stuck forever unless there is another
event that specifically makes the pgs that get stuck moves and updates
its `reported_epoch`.

Therefore, we decided to disregard pgs that are in active+clean state
but has `reported_epoch < start_epoch_of_event`.

Fixes: https://tracker.ceph.com/issues/49988
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 4b00f1c2bd5b15bcf7e5d143eebb2168c007b602)
qa/tasks/mgr/test_progress.py
src/pybind/mgr/progress/module.py