Open
Description
posix permissions handler while exposing existing pvc
while trying to expose the existing pvc as smbshare, initContainer is giving error saying that posix permissions handler OSError: [Errno 95] Operation not supported. Hence the SmbShare deployment is not up and running.
logs from init container ensure-share-paths
2023-05-25 20:51:48,459: INFO: Using initializing posix permissions handler
Traceback (most recent call last):
File "/usr/bin/samba-container", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/sambacc/commands/main.py", line 231, in main
cfunc(CommandContext(cli))
File "/usr/lib/python3.11/site-packages/sambacc/commands/initialize.py", line 91, in ensure_share_paths
perms_handler(share.permissions_config(), path).update()
File "/usr/lib/python3.11/site-packages/sambacc/permissions.py", line 143, in update
if self.status_ok():
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/sambacc/permissions.py", line 136, in status_ok
sval = self._get_status()
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/sambacc/permissions.py", line 152, in _get_status
value = xattr.get(path, self._xattr, nofollow=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/sambacc/_xattr.py", line 58, in get
return xattr.get(item, name, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 95] Operation not supported
Thought this is something to do with smb driver version while mounting. Hence updated the corresponding config map's globals.globals.options as "version": "2.0"
"globals": {
"globals": {
"options": {
"disable spoolss": "yes",
"dos charset": "ascii",
"fileid:algorithm": "fsid",
"load printers": "no",
"printcap name": "/dev/null",
"printing": "bsd",
"smb ports": "445",
"vfs objects": "fileid",
"version": "2.0"
}
}
},
and restarted the deployment. But still the deployment's initContainer(ensure-share-paths) is giving the same Error.
please let me know if any one come across this problem and solved this issue. Thank you
Metadata
Metadata
Assignees
Labels
No labels