Bug 1529992

Summary: glusterfind session creation/deletion is inconsistent
Product: [Community] GlusterFS Reporter: nh2 <nh2-redhatbugzilla>
Component: glusterfindAssignee: Shwetha K Acharya <sacharya>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: bugs, khiremat, sunkumar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-31 12:21:09 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 nh2 2017-12-31 17:24:48 UTC
Description of problem:

GlusterFS 3.12.3

glusterfind sessions are inconsistent.

If you create a session with `glusterfind create`, it exists in `glusterfind list` only on the same machine, not on the other machines in the volume.

But if you `glusterfind delete` a session, it deletes any session with that name across _all_ machines!

That's inconsistent.

If you `glusterfind delete` a session that doesn't exist on any machine, it exits nicely with `Invalid session sessionname`.

But i fyou `glusterfind delete` a session that only exists on a remote machine, then you get the following ugly/nonsensical error message about SSH private keys not existing:

    [root@10-0-0-2:~]# glusterfind delete mysession myvol

    10.0.0.1 - delete failed; stdout (including remote stderr):
    Warning: Identity file /var/lib/glusterd/glusterfind/mysession/myvol/mysession_myvol_secret.pem not accessible: No such file or directory.
    Permission denied (publickey,password,keyboard-interactive).

    stderr:

    Command delete failed in 10.0.0.1:/data/glusterfs/myvol/brick1/brick
    10.0.0.3 - delete failed; stdout (including remote stderr):
    Warning: Identity file /var/lib/glusterd/glusterfind/mysession/myvol/mysession_myvol_secret.pem not accessible: No such file or directory.
    Permission denied (publickey,password,keyboard-interactive).

    stderr:


How reproducible: Always


Steps to Reproduce:
1. `glusterfind create mysession myvol` on one machine in the cluster
2. `glusterfind delete mysession myvol` on another machine in the cluster

Actual results:

Strange error message

Expected results:

Either both glusterfind create and delete should have sessions be local to only one machine, or bew global across all machines.

Comment 1 Shwetha K Acharya 2019-09-26 07:03:49 UTC
Are you trying to delete a session in a remote machine from your machine? Can you please elaborate.

Comment 2 Sunny Kumar 2020-01-31 12:21:09 UTC
Closing this bug as no further information is provided to investigate the issue
further.