-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Local path provisioner disallowed from reading Pods logs #9834
Comments
Since when does the local path provisioner want to view pod logs? I guess this was added in rancher/local-path-provisioner#324 but noone updated the RBAC over here. This will need to be updated in k3s/manifests/local-storage.yaml Lines 7 to 23 in 7f65975
|
Signed-off-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
##Environment Details for what it's worth I was able to hit and reproduce this issue on the v1.28.8 branch #9833 Infrastructure
Node(s) CPU architecture, OS, and version: Linux 5.14.21-150500.53-default x86_64 GNU/Linux Cluster Configuration:
Config.yaml:
Reproduction
Results: //both new COMMIT_IDs and existing release retain the same versions of local-path-provisioner
// existing release clusterrole resource permissions attention to missing resources: pod/logs $ kg clusterrole local-path-provisioner-role -o yaml
// latest commit install now includes the pods/log resources to the clusterrole $ kg clusterrole local-path-provisioner-role -o yaml
I did not hit the error during reproduction in the pod logs for what it's worth. But as the change is a permissions change on the clusterrole it's pretty straightforward to check if it has the right permissions from the kubectl api. $ k logs pod/local-path-provisioner-6c86858495-9lkr6 -n kube-system
|
Environmental Info:
K3s Version: v1.29.3+k3s1
Local path provisioner: v0.0.26
Node(s) CPU architecture, OS, and Version:
Linux 5.14.0-362.24.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 20 04:52:13 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
3 servers, embedded etcd
Describe the bug:
If helper pod fails, then Local path provisioner cannot get logs of it.
Steps To Reproduce:
1-8. The same as in #9833.
9. Check logs of Local path provisioner. Get error:
local-path-provisioner.log
Expected behavior:
Logs of failed helper pod can be seen in Local path provisioner's logs.
Actual behavior:
Error in logs, no logs from child pod.
Workaround:
Add permissions to read Pod's logs:
The text was updated successfully, but these errors were encountered: