Bug 1162468 - cli command does not show anything when command times out
Summary: cli command does not show anything when command times out
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: core
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: RHGS 3.0.3
Assignee: Atin Mukherjee
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On: 1161037
Blocks: 1162694
TreeView+ depends on / blocked
 
Reported: 2014-11-11 06:53 UTC by Atin Mukherjee
Modified: 2016-09-17 14:43 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.6.0.33-1
Doc Type: Bug Fix
Doc Text:
Previously, no error message was displayed if a CLI command was timed out. With this fix, code is added to display error message if the CLI command is timed out.
Clone Of: 1161037
Environment:
Last Closed: 2015-01-15 13:42:14 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0038 0 normal SHIPPED_LIVE Red Hat Storage 3.0 enhancement and bug fix update #3 2015-01-15 18:35:28 UTC

Description Atin Mukherjee 2014-11-11 06:53:42 UTC
+++ This bug was initially created as a clone of Bug #1161037 +++

Description of problem:
In case of command gets timed out, cli doesn't throw any error message

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

How reproducible:
Everytime

Steps to Reproduce:
1. Run a gluster cli command
2. Ensure it times out after 120 seconds

Actual results:
No message is shown

Expected results:
time out message should be displayed

Additional info:

--- Additional comment from Anand Avati on 2014-11-06 04:11:01 EST ---

REVIEW: http://review.gluster.org/9017 (cli: for rpc timeout throw a time out message) posted (#6) for review on master by Atin Mukherjee (amukherj)

--- Additional comment from Anand Avati on 2014-11-07 03:58:51 EST ---

REVIEW: http://review.gluster.org/9017 (cli: for rpc timeout throw a time out message) posted (#7) for review on master by Atin Mukherjee (amukherj)

--- Additional comment from Anand Avati on 2014-11-11 01:43:36 EST ---

COMMIT: http://review.gluster.org/9017 committed in master by Kaushal M (kaushal) 
------
commit b3ce1bfeaab08cdf51cccd60d6d7047c692f73a9
Author: Atin Mukherjee <amukherj>
Date:   Fri Oct 31 06:52:39 2014 +0530

    cli: for rpc timeout throw a time out message
    
    Change-Id: I9660df1c3b2707583bd95806011b650cd1a2df1b
    BUG: 1161037
    Signed-off-by: Atin Mukherjee <amukherj>
    Reviewed-on: http://review.gluster.org/9017
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Kaushal M <kaushal>

Comment 2 SATHEESARAN 2014-11-11 08:13:56 UTC
As discussed with Scrum Team, this bug could be verified for RHS 3.0.3 timeline.
Providing qa-ack

Comment 3 Atin Mukherjee 2014-11-11 08:21:34 UTC
Downstream patch link : https://code.engineering.redhat.com/gerrit/36396

Comment 5 SATHEESARAN 2014-11-25 10:43:08 UTC
Verified the same with glusterfs-3.4.0.33-1.el6rhs

Simulated the cli-timeout by blocking glusterd using gdb and also using iptables mechanisms

Performed 2 tests,
Test-1
1. In a 2 node cluster, gdb-ed in to one of the glusterd process
(i.e) gdb -p `pidof glusterd`

2. From the other node in the cluster, executed 'gluster volume status'

Observation: cli timedout error message was thrown

Test-2
1. In a 2 node cluster, simulated network disconnection using iptables and immediately issued 'gluster volume status' command

Observation: After cli timesout, corresponding error message was thrown on the console.

Error messages as seen on the console
---------------------------------------
[root@dhcp37-44 ~]# gluster v status
Error : Request timed out
[root@dhcp37-44 ~]# echo $?
1

Marking this bug as verified.

Comment 6 Divya 2015-01-08 11:41:48 UTC
Atin,

Please review the edited doc text and sign-off.

Comment 7 Atin Mukherjee 2015-01-13 07:01:53 UTC
Doc text looks okay to me, verified.

Comment 9 errata-xmlrpc 2015-01-15 13:42:14 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/RHBA-2015-0038.html


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