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
Fixes MountVolume.NewMounter errors not displayed to users via describe events #42006
Conversation
@kubernetes/sig-storage @saad-ali cc |
@@ -364,9 +364,10 @@ func (vm *volumeManager) WaitForAttachAndMount(pod *v1.Pod) error { | |||
} | |||
|
|||
return fmt.Errorf( | |||
"timeout expired waiting for volumes to attach/mount for pod %q/%q. list of unattached/unmounted volumes=%v", | |||
"timeout expired waiting for volumes to attach/mount for pod %q/%q. With error %v. list of unattached/unmounted volumes=%v", |
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.
s/With/with ?
Another question is what will be the exact err
here, is it also time expired
? Is it duplicate with the beginning of this error message timeout expired waiting
?
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.
@gyliu513 - yeah, I don't think I need this part of the change, from what I can tell it is a duplicate "timeout waiting for condition" error - I will remove this.
c81c585
to
0cdddf8
Compare
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.
/lgtm thanks @screeley44
/approve |
@k8s-bot verify test this |
50da219
to
e48c663
Compare
e48c663
to
762ca8e
Compare
@k8s-bot node e2e test this |
@saad-ali - can you approve and lgtm this simple fix ... thanks! |
@jsafrane - can you take a look at this simple fix and approve if it looks ok to you |
cc @jingxu97 can we merge this? it looks good to me. |
make sure to test this fix. |
@jingxu97: you can't LGTM a PR unless you are an assignee. In response to this comment:
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. |
/approve |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED The following people have approved this PR: gnufied, jingxu97, jsafrane, screeley44 Needs approval from an approver in each of these OWNERS Files:
We suggest the following people: |
marked as lgtm on behalf of @jingxu97 |
@k8s-bot kops aws e2e test this |
@jsafrane can this be merged or is queue closed until next release? |
Automatic merge from submit-queue (batch tested with PRs 42522, 42545, 42556, 42006, 42631) |
Fixes #42004
This fixes the problem of mount errors being eaten and not displayed to users again. Specifically erros caught in MountVolume.NewMounter (like missing endpoints, etc...)
Current behavior for any mount failure:
New Behavior:
For example on glusterfs - deliberately didn't create endpoints, now correct message is displayed: