-
Notifications
You must be signed in to change notification settings - Fork 547
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: recreate dummy image with new image features and 1MiB size #2694
Conversation
cc @BenamarMk |
40a2e6f
to
22d5b40
Compare
22d5b40
to
5fd59f2
Compare
5fd59f2
to
777d3ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BenamarMk take a look, things look fine otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me. I am very interested to see an issue (linked with all these workaround fixes) that tracks the Ceph fix, so that we can drop the dummy-image workaround after that. The fixes for this workaround are getting more complex and (still) untested in e2e.
updated TODO list to track the PR's for workaround on #2675 |
we added a workaround for rbd scheduling by creating a dummy image in ceph#2656. with the fix we are creating a dummy image of the size of the first actual rbd image which is sent in EnableVolumeReplication request if the actual rbd image size is 1TiB we are creating a dummy image of 1TiB which is not good. even though its a thin provisioned rbd images this is causing issue for the transfer of the snapshot during the mirroring operation. This commit recreates the rbd image with 1MiB size which is the smaller supported size in rbd. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
The dummy image will be created with 1Mib size. during the snapshot transfer operation the 1Mib will be transferred even if the dummy image doesnot contains any data. adding the new image features `fast-diff,layering,obj-map,exclusive-lock`on the dummy image will ensure that only the diff is transferred to the remote cluster. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
777d3ac
to
bcd70f0
Compare
we added a workaround for rbd scheduling by creating a dummy image in #2656. with the fix, we are creating a dummy image of the size of the first actual rbd image which is sent in EnableVolumeReplication request if the actual rbd image size is 1Tib we are creating a dummy image of 1TiB which is not good. even though it's a thin-provisioned rbd image this is causing issues for the transfer of the snapshot during the mirroring operation. The current changes include recreating the rbd image with 1Mib size which is the smaller supported size in rbd.
The dummy image will be created with a 1MiB size. during the snapshot transfer operation, the 1MiB will be transferred even if the dummy image does not contain any data. adding the new image features
fast-diff,layering,obj-map,exclusive-lock
on the dummy image will ensure that only the diff is transferred to the remote cluster.Signed-off-by: Madhu Rajanna madhupr007@gmail.com