Bug 1057675 - dist-geo-rep: geo-rep status exits with zero return code for failure.
Summary: dist-geo-rep: geo-rep status exits with zero return code for failure.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Bug Updates Notification Mailing List
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: usability, status
Depends On:
Blocks: 1285194
TreeView+ depends on / blocked
 
Reported: 2014-01-24 15:24 UTC by M S Vishwanath Bhat
Modified: 2016-06-01 01:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1285194 (view as bug list)
Environment:
Last Closed: 2015-11-25 08:49:43 UTC
Embargoed:


Attachments (Terms of Use)

Description M S Vishwanath Bhat 2014-01-24 15:24:04 UTC
Description of problem:
In the distributed geo-replication, geo-rep status returns with 0 return code for failure.

Version-Release number of selected component (if applicable):
glusterfs-3.4.0.57rhs-1.el6rhs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run geo-rep status with invalid session.
2.
3.

Actual results:
[root@spitfire ]# gluster v geo master falcon::slave status
 
MASTER NODE                MASTER VOL    MASTER BRICK          SLAVE                 STATUS     CHECKPOINT STATUS    CRAWL STATUS           
-------------------------------------------------------------------------------------------------------------------------------------
spitfire.blr.redhat.com    master        /rhs/bricks/brick0    falcon::slave         Active     N/A                  Changelog Crawl        
harrier.blr.redhat.com     master        /rhs/bricks/brick2    hornet::slave         Active     N/A                  Changelog Crawl        
typhoon.blr.redhat.com     master        /rhs/bricks/brick3    lightning::slave      Passive    N/A                  N/A                    
mustang.blr.redhat.com     master        /rhs/bricks/brick1    interceptor::slave    Passive    N/A                  N/A                    
[root@spitfire ]# echo $?
0
[root@spitfire ]# gluster v geo master falcon::slave1 status
No active geo-replication sessions between master and falcon::slave1
[root@spitfire ]# echo $?
0
[root@spitfire ]# gluster v geo master falcon::slave1 status detail
No active geo-replication sessions between master and falcon::slave1
[root@spitfire ]# echo $?
0


Expected results:
It should return with non-zero return code.

Additional info:

Comment 2 Aravinda VK 2015-11-25 08:49:43 UTC
Closing this bug since RHGS 2.1 release reached EOL. Required bugs are cloned to RHGS 3.1. Please re-open this issue if found again.

Comment 3 Aravinda VK 2015-11-25 08:51:22 UTC
Closing this bug since RHGS 2.1 release reached EOL. Required bugs are cloned to RHGS 3.1. Please re-open this issue if found again.


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