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: recreate dummy image with new image features and 1MiB size #2694

Merged
merged 2 commits into from
Dec 7, 2021

Conversation

Madhu-1
Copy link
Collaborator

@Madhu-1 Madhu-1 commented Dec 7, 2021

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

@Madhu-1 Madhu-1 requested review from ShyamsundarR and a team December 7, 2021 06:01
@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Dec 7, 2021

cc @BenamarMk

@mergify mergify bot added the component/rbd Issues related to RBD label Dec 7, 2021
Copy link
Contributor

@ShyamsundarR ShyamsundarR left a 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.

Copy link
Member

@nixpanic nixpanic left a 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.

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Dec 7, 2021

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

@Madhu-1 Madhu-1 added the ci/retry/e2e Label to retry e2e retesting on approved PR's label Dec 7, 2021
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/retry/e2e Label to retry e2e retesting on approved PR's component/rbd Issues related to RBD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants