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

osd: re-open encrypted disk during osd-prepare-job if closed #11338

Merged
merged 1 commit into from Dec 1, 2022

Commits on Nov 30, 2022

  1. osd: re-open encrypted disk during osd-prepare-job if closed

    This commit implements this corner case during osd-prepare job.
    ```
    The encrypted block is not opened, this is an extreme corner case
    The OSD deployment has been removed manually AND the node rebooted
    So we need to re-open the block to re-hydrate the OSDInfo.
    
    Handling this case would mean, writing the encryption key on a
    temporary file, then call luksOpen to open the encrypted block and
    then call ceph-volume to list against the opened encrypted block.
    We don't implement this, yet and return an error.
    ```
    When underlying PVC for osd are CSI provisioned, the encrypted device
    is closed when PVC is unmounted due to osd pod being deleted.
    Therefore, this may occur more frequently and needs to be handled.
    This commit implements the fix for the same.
    
    Signed-off-by: Rakshith R <rar@redhat.com>
    Rakshith-R committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    bde286e View commit details
    Browse the repository at this point in the history