[Openstack-operators] Permission Denied in swift

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


No, Local disks.


it seems that the /srv/node/Z302XK5V/objects/84990/fbc/ folder is being created without execute permissions

________________________________
Frá: Heiko Krämer <hkraemer at anynines.com>
Sent: 04. nóvember 2015 10:18
Til: openstack-operators at lists.openstack.org
Efni: Re: [Openstack-operators] Permission Denied in swift

Hi,

you are using an shared storage such as NFS ?

total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
?????????? ? ? ? ?            ? 1710674aaa385fc75885b2ac7f8967c8

It looks like your file system is broken or your export of your shared storage isn't working well.

Cheers
Heiko

Am 04.11.2015 um 11:10 schrieb Davíð Örn Jóhannsson:

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?








_______________________________________________
OpenStack-operators mailing list
OpenStack-operators at lists.openstack.org<mailto:OpenStack-operators at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators



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


More information about the OpenStack-operators mailing list