Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1117270 - [SNAPSHOT]: error message for invalid snapshot status should be aligned with error messages of info and list
[SNAPSHOT]: error message for invalid snapshot status should be aligned with ...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: snapshot (Show other bugs)
3.0
x86_64 Linux
high Severity low
: ---
: RHGS 3.1.0
Assigned To: Vijaikumar Mallikarjuna
Rahul Hinduja
SNAPSHOT
:
Depends On:
Blocks: 1119641 1145087 1202842 1223636
  Show dependency treegraph
 
Reported: 2014-07-08 08:25 EDT by Rahul Hinduja
Modified: 2016-09-17 08:52 EDT (History)
10 users (show)

See Also:
Fixed In Version: glusterfs-3.7.0-3.el6rhs
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1119641 (view as bug list)
Environment:
Last Closed: 2015-07-29 00:34:01 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description Rahul Hinduja 2014-07-08 08:25:58 EDT
Description of problem:
=======================

When a snapshot status is issued for non existing snap or volume, it fails with error "not found", whereas we use "does not exist" in all the other places. 

Output should be consistent across the clis.

Status command output:
=======================
[root@inception ~]# gluster snapshot status snap2
Snapshot Status : failed: Snap (snap2) not found
Snapshot command failed
[root@inception ~]# gluster snapshot status volume vol8
Snapshot Status : failed: Volume (vol8) not found
Snapshot command failed

List command output:
====================
[root@inception ~]# gluster snapshot list snap2
Snapshot list : failed: Volume (snap2) does not exist
Snapshot command failed
[root@inception ~]# 



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

glusterfs-3.6.0.24-1.el6rhs.x86_64

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


Steps to Reproduce:
===================
1. gluster snapshot status <non-existing snap>
2. gluster snapshot status volume <non-existing volume>




Additional info:
Comment 2 Vijaikumar Mallikarjuna 2014-07-30 05:45:07 EDT
Patch http://review.gluster.org/#/c/8309/ merged upstream
Comment 5 senaik 2015-06-23 02:24:05 EDT
Version : glusterfs-3.7.1-4.el6rhs.x86_64

Changes are made in snapshot status output for a non existant snap and non existant volume as follows : 

gluster snapshot status s1
Snapshot Status : failed: Snapshot (s1) does not exist
Snapshot command failed

gluster snapshot status volume v1
Snapshot Status : failed: Volume (v1) does not exist
Snapshot command failed

Marking the bug 'Verified'
Comment 7 errata-xmlrpc 2015-07-29 00:34:01 EDT
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.

https://rhn.redhat.com/errata/RHSA-2015-1495.html

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