nixpanic/gluster-wireshark-1.4

FINODELK Call has a Malformed Packet

nixpanic opened this issue · 1 comments

It looks like a FINODELK Call can not be dissected correctly:

GlusterFS
    [Program Version: 330]
    [GlusterFS: FINODELK (30)]
    GFID: <DATA>
        contents: <DATA>
    File Descriptor: 0
    Command: GF_LK_SETLK (1)
    Type: GF_LK_F_WRLCK (1)
    flock
        ia_flock_type: GF_LK_F_WRLCK (1)
        ia_flock_whence: 0
        ia_flock_start: 0
        ia_flock_len: 0
        ia_flock_pid: 0
        ia_flock_owner: 16
    Volume: -replicate-0<TRUNCATED>
        length: 1919250540
        contents: -replicate-0<TRUNCATED>
[Malformed Packet: GlusterFS]
    [Expert Info (Error/Malformed): Malformed Packet (Exception occurred)]
        [Message: Malformed Packet (Exception occurred)]
        [Severity level: Error]
        [Group: Malformed]

Steps to reproduce:

  1. start tcpdump like tcpdump -i any -s 0 -w /tmp/new-repl.pcap tcp and not port 22
  2. create a new replicated volume with something like gluster volume create repl replica 2 transport tcp node1:/bricks/repl node2:/bricks/repl
  3. start the volume gluster volume start repl
  4. mount the volume mount -t glusterfs node1:/repl /mnt
  5. create a file echo hello > /mnt/README
  6. unmount with umount /mnt
  7. kill the tcpdump with CTRL+C
  8. open the .pcap file in the patched wireshark/tshark

Fixed with #7