Description of problem: ======================= When in a system if the number of snaps are more (my case 200) the snapshot status command fails as: [root@snapshot-09 ~]# [root@snapshot-09 ~]# gluster snapshot status Snapshot command failed [root@snapshot-09 ~]# If I am not wrong the CLI (gluster snapshot status) gets timed out(~2min) before it gathers the detail information of all the 200 snaps to print in output. When number of snapshots are less(my other case 50), the snapshot status returns the output. Version-Release number of selected component (if applicable): ============================================================= glusterfs-3.4.1.7.snap.mar27.2014git-1.el6.x86_64 How reproducible: ================= 1/1 Steps to Reproduce: 1. Create 4 node clustered system 2. Create and start 4 volumes (vol0 to vol3) 3. Create 50 snapshot on each volume (total 200 snapshots) 4. use gluster snapshot status Actual results: =============== [root@snapshot-09 ~]# gluster snapshot status Snapshot command failed [root@snapshot-09 ~]# Expected results: ================= Command should be successful and it should output the status of snapshots. Additional info: ================ Log: [2014-03-28 07:12:19.972979] I [rpc-clnt.c:965:rpc_clnt_connection_init] 0-management: setting frame-timeout to 600 [2014-03-28 07:12:19.973111] I [socket.c:3534:socket_init] 0-management: SSL support is NOT enabled [2014-03-28 07:12:19.973154] I [socket.c:3549:socket_init] 0-management: using system polling thread [2014-03-28 07:16:04.945617] W [glusterd-snapshot.c:4619:glusterd_snapshot_postvalidate] 0-management: invalid snap command [2014-03-28 07:16:05.079233] I [socket.c:3134:socket_submit_reply] 0-socket.management: not connected (priv->connected = -1) [2014-03-28 07:16:05.079272] E [rpcsvc.c:1206:rpcsvc_submit_generic] 0-rpc-service: failed to submit message (XID: 0x1, Program: GlusterD svc cli, ProgVers: 2, Proc: 39) to rpc-transport (socket.management) [2014-03-28 07:16:05.079314] E [glusterd-utils.c:384:glusterd_submit_reply] 0-: Reply submission failed [2014-03-28 07:16:56.326815] W [glusterd-snapshot.c:4619:glusterd_snapshot_postvalidate] 0-management: invalid snap command
Marking snapshot BZs to RHS 3.0.
Setting flags required to add BZs to RHS 3.0 Errata
Patch which fixes this issue is posted downstream, But due to the missing of blocker flag its not yet merged.
https://code.engineering.redhat.com/gerrit/#/c/25996/
Verified with build: glusterfs-3.6.0.14-1.el6rhs.x86_64 Had 920 snaps in a system [root@rhs-arch-srv2 ~]# gluster snapshot list | wc 920 920 4308 [root@rhs-arch-srv2 ~]# time gluster snapshot status | grep "Snap Name :" | wc 920 3680 15348 real 5m21.571s user 0m0.670s sys 0m0.209s [root@rhs-arch-srv2 ~]# Snapshot status prints all of them. [root@inception ~]# gluster snapshot status | grep "Snap Name :" Snap Name : a27 Snap Name : a28 Snap Name : a29 Snap Name : a30 Snap Name : a31 Snap Name : a32 Snap Name : a33 Snap Name : d27 Snap Name : c27 Snap Name : b27 Snap Name : a34 Snap Name : d28 Snap Name : c28 Snap Name : a35 : : : : : : : : : : : : : : : : : : : : : : : : Moving the bug to verified state
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-1278.html