Bug 1115852

Summary: libgfapi-python client fails on creat and open functional tests
Product: [Community] GlusterFS Reporter: Humble Chirammal <hchiramm>
Component: libgfapiAssignee: bugs <bugs>
Status: CLOSED EOL QA Contact: Sudhir D <sdharane>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5.1CC: bugs, thiago
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-17 15:57:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Humble Chirammal 2014-07-03 09:11:59 UTC
Description of problem:

creat() and open() fails on test_create_file_already_exists & test_open_file_not_exist functional testing when defined via function prototype.. 


_glfs_creat = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.c_void_p, ctypes.c_char_p, ctypes.c_int, cty
pes.c_uint)  (('glfs_creat', client)) 
			

_glfs_open = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.c_void_p, ctypes.c_char_p, ctypes.c_int)  (('glfs_open', client)) # noqa 

Version-Release number of selected component (if applicable):

http://review.gluster.org/#/c/7805/

How reproducible:

Run functional tests inside "tests" directory in the source after defining the function prototypes.


Actual results:

It fails to pass functional tests.

Expected results:

It should work when function prototypes are defined as shown in http://review.gluster.org/#/c/7805/

Comment 1 Humble Chirammal 2014-07-03 09:14:56 UTC
Even-though I am not sure about the root cause, it will be worth checking this patch http://review.gluster.org/#/c/7999/

Comment 2 Humble Chirammal 2014-07-04 12:55:49 UTC
There is also a bug in glusterfs where glfs_open fails if we pass "O_CREAT" flag (https://bugzilla.redhat.com/show_bug.cgi?id=1102989) . test_create_file_already_exists() pass the same to libgfapi. It would be worth checking on the same.

Comment 3 Niels de Vos 2016-06-17 15:57:04 UTC
This bug is getting closed because the 3.5 is marked End-Of-Life. There will be no further updates to this version. Please open a new bug against a version that still receives bugfixes if you are still facing this issue in a more current release.

Comment 4 Red Hat Bugzilla 2023-09-14 02:11:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days