The core CIFS protocol does not provide unix ownership information or mode for files and directories. Because of this, files and directories will generally appear to be owned by whatever values the uid= or gid= options are set, and will have permissions set to the default file_mode and dir_mode for the mount. Attempting to change these values via chmod/chown will return success but have no effect.
One thing we can do is pop up the uid and gid parameters (used during CIFS mount) as options to admins that you can specify as part of the volume/service creation commandlines. Do you think that will satisfy the requirement somewhat?
Options:
–alias string Local name for plugin
–disable Do not enable the plugin on install
–disable-content-trust Skip image verification (default true)
–grant-all-permissions Grant all permissions necessary to run the plugin
–help Print usage
hey @maartenvanveen we will look into introducing the uid and gid as optional parameters you can specify (during volume creation/service creation) in the next release of Editions release. It’s not something that is exposed right now.
Unfortunately the file permissions issue is a shortcoming of the CIFS protocol used by cloudstor. We will have a solution for this in the future when Azure exposes a way to create/attach individual VHDs to VMs in a VM Scale Set so that cloudstor does not have to rely on CIFS for storage.
So how do i go about in the meantime?
Are there any good shared storage volume plugins you’d recommend that i can easily install on the core-os machines?
We have a fix ready where you can specify the UID/GID for the CIFS share (during cloudstor based volume creation) and we have successfully tested Jenkins installation. Should be available next week as part of 17.06 releases.
@ddebroy is this installation available from the docker plugin install path as well? just as this was referenced for 17.03
docker plugin install --alias cloudstor:azure --grant-all-permissions docker4x/cloudstor:azure-v17.03.0-ce
@ddebroy I cant seem to locate it using docker plugin update or install
Error response from daemon: manifest for docker4x/cloudstor:azure-v17.06.0-ce not found
docker --version
Docker version 17.06.0-ce, build 02c1d87