Bug 1106404 - [SNAPSHOT]: glusterd log prints "invalid snap command" warning for every successful snapshot status
Summary: [SNAPSHOT]: glusterd log prints "invalid snap command" warning for every succ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: snapshot
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Avra Sengupta
QA Contact: Rahul Hinduja
URL:
Whiteboard: SNAPSHOT
Depends On:
Blocks: 1106406
TreeView+ depends on / blocked
 
Reported: 2014-06-09 09:30 UTC by Rahul Hinduja
Modified: 2016-09-17 12:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1106406 (view as bug list)
Environment:
Last Closed: 2016-01-29 14:04:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Rahul Hinduja 2014-06-09 09:30:26 UTC
Description of problem:
=======================

Whenever snapshot command is successful against snapname or volumename, the glusterd logs prints a warning message as "invalid snap command" on all the nodes in cluster.

For example:
============

[root@rhs-arch-srv2 ~]# gluster snapshot status a40 | grep "Snap Name"
Snap Name : a40
[root@rhs-arch-srv2 ~]# 

glusterd logs:
==============

[2014-06-09 09:27:56.478558] W [glusterd-snapshot.c:6489:glusterd_snapshot_postvalidate] 0-management: invalid snap command



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


glusterfs-3.6.0.14-1.el6rhs.x86_64

How reproducible:
=================
1/1


Steps to Reproduce:
===================
1. Create and start a volume
2. Create a snapshot of a volume
3. Check the status of snapshot using
"gluster snapshot status <snap-name> | volume <vol-name>"
4. Check the glusterd logs

Actual results:
===============

[2014-06-09 09:27:56.478558] W [glusterd-snapshot.c:6489:glusterd_snapshot_postvalidate] 0-management: invalid snap command


Expected results:
=================

Warning should not be logged for successful and valid snap command.

Comment 1 Sachin Pandit 2014-06-09 09:34:43 UTC
The patch which fixes this problem has been posted upstream.
http://review.gluster.org/#/c/8014/

Comment 3 Sachin Pandit 2014-06-23 05:20:17 UTC
http://review.gluster.org/#/c/8014/ is merged upstream.
However as this bug does not have any blocker flag, I am
not going to send the patch downstream until Denali release.

Comment 5 Avra Sengupta 2016-01-29 14:04:45 UTC
Won't be sending a fix to 3.0. The fix is available in 3.1


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