-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Log if PV is still in use trying to delete it #101987
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
@sky-philipalmeida: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Welcome @sky-philipalmeida! |
Hi @sky-philipalmeida. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 have sign it! |
/ok-to-test |
/kind cleanup |
/release-note-none |
Not sure what is failing can you please help? |
/retest |
/retest-required |
@xing-yang do I need to to anything else? |
/test pull-kubernetes-e2e-gce-storage-slow |
/retest |
/test pull-kubernetes-conformance-kind-ga-only-parallel |
/test pull-kubernetes-dependencies |
/test pull-kubernetes-e2e-gce-100-performance |
/test pull-kubernetes-e2e-gce-csi-serial |
/test pull-kubernetes-e2e-gce-storage-snapshot |
/test pull-kubernetes-e2e-gce-ubuntu-containerd |
/test pull-kubernetes-e2e-kind |
/test pull-kubernetes-e2e-kind-ipv6 |
/test pull-kubernetes-integration |
/test pull-kubernetes-node-e2e-containerd |
/test pull-kubernetes-typecheck |
/test pull-kubernetes-unit |
/test pull-kubernetes-verify |
/test pull-kubernetes-verify-govet-levee |
/sig storage |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sky-philipalmeida, xing-yang 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 |
@sky-philipalmeida If the goal is to expose this to end users, maybe we should set up a counter metric for it too? Would make it easier to watch on large fleets. |
Yes that would be the best approach as we could also monitor it via Prometheus. Atm I do not have the required knowledge to implement this to be honest, I know maybe kube-state-metrics integration would be the way to go. |
Please feel free to reach out to SIG-Instrumentation on Slack if you'd like help setting up a metric :) |
Thanks @coderanger |
Similar to what we have in:
https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/volume/pvcprotection/pvc_protection_controller.go#L181
The objective is to have a easy way to monitor if a PV will enter in Terminating state due to a failed removal when still in use.
This way we can capture the PV log and alert according.
The code is not tested.
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: