[Openstack-operators] Permission Denied in swift

Davíð Örn Jóhannsson davidoj at siminn.is
Wed Nov 4 10:10:10 UTC 2015


I have a newly set up swift cluster that is generating a lot of error like this where it seems that swift user does not have access to read permissions or something


Nov  4 10:01:27 swift-04 object-auditor: ERROR Trying to audit /srv/node/Z302XLHP/objects/11808/7c8/1710674aaa385fc75885b2ac7f8967c8: #012Traceback (most recent call last):#012  File "/usr/lib/python2.7/dist-packages/swift/obj/auditor.py", line 173, in failsafe_object_audit#012    self.object_audit(location)#012  File "/usr/lib/python2.7/dist-packages/swift/obj/auditor.py", line 191, in object_audit#012    with df.open():#012  File "/usr/lib/python2.7/dist-packages/swift/obj/diskfile.py", line 1292, in open#012    data_file, meta_file, ts_file = self._get_ondisk_file()#012  File "/usr/lib/python2.7/dist-packages/swift/obj/diskfile.py", line 1381, in _get_ondisk_file#012    "Error listing directory %s: %s" % (self._datadir, err))#012DiskFileError: Error listing directory /srv/node/Z302XLHP/objects/11808/7c8/1710674aaa385fc75885b2ac7f8967c8: [Errno 13] Permission denied: '/srv/node/Z302XLHP/objects/11808/7c8/1710674aaa385fc75885b2ac7f8967c8'


As Root


root at swift-04:~# ls -la /srv/node/Z302XLHP/objects/11808/7c8/1710674aaa385fc75885b2ac7f8967c8
total 44
drwxr--r-- 2 swift swift    42 Nov  4 09:52 .
drw-r--r-- 3 swift swift    53 Nov  4 09:52 ..
-rw-r--r-- 1 swift swift 40957 Nov  4 09:52 1446566608.56781.data

As swift

swift at swift-04:/$ ls -la /srv/node/Z302XLHP/objects/11808/7c8/1710674aaa385fc75885b2ac7f8967c8
ls: cannot access /srv/node/Z302XLHP/objects/11808/7c8/1710674aaa385fc75885b2ac7f8967c8: Permission denied

swift at swift-04:/$ ls -la /srv/node/Z302XLHP/objects/11808/7c8
ls: cannot access /srv/node/Z302XLHP/objects/11808/7c8/.: Permission denied
ls: cannot access /srv/node/Z302XLHP/objects/11808/7c8/..: Permission denied
ls: cannot access /srv/node/Z302XLHP/objects/11808/7c8/1710674aaa385fc75885b2ac7f8967c8: Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
?????????? ? ? ? ?            ? 1710674aaa385fc75885b2ac7f8967c8

swift at swift-04:/$ ls -la /srv/node/Z302XLHP/objects/11808/
total 8
drwxrwxr-x   3 swift swift   61 Nov  4 10:03 .
drwxr-xr-x 151 swift swift 4096 Nov  4 09:56 ..
drwxr--r--   3 swift swift   53 Nov  4 09:52 7c8
-rw-------   1 swift swift   50 Nov  4 10:03 hashes.pkl
-rwxr-xr-x   1 swift swift    0 Nov  4 09:52 .lock

Any ideas to what could be wrong with the permissions?





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20151104/c4eaaaaf/attachment.html>


More information about the OpenStack-operators mailing list