Skip to content

Managed CSI driver mounting folder structure issues #2698

@gudejagadeesh123

Description

@gudejagadeesh123

We are currently facing issues with the CSI SMB driver involving persistent volume (pv) and persistent volume claim (pvc) mounts, which are causing application job failures with the error: "MountVolume.SetUp failed for volume."
After discussing this with Microsoft, they suggested transitioning to a Microsoft-managed CSI driver. However, it's important to note that the newer Azure CSI driver supports mapping only to the root directory of a file share. This limitation poses significant challenges for existing infrastructure that relies on segmented folder structures.

Key Challenges

  1. Loss of Subdirectory Mounting Capability
    Current state: CSI SMB driver enables mounting directly to subfolders within an Azure Storage account's file share.
    Change: Azure CSI driver restricts mounting to the file share's root directory only.
    Impact: This eliminates the ability to isolate storage at a granular level per environment, application, or namespace without provisioning multiple file shares.

  2. Complex Environment Reconfiguration
    Many production and non-production environments currently depend on folder-level isolation.
    Migrating to root-level mapping requires:
    Rearchitecting folder hierarchies
    Reprovisioning PVCs and PVs

Example folder structure
refer below screenshot

Image

Please clarify on key challenges which mentioned above for implement managed CSI driver.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions