Bug 1117270 - [SNAPSHOT]: error message for invalid snapshot status should be aligned with error messages of info and list
Summary: [SNAPSHOT]: error message for invalid snapshot status should be aligned with ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: snapshot
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
high
low
Target Milestone: ---
: RHGS 3.1.0
Assignee: Vijaikumar Mallikarjuna
QA Contact: Rahul Hinduja
URL:
Whiteboard: SNAPSHOT
Depends On:
Blocks: 1119641 1145087 1202842 1223636
TreeView+ depends on / blocked
 
Reported: 2014-07-08 12:25 UTC by Rahul Hinduja
Modified: 2016-09-17 12:52 UTC (History)
10 users (show)

Fixed In Version: glusterfs-3.7.0-3.el6rhs
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1119641 (view as bug list)
Environment:
Last Closed: 2015-07-29 04:34:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description Rahul Hinduja 2014-07-08 12:25:58 UTC
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 09:45:07 UTC
Patch http://review.gluster.org/#/c/8309/ merged upstream

Comment 5 senaik 2015-06-23 06:24:05 UTC
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 04:34:01 UTC
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.