csi-test
csi-test copied to clipboard
Sanity: "pagination should detect volumes added between pages" removes volumes it didn't create & other issues
This test specifically checks for "existing volumes" by doing a ListVolumes call then afterwards does removing all listed volumes
This means that this test could removes all volumes listed even if the volume was not created by this test. This could cause data loss depending on how a consumer is using CSI sanity.
This brings up a larger problem I have with this test too - either
- You are consuming csi-sanity and mocking out the back-end (this is what I do) -> this test is way too complicated and depends on the workings of pagination and doesn't feel like a simple "sanity test" like the rest of the package
- You are not mocking out the backend -> this test has potential for data loss
/cc @msau42 @lpabon @pohly @darkowlzz
I agree that the test should only remove volumes created by the test. /kind bug /help
@msau42: This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.
In response to this:
I agree that the test should only remove volumes created by the test. /kind bug /help
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'd be happy to take a stab at this one.
/assign @timoreimann
Note that the test is currently disabled (https://github.com/kubernetes-csi/csi-test/pull/226) because it was so problematic.
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
/lifecycle frozen