]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mg/progress: Disregard unreported pgs 40480/head
authorKamoltat <ksirivad@redhat.com>
Thu, 13 May 2021 17:38:10 +0000 (17:38 +0000)
committerKamoltat <ksirivad@redhat.com>
Wed, 9 Jun 2021 15:11:32 +0000 (15:11 +0000)
commit4b00f1c2bd5b15bcf7e5d143eebb2168c007b602
tree0a75b6c4165d6a5474f936188daa16feb83a7ad4
parent523fcb711f803212880d53f4c0c8d8cc82972b09
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>
qa/tasks/mgr/test_progress.py
src/pybind/mgr/progress/module.py