swiftonhpss/test/unit/common
Prashanth Pai c6d7ddc4bc Improve logging and raising DiskFileNoSpace
This commit only improves logging whenever ENOSPC (No space on disk)
or EDQUOT (Quota limit exceeded) is returned by glusterfs

Also, added methods to:
- get filename from file descriptor
- log with rate limit

Caveat: Although raising DiskFileNoSpace results in object-server
returning HTTPInsufficientStorage[507] correctly, the swift proxy-server
invokes "best_response" method that returns [503] to the user.

When write-behind translator is turned on in glusterfs, it may set
errno to EIO instead of ENOSPC/EDQUOT. This is documented in BZ 986812

BUG: 985862, 985253, 1020724
Change-Id: Ib0c5e41c11a8cdccc2077f71c31d8a23229452bb
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Reviewed-on: http://review.gluster.org/6199
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Tested-by: Luis Pabon <lpabon@redhat.com>
Reviewed-on: http://review.gluster.org/6269
2013-11-15 09:06:21 -08:00
..
data Updates to support Havana interim version 1.9.1. 2013-08-21 19:38:35 -07:00
middleware make gluster volume name configurable 2013-11-05 17:23:33 -08:00
__init__.py Remove "ufo" directory, promoting contents to top-level 2013-05-10 07:12:08 -07:00
test_constraints.py Final forward port of PDQ performance patches 2013-07-10 15:49:26 -07:00
test_diskdir.py Updates to support Havana interim version 1.9.1. 2013-08-21 19:38:35 -07:00
test_fs_utils.py Improve logging and raising DiskFileNoSpace 2013-11-15 09:06:21 -08:00
test_Glusterfs.py Adding new unit tests and removed some unused functions 2013-10-10 13:42:31 -07:00
test_ring.py Updates to support Havana interim version 1.9.1. 2013-08-21 19:38:35 -07:00
test_utils.py Improve logging and raising DiskFileNoSpace 2013-11-15 09:06:21 -08:00