Skip to content

The driver does not properly release file handles for decomissioned pods #2594

@david-garcia-garcia

Description

@david-garcia-garcia

What happened:

If a pod is manipulating files on a FileShare a handle is opened.

You can retrieve them using Get-AzStorageFileHandle

When the pod is forcefully closed, the handle is not released. Because the actual SMB handle belongs to the K8S node the handle is left dangling forever until the node is replaced.

This is causing us problems with locked files that are never released.

Not sure if anything can be done at the CSI driver level to try to cleanup dead handles belonging to non existent pods or properly close them when the pod is killed.

What you expected to happen:

Handles acquired from a pod are released when the pod is killed.

How to reproduce it:

Store a compressed (big enough so that it takes time to decompress) file on a file share. Start decompression from a pod. Kill the pod.

Anything else we need to know?:

Environment:

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