Bug 1115852 - libgfapi-python client fails on creat and open functional tests
Summary: libgfapi-python client fails on creat and open functional tests
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: libgfapi
Version: 3.5.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact: Sudhir D
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-03 09:11 UTC by Humble Chirammal
Modified: 2023-09-14 02:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-17 15:57:04 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.