Bug #5011

Pithos backend open hashfile bug

Added by Chrysostomos Nanakos over 6 years ago. Updated over 6 years ago.

Status:Closed Start date:01/30/2014
Priority:Medium Due date:
Assignee:Chrysostomos Nanakos % Done:

0%

Category:Pithos Spent time: -
Target version:0.15

Description

"/usr/lib/python2.7/dist-packages/pithos/backends/lib/hashfiler/filemapper.py",
line 83, in map_retr
with self._get_rear_map(maphash, 0) as rmap:
File
"/usr/lib/python2.7/dist-packages/pithos/backends/lib/hashfiler/context_file.py",
line 145, in enter
fdesc = open(name, 'rb+')
IOError: [Errno 13] Permission denied:
'/srv/pithos/data/maps/*/*/*/********

snf-pithos-backend tries to open a hashfile in RW mode in a filesystem which has no access. The exception handling doesn't seem to check the specific error code (EACCES) leading to an unhandled and misleading error.

Associated revisions

Revision 40c0f66a
Added by Chrysostomos Nanakos over 6 years ago

pithos: Remove 'create' flag from the mapper

The file access mode is now chosen from the file mapper or blocker
according to the function that is being used, i.e., read or write
an object.

Refs #5011

Revision 3d875ca3
Added by Chrysostomos Nanakos over 6 years ago

pithos: Remove 'create' flag from the mapper

The file access mode is now chosen from the file mapper or blocker
according to the function that is being used, i.e., read or write
an object.

Refs #5011

History

#1 Updated by Chrysostomos Nanakos over 6 years ago

  • Status changed from New to Closed

Also available in: Atom PDF