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

[CSI] NodePublishVolume must return error if filesystem was remounted to read-only after the error #2936

Open
antonmyagkov opened this issue Jan 28, 2025 · 0 comments

Comments

@antonmyagkov
Copy link
Collaborator

Filesystem was automatically remounted to “ro” because of filesystem errors.
In general pod restart should help and “fsck“ should be run to fix fs errors but if new pod appears on the same node than NodeVolumeStage can be skipped.

Observed flow:

  1. volume was remounted to “ro”
    2 pod was deleted
  2. new pod started on the same node
  3. NodePublishVolume was received first
  4. NodeUnpublishVolume for terminated pod was received

Kubernetes doesn’t unstage pod in this case.

CSI driver should check in NodePublishVolume that access rights to filesystem is correct and return error for read-only filesystems(if read-write is expected).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant