Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1162468 - cli command does not show anything when command times out
cli command does not show anything when command times out
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: core (Show other bugs)
3.0
Unspecified Unspecified
medium Severity medium
: ---
: RHGS 3.0.3
Assigned To: Atin Mukherjee
SATHEESARAN
: Patch, Triaged, ZStream
Depends On: 1161037
Blocks: 1162694
  Show dependency treegraph
 
Reported: 2014-11-11 01:53 EST by Atin Mukherjee
Modified: 2016-09-17 10:43 EDT (History)
7 users (show)

See Also:
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.
Story Points: ---
Clone Of: 1161037
Environment:
Last Closed: 2015-01-15 08:42:14 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0038 normal SHIPPED_LIVE Red Hat Storage 3.0 enhancement and bug fix update #3 2015-01-15 13:35:28 EST

  None (edit)
Description Atin Mukherjee 2014-11-11 01:53:42 EST
+++ 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@redhat.com)

--- 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@redhat.com)

--- 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@redhat.com) 
------
commit b3ce1bfeaab08cdf51cccd60d6d7047c692f73a9
Author: Atin Mukherjee <amukherj@redhat.com>
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@redhat.com>
    Reviewed-on: http://review.gluster.org/9017
    Tested-by: Gluster Build System <jenkins@build.gluster.com>
    Reviewed-by: Kaushal M <kaushal@redhat.com>
Comment 2 SATHEESARAN 2014-11-11 03:13:56 EST
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 03:21:34 EST
Downstream patch link : https://code.engineering.redhat.com/gerrit/36396
Comment 5 SATHEESARAN 2014-11-25 05:43:08 EST
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 06:41:48 EST
Atin,

Please review the edited doc text and sign-off.
Comment 7 Atin Mukherjee 2015-01-13 02:01:53 EST
Doc text looks okay to me, verified.
Comment 9 errata-xmlrpc 2015-01-15 08:42:14 EST
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.