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

csi-resizer logs a warning every time a new PVC is created #170

Closed
takuhiro opened this issue Aug 18, 2021 · 2 comments · Fixed by #172
Closed

csi-resizer logs a warning every time a new PVC is created #170

takuhiro opened this issue Aug 18, 2021 · 2 comments · Fixed by #172

Comments

@takuhiro
Copy link
Contributor

csi-resizer came to output the following warning message every time a new PVC is created from v1.2.0.

I0816 07:50:11.380497       1 controller.go:291] Started PVC processing "default/sample-volume-jtdql"
W0816 07:50:11.380594       1 controller.go:318] PV "" bound to PVC default/sample-volume-jtdql not found

Until v1.1.0, it had output the following info-level message when a new PVC is created.

I0816 07:24:52.092956       1 controller.go:281] Started PVC processing "default/sample-volume-fffx6"
I0816 07:24:52.092986       1 controller.go:304] No need to resize PVC "default/sample-volume-fffx6"

This is the side effect of this commit.
The case had been handled by this block until v1.1.0, but it is handled by here since v1.2.0.

I think the log level should be changed to info, or the empty check of pvc.Spec.VolumeName should be added before here.

@humblec
Copy link
Contributor

humblec commented Aug 18, 2021

@takuhiro agree on the possibilities or analysis, would you like to send a PR for addressing the same?

@takuhiro
Copy link
Contributor Author

@humblec Thank you for answering. Yes, I will send a PR.

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 a pull request may close this issue.

2 participants