-
Notifications
You must be signed in to change notification settings - Fork 137
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
fix: fix spurious logging for non-CSI volumes #1075
fix: fix spurious logging for non-CSI volumes #1075
Conversation
Pull Request Test Coverage Report for Build 8179376213Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
I also think that the bound PVC + no driver case isn't really an issue. There are real use-cases for not using CSI and using something like local storage to provision your volumes for your pods. |
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jmdeal, jonathan-innis The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Agreed, that's what I meant by a non-issue. I'd consider logging it if we had a trace because it could potentially mean something is corrupted but there are too many valid use-cases to justify logging in debug. |
Fixes #1069
Description
Today, if we fail to resolve a CSI driver from a bound PV, we attempt to resolve it from the storage class on the PVC. This can lead to spurious error logs when the volume is not managed by a CSI driver or supported in-tree equivalent (currently only EBS). What we should do is bail early if the PVC is bound and no volume could be discovered.
Some notes on logging:
trace
log level but it feels too verbose even for debug.How was this change tested?
make test
/ manualBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.