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
messages/MOSDMap: mark as enlighten OSDMap encoder #10843
Conversation
@tchaikov waiting for thumb up and needs-qa tag and then will retest |
lgtm |
quote from the commit message of 7009440,
and in the commit message in this PR
so we are basically dropping the support of old clients which do not understand these "really old" features bits? because the |
We're not changing any behavior for old clients. The problem is just that the "old clients" and "really old" features are the branch of MOSDMap that does a reencode, and they all used to be old.. but now we've added a new feature bit that requires a reencode and does do the 'enlightened encoder' assert. |
Back in 7009440 we require that anyone encoding an OSDMap pass in a special feature bit indicating that they are 'enlightened' and understand the rules around encoding OSDMaps (basically, only mons get to do it). We forgot to update MOSDMap, which may have to reencode an OSDMap without some features to talk to a really old client. We haven't noticed until now because the old set of features we had to do this for are really old. We are about to introduce new features (for addr2 encoding) that change that, and this fix is needed to prevent an assert when doing a reencode. Signed-off-by: Sage Weil <sage@redhat.com>
3e4ee6a
to
9c92d95
Compare
FYI This ^ was b/c incorrect reg exp match issue, so tests actually passed per @jdurgin |
The same tests passed when run by jenkins. I suspect an environment issue on your machine? |
tests on master passed on smithi049 tho ?! |
lgtm. |
Back in 7009440 we require that anyone
encoding an OSDMap pass in a special feature bit indicating that they are
'enlightened' and understand the rules around encoding OSDMaps (basically,
only mons get to do it). We forgot to update MOSDMap, which may have to
reencode an OSDMap without some features to talk to a really old client.
We haven't noticed until now because the old set of features we had to do
this for are really old.
We are about to introduce new features (for addr2 encoding) that change
that, and this fix is needed to prevent an assert when doing a reencode.
Signed-off-by: Sage Weil sage@redhat.com