-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Fix volume reconstruction for CSI ephemeral volumes #108997
Conversation
/triage accepted |
/sig storage |
How do we invoke the affected subpath tests... |
@dobsonj: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
/test pull-kubernetes-e2e-gce-storage-disruptive |
Aside from the in-tree hostPath failures, the pull-kubernetes-e2e-gce-storage-disruptive results also have failures for the in-tree iscsi, ceph, rbd volume plugins... maybe we have to skip these 2 tests for those drivers as well? /test pull-kubernetes-e2e-gce-storage-disruptive |
The results for pull-kubernetes-e2e-gce-storage-disruptive now look pretty consistent with runs for other PR jobs. The subpath tests always fail for the in-tree iscsi, rbd, and ceph drivers. |
This resolves a couple of issues for CSI volume reconstruction. 1. IsLikelyNotMountPoint is known not to work for bind mounts and was causing problems for subpaths and hostpath volumes. 2. Inline volumes were failing reconstruction due to calling GetVolumeName, which only works when there is a PV spec.
These tests were previously disabled to work around kubernetes#79980 kubernetes@f1e1f3a
/test pull-kubernetes-e2e-gce-storage-disruptive |
@@ -246,14 +245,6 @@ func (h *hostpathCSIDriver) PrepareTest(f *framework.Framework) (*storageframewo | |||
NodeName: node.Name, | |||
} | |||
|
|||
// Disable volume lifecycle checks due to issue #103651 for the one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so by removing this, the reconstruction part for csi-host-path driver will be tested ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, this check was added in f1e1f3a and e99b945 to work around #103651 (comment)
So removing this check allows csi-hostpath to be tested again, and I can see those tests passing for csi-hostpath in pull-kubernetes-e2e-gce-storage-disruptive now.
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dobsonj, jingxu97 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-kubernetes-e2e-kind-ipv6 |
@dobsonj: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
…997-upstream-release-1.24 Automated cherry pick of #108997: kubelet: fix volume reconstruction for CSI ephemeral
…997-upstream-release-1.23 Automated cherry pick of #108997: kubelet: fix volume reconstruction for CSI ephemeral
What type of PR is this?
/kind bug
What this PR does / why we need it:
This solves a couple of issues with volume reconstruction for CSI ephemeral volumes.
Which issue(s) this PR fixes:
Fixes #79980
Special notes for your reviewer:
/cc @gnufied @jsafrane @pohly @jingxu97
CSI inline volume with these changes:
PV spec with these changes:
subpath volumes with these changes:
Does this PR introduce a user-facing change?