Skip to content
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

rbd-mirror: replicate image metadata settings #11168

Merged
merged 2 commits into from Sep 30, 2016
Merged

Conversation

trociny
Copy link
Contributor

@trociny trociny commented Sep 21, 2016

Fixes: http://tracker.ceph.com/issues/16212
Signed-off-by: Mykola Golub mgolub@mirantis.com

@trociny
Copy link
Contributor Author

trociny commented Sep 21, 2016

This needs #10980 to be merged first to avoid merge conflicts.

@trociny trociny changed the title rbd-mirror: replicate image metadata settings [DNM] rbd-mirror: replicate image metadata settings Sep 21, 2016
return r;
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: check for m_image_ctx.read_only?

op_event->on_op_finish_event = new C_RefreshIfRequired<I>(
m_image_ctx, new ExecuteOp<I, journal::MetadataRemoveEvent>(
m_image_ctx, event, on_op_complete));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: add "op_event->ignore_error_codes = {-ENOENT}" to ignore replay errors

@dillaman
Copy link

Minor: can you add new test cases to test_mock_Replay and test_Replay for the new events?

@trociny
Copy link
Contributor Author

trociny commented Sep 22, 2016

@dillaman Thanks for the comments. Updated.

@dillaman
Copy link

@trociny Still would like to see a journal/test_mock_Replay test case

Mykola Golub added 2 commits September 28, 2016 16:28
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Fixes: http://tracker.ceph.com/issues/16212
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
@trociny trociny changed the title [DNM] rbd-mirror: replicate image metadata settings rbd-mirror: replicate image metadata settings Sep 28, 2016
@trociny
Copy link
Contributor Author

trociny commented Sep 28, 2016

@dillaman Rebased after #10980 merge.

@dillaman dillaman self-assigned this Sep 28, 2016
@dillaman dillaman merged commit f3d3941 into ceph:master Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants