external-provisioner
external-provisioner copied to clipboard
RFC: structured, contextual logging
What type of PR is this? /kind cleanup
What this PR does / why we need it:
Embracing go-logr as logger has several advantages:
- adding a certain prefix and/or set of objects can be done consistently with less code duplication
- it's even possible for the caller to do that, something that doesn't work when the prefix is part of the format string
- in Go tests, all output can be associated with the currently running test via https://github.com/kubernetes/klog/pull/240
The latter was needed to debug https://github.com/kubernetes-csi/external-provisioner/issues/638
Does this PR introduce a user-facing change?:
Log messages are structured (fixed message, additional information in key/value pairs).
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: pohly
To complete the pull request process, please assign msau42 after the PR has been reviewed.
You can assign the PR to them by writing /assign @msau42 in a comment when ready.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
@pohly: PR needs rebase.
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.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle rotten
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle rotten
I will come back to this once contextual logging is usable in Kubernetes. It's planned for alpha in 1.24.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle stale
/remove-lifecycle rotten
@pohly: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| pull-kubernetes-csi-external-provisioner-1-22-on-kubernetes-1-22 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-1-22-on-kubernetes-1-22 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-21 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-21 |
| pull-kubernetes-csi-external-provisioner-unit | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-unit |
| pull-kubernetes-csi-external-provisioner-1-23-on-kubernetes-1-23 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | false | /test pull-kubernetes-csi-external-provisioner-1-23-on-kubernetes-1-23 |
| pull-kubernetes-csi-external-provisioner-1-21-on-kubernetes-1-21 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-1-21-on-kubernetes-1-21 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-23 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-23 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-24 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-24 |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
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.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
@pohly: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| pull-kubernetes-csi-external-provisioner-1-22-on-kubernetes-1-22 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-1-22-on-kubernetes-1-22 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-21 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-21 |
| pull-kubernetes-csi-external-provisioner-unit | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-unit |
| pull-kubernetes-csi-external-provisioner-1-23-on-kubernetes-1-23 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | false | /test pull-kubernetes-csi-external-provisioner-1-23-on-kubernetes-1-23 |
| pull-kubernetes-csi-external-provisioner-1-21-on-kubernetes-1-21 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-1-21-on-kubernetes-1-21 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-23 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-23 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-24 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-24 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-25 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-25 |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
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.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: pohly
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [pohly]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle rotten
PR needs rebase.
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.
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle rotten - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle rotten
I was looking for a volunteer to continue with this, but so far without luck. I'll probably finish this myself.
Hi @pohly
I was looking for a volunteer to continue with this, but so far without luck. I'll probably finish this myself.
Would it be acceptable if I were to take on this development task?
@bells17: help with this would be very welcome. Feel free to take my branch, rebase it and continue in a new PR.
I think with this PR and https://github.com/kubernetes-csi/node-driver-registrar/pull/259 it is technically clear how to use component-base/logs. The rest of the conversion can go as described in https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/migration-to-structured-logging.md
@pohly: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| pull-kubernetes-csi-external-provisioner-1-22-on-kubernetes-1-22 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-1-22-on-kubernetes-1-22 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-21 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-21 |
| pull-kubernetes-csi-external-provisioner-1-23-on-kubernetes-1-23 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | false | /test pull-kubernetes-csi-external-provisioner-1-23-on-kubernetes-1-23 |
| pull-kubernetes-csi-external-provisioner-1-21-on-kubernetes-1-21 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-1-21-on-kubernetes-1-21 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-23 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-23 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-24 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-24 |
| pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-25 | c4a1889bca99c42ffa89c380c8b7cc66e602f8e5 | link | true | /test pull-kubernetes-csi-external-provisioner-distributed-on-kubernetes-1-25 |
| pull-kubernetes-csi-external-provisioner-1-27-on-kubernetes-1-27 | a2d6a4d9da518554668e027f712e189960a4870b | link | true | /test pull-kubernetes-csi-external-provisioner-1-27-on-kubernetes-1-27 |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
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.
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle rotten - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Reopen this PR with
/reopen - Mark this PR as fresh with
/remove-lifecycle rotten - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closed this PR.
In response to this:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied- After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied- After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closedYou can:
- Reopen this PR with
/reopen- Mark this PR as fresh with
/remove-lifecycle rotten- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
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.