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
jewel: librbd: restore journal access when force disabling mirroring #11916
Conversation
@dillaman I tested this using this test: Note, the test uses workarounds for the following issues found:
I am planning to report these issues and work on the fix. |
@trociny For (1), that is the correct behavior I would think -- we don't want to allow users to delete non-primary images easily. For (2), that does seem like an issue that the demote step didn't release the exclusive lock (which would close the journal). |
@trociny setting DNM while it is being discussed. It would be great if you could shortly explain in the commit message why this back has to be a unique snowflake (as Jason puts it ;-). |
If mirroring is force disabled on a demoted image, the journal was being left in an inconsistent ownership state. This is a direct commit to jewel as the fix in the master was against the newly added async version of mirror disable, which is not going to be merged to jewel. Fixes: http://tracker.ceph.com/issues/17767 Signed-off-by: Mykola Golub <mgolub@mirantis.com>
c22d434
to
6b8361f
Compare
@dachary The commit message has been updated. As for DNM status, actually the discussion we had with Jason was about some other (not related) issues I had observed testing this, and it turned out that one of them was an expected behavior and another one was triggered only in master. Still, I'd like to see Jason's approve before the merge. And it needs teuthology run. @dachary Are you going to run teuthology for backport PRs soon? If you are, could you please test this too? If you are not, I can run the tests myself. |
@trociny a run finished yesterday and since this is the only PR that was not included in it, it's likely the next run will be in one or two weeks. Feel free to run the relevant jobs earlier if you'd like. |
jenkins test this please (general jenkins failure) |
lgtm |
If mirroring is force disabled on a demoted image, the journal was
being left in an inconsistent ownership state.
Fixes: http://tracker.ceph.com/issues/17767
Signed-off-by: Mykola Golub mgolub@mirantis.com