Repository navigation
nautilus: mgr/progress: make it so progress bar does not get stuck forever - #37589
Conversation
5167e32 to
5de899b
Compare
neha-ojha
left a comment
There was a problem hiding this comment.
could you please use "git cherry-pick -x" to reference the original commits
Hi Neha, so I did use "git cherry-pick-x" for all the commits except the last commit 5de899b since that was changing some code to deal with merge conflicts |
|
@kamoltat Could you tell me which master PRs you are backporting here? If you used I guess this is your first backport... the Ceph project has so many backports, that if we allowed each backporter to prepare backporters in his/her own way, chaos would be the result. Over years of backporting, we have developed a set of practices (we call them "cherry-picking rules"). These rules are relatively simple, but they do need to be followed to avoid the chaos. Please take a look: Now, this particular backport appears to be cherry-picking commits from several PRs. Could you tell us the PR numbers? For example, I guess one of them must be #28368 |
|
@yuriw I can't access the trello board. Is there a way to invite me to the board? Thank you |
#28368 |
|
@kamoltat Thanks! I added that information to the PR description. |
|
@neha-ojha @kamoltat saw a failure related to progess module in teuthology tests, I suspect it might be something related, can you verify: |
|
@ideepika Yes you're right, will investigate that right away. Thank you! |
no worries, I think reruning this batch with teuthology-suite, to test your fix might help: |
|
@yuriw Seems like the extra cherry-pick commit fixed it, let me know if I need to run more tests |
|
jenkins test make check |
674658e to
b3b98f6
Compare
|
jenkins retest this please |
This looks good! thanks @kamoltat ! |
add an if statement to only allow PGs to only look at it's PG state when it's epoch is greater than or equal to the OSDMap's epoch. cherry picked from commit 21e1cab Signed-off-by: Kamoltat <[email protected]>
add a property in pg_update that gets the (current) OSDMap when the event is created, and compare PG epoch with OSDMap epoch. Also made some changes on the spacing of things. (cherry picked from commit f618e56) Signed-off-by: Kamoltat <[email protected]>
In the PgRecoveryEvent class created a property call self._start_epoch, basically the epoch of the current OSD. Then use that propery in pg_update to only allow the program to look at PG state only when PG epoch >= start_epoch. (cherry picked from commit d37e8a4) Signed-off-by: Kamoltat <[email protected]>
Basically keeps track of affected PGs similar to how funciton _osd_out works but instead of tracking up+acting set we only care about acting. Also made a minor change on the function pg_update: we consider pg to be complete when it is active and clean and nothing else. Removed the variable "unmoved" since If the pg wasn't moved, we shouldn't have an event for it in the first place. (cherry picked from commit dd2c3f6) Signed-off-by: Kamoltat <[email protected]>
Combine the functions _osd_in and _osd_out in to a single function call _osd_in_out, which has a parameter called marked (string) that will indicate if the event is when an osd is marked in or out. Consider only the 'acting' set of an osd for both when 'in' and 'out' event of the osd to calculate affected PGs (cherry picked from commit 2046c25) Signed-off-by: Kamoltat <[email protected]>
Added the check for osd_id to account for the acting set of both the old and new maps to cover both osd marked out and in respectively (cherry picked from commit 901a37f) Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
b3b98f6 to
d9b324e
Compare
|
@yuriw @neha-ojha this PR looks good to me, let me know if I need to run any more tests or do anything further |
neha-ojha
left a comment
There was a problem hiding this comment.
-
362cc3aaf29c3a016ca474beaaf81387b4c78f70 and d9b324e5235cf7a8873af92fb66bac7c22418d06 don't follow https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#commit-title
-
if you need to add any commits specific to nautilus, please add an explanation in the commit description
-
do any of these commits need to land in octopus? can you please share corresponding tracker issues
Swap the order of checking for complete event when OSD is marked in and creating a PG Recovery event so that the event doesn't cancel itself. Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]> (cherry picked from commit 93d4d9d) Conflicts: src/pybind/mgr/progress/module.py - change self._events.item() to list(self._events) - add self.get("pg_ready")
Update the test suite to reflect a feature change that has been merged to master in progress module where you create an event when an osd is marked in. Fixes: http://tracker.ceph.com/issues/40618 with success QA run in sepia: http://pulpito.ceph.com/kchai-2019-07-16_10:10:01-rados-master-distro-basic-mira/ Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]> (cherry picked from commit 5604ba4) Conflicts: qa/tasks/mgr/test_progress.py - change `ev` to `new_event`
d9b324e to
58f7f67
Compare
|
@neha-ojha done! and none of the commits needed to land on octopus since it already has all these commits in it. |
|
@kamoltat seeing: do we need 52fe9db as well? |
|
@ideepika you are right, good catch, thank you so much! |
|
It looks like 52fe9db might be needed in octopus as well? |
Fixes a failing test case regarding osd coming back after being marked out. The old test case wasn't accounting for a specific event, therefore this resulted in the failure. The fix basically accounts for a specific event of osd being marked in/out. Fixes: https://tracker.ceph.com/issues/48217 Signed-off-by: Kamoltat <[email protected]> (cherry picked from commit 52fe9db) Conflicts: qa/tasks/mgr/test_progress.py - trivial fix
@smithfarm Yes I think you are right |
|
@kamoltat can you take a look into this issue: https://tracker.ceph.com/issues/48824 |
Fixing an issue with mgr/progress module, where the progress bar gets stuck forever, by back porting the relevant commits from master PRs:
#28368
#28498
#28695
#29111
#38107
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1826224