-
Notifications
You must be signed in to change notification settings - Fork 183
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
[v2] az-log does not follow controller logs when logs get rotated #1541
Comments
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:
You can:
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:
You can:
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 issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
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. |
What happened:
Due to a limitation in Kubernetes, the log stream from
GetLogs
will not follow logs if logs are rotated on the node:azuredisk-csi-driver/cmd/az-log/cmd/pod.go
Line 98 in a41ab0e
Related issues:
What you expected to happen:
I expect that az-log continues to report the logs after log rotation.
How to reproduce it:
az-log get controller --follow | tee out.txt
az-log
will stop streaming the logs. I believe that this is because the logs have been rotated.az-log
does not exit becausebuf.Scan
continues to block:azuredisk-csi-driver/cmd/az-log/cmd/common.go
Line 126 in a41ab0e
az-log get controller --follow | tee out.txt
is executed again, the logs start streaming again.Anything else we need to know?:
Environment:
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: