-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Ownership /usr/local/bin changed to kube by Kubespray #5519
Comments
Indeed, this line is here to create the directory with kube user as owner if the directory does not exists. Testing if the directory exists before creating it may be a good idea, to avoid owner being changed. Would you have time to test and provide a pull request ? |
I would love to provide a pull request, but I have to wait until the company gives us permission to sign the CNCF CLA, unfortunately. I cannot give an indication when this will happen. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
If you can't sign cla, don't hesitate to propose a patch and we'll pr this for you 👍 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Seems to be fixed by this commit. |
Indeed, we forgot to update the issue, sorry for the inconvenience. |
No problem. Just for the sake of administration: it is PR #6814. |
Kubespray changes the owner of
/usr/local/bin
to the kube user. With Red Hat, this directory is created by the filesystem package. The permissions should not be modified by any application, since it is a core directory of the OS. This also causes verification errors when verifying RPM packages.The owner is modified by Kubespray here: https://github.com/kubernetes-sigs/kubespray/blob/v2.11.0/roles/kubernetes/preinstall/tasks/0050-create_directories.yml#L20.
Environment:
Cloud provider or hardware configuration: bare metal
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):ansible --version
): ansible 2.7.12Kubespray version (commit) (
git rev-parse --short HEAD
): 86cc703 (v2.11.0)Network plugin used: Calico
The text was updated successfully, but these errors were encountered: