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
test(snapshot): add e2e test case for online volume snapshot #124339
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: hoyho <luohaihao@gmail.com>
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Tue Apr 16 13:54:10 UTC 2024. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hoyho The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @hoyho. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @msau42 @xing-yang @pohly @jsafrane |
|
||
ginkgo.By("creating a snapshot from the source PVC when the pod is using it") | ||
parameters := map[string]string{} | ||
sr := storageframework.CreateSnapshotResource(ctx, sDriver, config, pattern, pvc.Name, pvc.Namespace, f.Timeouts, parameters) |
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.
See this comment: https://github.com/kubernetes/kubernetes/pull/101280/files#r616971565
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.
See this comment: https://github.com/kubernetes/kubernetes/pull/101280/files#r616971565
I think the original test is considered more like offline test. The pod was deleted first and then snapshot is taken. The subtle thing here is that even when pod is deleted from api server, there might be a chance that volume is not finished unstaging yet.
So the new online test need to change this logic.
Hi @xing-yang Do you mean this comment?
It makes me confused. The snapshot is taken when the pod is running. What do we need to check here?
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Add online snapshot e2e test as there is missing coverage for non-ephemeral volumes
Which issue(s) this PR fixes:
Fixes #101333
Special notes for your reviewer:
This PR covers online snapshot scenario
Cloning related tests are not included. Maybe will submit later .
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: