Closed VladimirMarkelov closed 7 months ago
Welcome @VladimirMarkelov!
It looks like this is your first PR to kubernetes-sigs/sig-storage-lib-external-provisioner 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes-sigs/sig-storage-lib-external-provisioner has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
Hi @VladimirMarkelov. Thanks for your PR.
I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
Closing the MR for now. I'll reopen it later when everything is ready
@humblec , @chrishenzie
I reopen my PR after getting "green light" from my manager. The PR is ready for review.
Thank you.
/ok-to-test
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
@humblec , @chrishenzie, @sunnylovestiramisu The tests passed. Please review the MR or advise me who I can ask to do it. Thank you!
@VladimirMarkelov I am terribly sorry, this library did not get enough review attention. Can you please rebase? And if I don't review it in a few days, please ping me on slack.
/ok-to-test
@jsafrane I've rebased my MR. Please review when you have time. Thank you!
/lgtm /approve
Thanks a lot!
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jsafrane, VladimirMarkelov
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What
The MR sets a log level for
k8log.Info
calls in the module. I used a few sources to choose what level to set:It resulted in setting
V(4)
for informational (e.g,klog.V(4).Info(logOperation(operation, "started"))
) and successful operations (e.g,klog.V(4).Info(logOperation(operation, "succeeded"))
. For more important but still informational message I chooseV(2)
(e.g,klog.V(2).Info(logOperation(operation, "volume rescheduled because: %v", err))
)Why
Higher-level packages like
external-provisioner
provides a way to reduce logging by setting a certain log level at start. But majority of log messages ofsig-storage-lib-external-provisioner
are logged always. In some cases, logging everything may result in excessive logging that is hard to look through. An example isexternal-provisioner
, which depends on this module. It is deployed on a few nodes of a cluster. When a volume is deleted, all nodes with runningexternal-provisioner
receive a request to delete the volume. But only one node contains it. So the log is filled with a plenty of messagesdeletion of PV started
anddeletion of PV ignored because the node does not contain the volume
from the other nodes. I think, it would be good to have a "switch" to enable/disable certain message via setting log level as it is done in other Kubernetes packages.