Bug 668798

Summary: wallaby list-snapshots should not exit with failure merely because there are no snapshots
Product: Red Hat Enterprise MRG Reporter: Will Benton <willb>
Component: wallaby-utilsAssignee: Will Benton <willb>
Status: CLOSED ERRATA QA Contact: Lubos Trilety <ltrilety>
Severity: medium Docs Contact:
Priority: low    
Version: 1.3CC: iboverma, ltrilety, matt, pematous
Target Milestone: 1.3.2   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: wallaby-0.10.4-2 Doc Type: Bug Fix
Doc Text:
Running "wallaby list-snapshots" resulted in a non-zero exit code, indicating failure, even when no snapshots existed in the store. With this update, the "wallaby list-snapshots" operation exits with an exit code of 0 (zero) if it does not find any snapshots, but otherwise succeeds, as expected.
Story Points: ---
Clone Of: 635628 Environment:
Last Closed: 2011-02-15 12:17:35 UTC Type: ---
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: 635628    
Bug Blocks: 668432, 668797    

Comment 1 Will Benton 2011-01-14 18:55:46 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
C:  The "wallaby list-snapshots" utility exited with a failure status if no snapshots existed in the store.
C:  This behavior may have been confusing for some users.
F:  The "wallaby list-snapshots" does not exit with a failure status if it otherwise succeeds but finds no snapshots.
R:  Users should find that the exit-status behavior of the wallaby list-snapshots command is now more consistent with their expectations.

Comment 3 Lubos Trilety 2011-01-27 14:34:09 UTC
# wallaby list-snapshots
Console Connection Established...

# echo $?
1

# rpm -q wallaby
wallaby-0.10.4-1.el5

>>> ASSIGNED

Comment 5 Lubos Trilety 2011-01-28 12:36:11 UTC
Tested with (version):
wallaby-0.10.4-2

# wallaby list-snapshots
Console Connection Established...
# echo $?
0

Tested on:
RHEL5 i386,x86_64  - passed

>>> VERIFIED

Comment 6 Douglas Silas 2011-02-09 17:54:44 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,4 +1 @@
-C:  The "wallaby list-snapshots" utility exited with a failure status if no snapshots existed in the store.
+Running "wallaby list-snapshots" resulted in a non-zero exit code, indicating failure, even when no snapshots existed in the store. With this update, the "wallaby list-snapshots" operation exits with an exit code of 0 (zero) if it does not find any snapshots, but otherwise succeeds, as expected.-C:  This behavior may have been confusing for some users.
-F:  The "wallaby list-snapshots" does not exit with a failure status if it otherwise succeeds but finds no snapshots.
-R:  Users should find that the exit-status behavior of the wallaby list-snapshots command is now more consistent with their expectations.

Comment 7 errata-xmlrpc 2011-02-15 12:17:35 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0217.html