[Bugs] [Bug 1463192] New: gfapi: discard glfs object when volume is deleted

bugzilla at redhat.com bugzilla at redhat.com
Tue Jun 20 11:12:28 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1463192

            Bug ID: 1463192
           Summary: gfapi: discard glfs object when volume is deleted
           Product: Red Hat Gluster Storage
           Version: 3.3
         Component: libgfapi
          Assignee: ndevos at redhat.com
          Reporter: prasanna.kalever at redhat.com
        QA Contact: sbhaloth at redhat.com
                CC: bugs at gluster.org, rhs-bugs at redhat.com,
                    storage-qa-internal at redhat.com
        Depends On: 1463191



Description of problem:

currently, once we have a glfs object in hand for a given volume, after
deleting and recreating the volume with same name, we still can access new
volume using the old glfs object, which is wrong.

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

How reproducible:
1. write a gfapi program, once you are done calling glfs_init() try creating a
file in the volume, now apply break-point there.

2. delete the volume and recreate the volume with the same name.

3. now continue with your program, in the next lines try creating another file
in the volume using the same old glfs object

4. surprisingly it allows to create.

My use-case was more like calling glfs_get_volumeid() returns old volume id
rather than throwing an error which should say glfs object is not valid or
worst case return new volume id, but in my case it returned old uuid.

Refer https://bugzilla.redhat.com/show_bug.cgi?id=1461808#c9 for some more
interesting context and sample programs.

Actual results:
with old glfs object we still can access new volume

Expected results:
return invalid object.


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1463191
[Bug 1463191] gfapi: discard glfs object when volume is deleted
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=nfQq9ZgHhz&a=cc_unsubscribe


More information about the Bugs mailing list