New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DNM] jewel: mon: force_create_pg could leave pg stuck in creating state #13789
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shinobu-x
force-pushed
the
wip-18298-jewel
branch
from
March 3, 2017 21:57
0c5ba4f
to
b019716
Compare
shinobu-x
changed the title
jewel: mon: force_create_pg could leave pg stuck in creating state
DNM: jewel: mon: force_create_pg could leave pg stuck in creating state
Mar 3, 2017
shinobu-x
force-pushed
the
wip-18298-jewel
branch
2 times, most recently
from
March 4, 2017 04:43
28b405d
to
25dba7e
Compare
jenkins test this please |
shinobu-x
force-pushed
the
wip-18298-jewel
branch
from
March 4, 2017 21:11
672157b
to
20cb825
Compare
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
shinobu-x
force-pushed
the
wip-18298-jewel
branch
4 times, most recently
from
March 5, 2017 00:10
09c4e65
to
8d8e527
Compare
We'll assure pg_map.last_osdmap_epoch is smaller than osdmap's epoch at the function entry, so we are doomed to update pending_inc.osdmap_epoch, which means the "propose" variables will be always set to true. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit ea1cb9f)
shinobu-x
force-pushed
the
wip-18298-jewel
branch
from
March 5, 2017 18:56
bccabdd
to
f6f1a95
Compare
"Count trailing zero" and "count leading zero". Signed-off-by: Sage Weil <sage@redhat.com> (cherry picked from commit 04a3ce6)
shinobu-x
force-pushed
the
wip-18298-jewel
branch
5 times, most recently
from
March 6, 2017 00:07
fcc2c2a
to
50cfdaf
Compare
…etty'. Fixes: http://tracker.ceph.com/issues/17703 Signed-off-by: huangjun <hjwsm1989@gmail.com> (cherry picked from commit bf2b50e)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit 2898b7b)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit 732f2da) Conflicts: src/mon/PGMap.cc
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit 77db9d8) Conflicts: src/mon/PGMap.cc
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit fc33cf4)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit fbb19fc) Conflicts: src/mon/PGMonitor.cc
In the end of the apply_incremental function, no matter what happens the min_last_epoch_clean must be 0. Signed-off-by:song baisen <song.baisen@zte.com.cn> (cherry picked from commit 7b03828)
The prettybyte_t considers the input as bytes, so the pre-cast is needed here. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit f658c8d)
which is simpler and better for alignment. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit c3c62e8)
So the whole output looks gorgeous. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> (cherry picked from commit bf9f5c1) Conflicts: src/mon/PGMap.cc
shinobu-x
force-pushed
the
wip-18298-jewel
branch
from
March 7, 2017 09:44
626e059
to
e912c1c
Compare
Signed-off-by: John Spray <john.spray@redhat.com> (cherry picked from commit ab24038)
retest this please |
...so that ceph-mgr can use it too. Signed-off-by: John Spray <john.spray@redhat.com> (cherry picked from commit 519a01d) Conflicts: src/mon/PGMap.cc src/mon/PGMonitor.cc
shinobu-x
force-pushed
the
wip-18298-jewel
branch
from
March 7, 2017 22:46
9562853
to
318a9f3
Compare
retest this please |
...and remove the copypasta from mgr. mgr still doesn't do all the same logic (it doesn't have osdmap history handy) but it is now much easier to see which bits are used one place vs. the other. Signed-off-by: John Spray <john.spray@redhat.com> (cherry picked from commit afa7078) Conflicts: src/mgr/ClusterState.cc src/mon/PGMap.h src/mon/PGMonitor.cc src/osd/OSDMap.h
shinobu-x
force-pushed
the
wip-18298-jewel
branch
2 times, most recently
from
March 8, 2017 04:52
6cbb460
to
f3d18ac
Compare
shinobu-x
force-pushed
the
wip-18298-jewel
branch
3 times, most recently
from
March 9, 2017 07:41
e2ccb01
to
f3d18ac
Compare
This used to be the friend relationship to PGMonitor. It was never really needed anyway, it was only being used to skip the getter on `pools` Signed-off-by: John Spray <john.spray@redhat.com> (cherry picked from commit 78b6eeb) Conflicts: src/osd/OSDMap.h
shinobu-x
force-pushed
the
wip-18298-jewel
branch
from
March 9, 2017 20:14
f3d18ac
to
b2d27f0
Compare
We weren't carefully registering the creating PG. In particular, the current osd mappings (acting, up, etc.) weren't getting filled in, which meant the PG wasn't (necessarily) mapped to an OSD until the OSDMap updated and we recalculated mappings. Fix by sending us through the common code path so that all fields get updated properly. Fixes: http://tracker.ceph.com/issues/18298 Signed-off-by: Sage Weil <sage@redhat.com> (cherry picked from commit 9a41a0b) Conflicts: src/mon/PGMonitor.cc
shinobu-x
changed the title
DNM: jewel: mon: force_create_pg could leave pg stuck in creating state
jewel: mon: force_create_pg could leave pg stuck in creating state
Mar 9, 2017
retest this please |
smithfarm
changed the title
jewel: mon: force_create_pg could leave pg stuck in creating state
[DNM] jewel: mon: force_create_pg could leave pg stuck in creating state
Apr 13, 2017
@smithfarm I agree, this is backporting too much. We really just want the minimal way to fix this issue, even if it's not a clean cherry-pick and needs some extra editing for jewel. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://tracker.ceph.com/issues/19182