-
Notifications
You must be signed in to change notification settings - Fork 159
Fix failing csi-sanity tests #818
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
Comments
The fake GCE DeleteDisk() method is updated to return nil when a disk is not found to align its behavior with that of the real implementation. Some tests were skipped for now because the potential fixes are nontrivial and require more investigation. Please see issue kubernetes-sigs#818 for more details.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. 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. |
There are three tests in csi-sanity that are currently skipped due to failures.
ListSnapshots [Controller Server] [It] should return snapshots that match the specified source volume id
This failure requires more investigation to find the root cause.
Node Service NodeExpandVolume [It] should fail when volume is not found
The fake device utility library always returns a device path which causes issues when testing for devices not found. Additionally, any error found while trying to verify the device path is treated as an internal error (code 13) instead of not found (code 5).
We will need to likely need to return the specific error depending on the failure inside of
VerifyDevicePath()
in order to fix this.Node Service NodeExpandVolume [It] should work if node-expand is called after node-publish
This issue occurs when
blockdev
is invoked to check the device size. Because we use a fake executor that doesn't print any output, we fail to parse any integer output from theblockdev
command and return an error (and size -1) resulting in the test failure.For possible fixes, we could potentially implement a custom fake executor that returns the expected output when it receives a
blockdev
command.Tight coupling between mocks and csi-sanity
With the way we run csi-sanity right now (against a PD CSI driver with mocked components), it becomes difficult to coordinate behavior between tests and the mocked components because it's the entire suite ran against one instance of the server.
We could do things like run csi-sanity in stages against different instances of the PD CSI driver with different mocked components to ensure the expected behavior for specific tests, but that seems hacky at best and likely difficult to maintain as more tests are added.
We may also want to consider not mocking the executor and device utility library in case that allows us to test these cases more thoroughly and eliminate any coupling between the mocked components and test suite.
The text was updated successfully, but these errors were encountered: