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

clean up after failure #508

Open
pohly opened this issue Jan 10, 2020 · 0 comments
Open

clean up after failure #508

pohly opened this issue Jan 10, 2020 · 0 comments
Labels
future needs to be fixed in some future release

Comments

@pohly
Copy link
Contributor

pohly commented Jan 10, 2020

As discussed in https://kubernetes.slack.com/archives/C8EJ01Z46/p1578650595018200, CSI methods like CreateVolume and NodePublishVolume must clean up when they return a "final" error (as defined in https://github.com/kubernetes/kubernetes/blob/ca532c6fb2c08f859eca13e0557f3b2aec9a18e0/pkg/volume/csi/csi_client.go#L627-L649) because Kubernetes will give up calling them and also not call the corresponding DeleteVolume and NodeUnpublishVolume methods.

For example, an ephemeral volume currently leaks when formatting or mounting it fails.

@pohly pohly added the future needs to be fixed in some future release label May 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
future needs to be fixed in some future release
Projects
None yet
Development

No branches or pull requests

1 participant