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

Fixes related to flatten operation in PVC restored from snapshot #4960

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

Commits on Nov 14, 2024

  1. rbd: remove checkFlatten() function

    CephCSI should not flatten image that can be mounted
    for use by the user.
    `checkFlatten()` was called in a recovery code flow
    of PVC restored from snapshot and was missed while
    refractoring in ceph#2900
    
    refer: ceph#2900
    
    Signed-off-by: Rakshith R <[email protected]>
    Rakshith-R committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    4ddbbd7 View commit details
    Browse the repository at this point in the history
  2. rbd: set depthToAvoidFlatten to 3 during PVC-PVC clone

    During PVC-PVC clone creation, parent of the datasource
    image is flattened after checking for clone depth.
    We need to account for data source image as well since
    we're calculating depth from the parent image.
    depthToAvoidFlatten = 3(datasource image + temp + final clone)
    
    Signed-off-by: Rakshith R <[email protected]>
    Rakshith-R committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    7515ae2 View commit details
    Browse the repository at this point in the history