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: add additional space for encrypted volumes #4582

Draft
wants to merge 2 commits into
base: devel
Choose a base branch
from

Commits on Aug 13, 2024

  1. rbd: add additional space for encrypted volumes

    issue: when a block-mode pvc is created with encryption enabled
    there is some space reserved for the encryption metadata.
    Which doesn't allows users to write extact amount of data that
    they have requested for.
    
    solution: create pvc with extra space needed for the encryption
    metadata.
    
    The extra space is added during the CreateVolume and ExpandVolume
    operations. And while returning the response remove the extra space
    so the client/user gets the requested size reported.
    
    Signed-off-by: Praveen M <[email protected]>
    iPraveenParihar authored and nixpanic committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    a5af5a1 View commit details
    Browse the repository at this point in the history
  2. e2e: test to verify the encrypted image size

    This commit adds testcase for the create/resize/clone/restore operations
    for a RBD block PVC and validate imageSize and deviceSize.
    
    Signed-off-by: Praveen M <[email protected]>
    iPraveenParihar authored and nixpanic committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    8438381 View commit details
    Browse the repository at this point in the history