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

unmount timeout should NOT trigger detach (by trigger detach there is a potential data loose) #69168

Closed
shay-berman opened this issue Sep 27, 2018 · 9 comments
Labels
sig/storage Categorizes an issue or PR as relevant to SIG Storage.

Comments

@shay-berman
Copy link

/kind bug

What happened:
Stop a POD with PV, will trigger unmount flow in k8s. And the current flow is to trigger detach of the PV if the unmount operation reached to timeout (called maxWaitForUnmountDuration, which BTW is not configurable #68086).

I think that this is a bug - k8s should not send detach to PV if the unmount operation is stuck and reached to timeout maxWaitForUnmountDuration. Because there is a small chance of data loose here, because there is a chance that the unmount operation didn't unmount the device on the node, and some data still preserve in the filesystem cache.

What you expected to happen:
K8s should not send detach to the PV if the unmount of PV reached to timeout maxWaitForUnmountDuration. Instead it should just fail the unmount and just retry again the unmount.

How to reproduce it (as minimally and precisely as possible):

  1. change the unmount operation to a fake one that just goes to endless loop.
  2. create POD with PV on the host with the fake unmount.
  3. delete the POD -> after few minutes (timeout) k8s should send detach to the PV on this host because the unmount was stuck.

Anything else we need to know?:
We had a discussion about how k8s discover a crashed node and release the PODs on it (HERE ->
#65392 (comment))
Is some way this current issue is related(complimentary) to this one.

Environment:
every k8s version.

@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Sep 27, 2018
@mlmhl
Copy link
Contributor

mlmhl commented Sep 28, 2018

/sig storage

@k8s-ci-robot k8s-ci-robot added sig/storage Categorizes an issue or PR as relevant to SIG Storage. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Sep 28, 2018
@kasisnu
Copy link

kasisnu commented Sep 28, 2018

Hi. I think I see the problem with this. Can I volunteer to work on a fix?

New to the k8s codebase

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 27, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 26, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kmova
Copy link

kmova commented Feb 26, 2019

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Feb 26, 2019
@kmova
Copy link

kmova commented Feb 26, 2019

/reopen

@k8s-ci-robot
Copy link
Contributor

@kmova: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/storage Categorizes an issue or PR as relevant to SIG Storage.
Projects
None yet
Development

No branches or pull requests

6 participants