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

Fail when requested volume does not exist #56

Merged
merged 3 commits into from
Mar 2, 2019

Conversation

Masquerade0097
Copy link
Contributor

What type of PR is this?
/kind bug

What this PR does / why we need it:
Fix the following failure in sanity test
[Fail] Controller Service ValidateVolumeCapabilities [It] should fail when the requested volume does not exist /home/priyanshu/work/src/github.com/csi-driver/azuredisk-csi-driver/vendor/github.com/kubernetes-csi/csi-test/pkg/sanity/controller.go:705

Which issue(s) this PR fixes:

Fixes #46

Special notes for your reviewer:


func getResourceGroupFromDiskURI(diskURI string) (string, error) {
fields := strings.Split(diskURI, "/")
if len(fields) != 9 || fields[3] != "resourceGroups" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you also copy the test code of TestGetResourceGroupFromDiskURI? thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@andyzhangx
Copy link
Member

and this PR will also fail the CI test:

I0302 14:40:46.952435   16038 utils.go:106] GRPC call: /csi.v1.Controller/ValidateVolumeCapabilities
I0302 14:40:46.952457   16038 utils.go:107] GRPC request: volume_id:"CSIVolumeID" volume_capabilities:<block:<> access_mode:<mode:SINGLE_NODE_WRITER > > 
E0302 14:40:46.952598   16038 utils.go:110] GRPC error: rpc error: code = NotFound desc = Volume not found
Volume not found

@andyzhangx
Copy link
Member

I found why CI test failed, just pushed a new commit: 57fbcb6
rerun test should work

@Masquerade0097
Copy link
Contributor Author

@andyzhangx I have added the test.

@andyzhangx andyzhangx merged commit e6edb2e into kubernetes-sigs:master Mar 2, 2019
@Masquerade0097 Masquerade0097 deleted the fix branch March 2, 2019 15:42
sozercan pushed a commit to sozercan/azuredisk-csi-driver that referenced this pull request Aug 16, 2021
tsmetana pushed a commit to tsmetana/azuredisk-csi-driver that referenced this pull request Nov 7, 2023
…gin-release-4.12

[release-4.12] OCPBUGS-20675: CVE-2023-44487: bump golang.org/x/net to v0.17.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix sanity test failures
2 participants