Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

cache volumes: volume leaks when node CreateVolumeResponse is lost #507

Closed
@pohly

Description

@pohly

Suppose the following happens:

  • Controller CreateVolume calls CreateVolume on several nodes for a cache volume
  • all nodes create the volume, but one CreateVolumeResponse back to the controller is lost

I suspect we currently leak that volume here:

klog.Warningf("failed to create volume name:%s id:%s on %s: %s", node, req.Name, volumeID, err.Error())

It prints a warning (but who will read it?) and then proceeds, leading to an overall success for CreateVolume.

When DeleteVolume is called, it will not be called for the node where the response was lost -> volume leak.

@avalluri: does that sound right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    futureneeds to be fixed in some future release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions