Bug 1117270

Summary: [SNAPSHOT]: error message for invalid snapshot status should be aligned with error messages of info and list
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rahul Hinduja <rhinduja>
Component: snapshotAssignee: Vijaikumar Mallikarjuna <vmallika>
Status: CLOSED ERRATA QA Contact: Rahul Hinduja <rhinduja>
Severity: low Docs Contact:
Priority: high    
Version: rhgs-3.0CC: asengupt, mzywusko, nsathyan, rhs-bugs, rjoseph, senaik, smohan, storage-qa-internal, vagarwal, vmallika
Target Milestone: ---   
Target Release: RHGS 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: SNAPSHOT
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 04:34:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1119641, 1145087, 1202842, 1223636    

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