Skip to content
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

Getting permission issue to create log file #19

Open
sajithapps opened this issue Sep 19, 2019 · 2 comments
Open

Getting permission issue to create log file #19

sajithapps opened this issue Sep 19, 2019 · 2 comments

Comments

@sajithapps
Copy link

FlexVolume: driver call failed: executable: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/answear.com~vcloud/vcloud,
args: [attach {"busSubType":"VirtualSCSI","busType":"6","kubernetes.io/fsType":"ext4","kubernetes.io/pvOrVolumeName":"appktestdisk",
"kubernetes.io/readwrite":"rw","mountOptions":"relatime,nobarrier","size":"1Gi","storage":"Platinum","volumeName":"appktestdisk"}
xxxxxxxxxxxxxVMNAMExxxxxxxxxxxxxxxxxxx],
error: exit status 1,
output: "{"status": "Failure", "message": "Error on line 33 in file
/usr/local/lib/python3.6/site-packages/kube_vcloud_flexvolume-2.4.3-py3.6.egg/flexvolume/attach.py (PermissionError):
[Errno 13] Permission denied: '/pyvcloud.log'"}\nE
xception: '_thread._local' object has no attribute 'client'\n\n"

Unable to create log file as it throws permission error for all location.

~/pyvcloud.log
/home/admin/pyvcloud.log
/var/log/pyvcloud.log
etc.,

@dzolnierz dzolnierz self-assigned this Sep 19, 2019
@dzolnierz dzolnierz added the bug label Sep 19, 2019
@dzolnierz
Copy link
Contributor

Thank you for reporting this issue. I will try to investigate this within few days.

@dzolnierz
Copy link
Contributor

I assume you run kubelet as non-root user. If so, you need to create log file by hand and set write permissions for user which kubelet is running on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants