Red Hat Bugzilla – Bug 831443
RFE: The owner and permission of a file or a directory on GlusterFS should be controlled also via swift interface.
Last modified: 2017-06-28 05:06:31 EDT
Description of problem:
On GlusterFS, the owner and permission of a directory or a file created via swift interface are fixed: each directory is to be "drwxr-xr-x root:root" and each file is to be "-rw------- root:root". So non-root users cannot access them and currently this is set as the default and fixed setting in the software.
Given the accessibility via GlusterFS as Unified File and Object Storage, however, swift interface should have an interface to control them.
Version-Release number of selected component (if applicable):
Red Hat Storage 2.0 beta 2
Container creation or Object creation with the swift interface.
Steps to Reproduce:
1. curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test/pictures -k
2. curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test/pictures/dog -H 'Content-Length: 0' -k
[root@rhs20b2_001 AUTH_lv0]# ls -ld cntnr0
drwxr-xr-x 2 root root 12 6月 12 08:24 2012 cntnr0
[root@rhs20b2_001 AUTH_lv0]# ls -l cntnr0/obj0
drw------- 2 root root 12 6月 12 08:24 2012 obj0
Currently, we just create the files and directories as root, we can evaluate the ways to be more posix compliant.