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/
Even-though I am not sure about the root cause, it will be worth checking this patch http://review.gluster.org/#/c/7999/
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.
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.
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days