Bug 1445364

Summary: [gluster-block]:Gluster-block command doesn't errors out or gives message when the gluster-blockd service is not running on the node
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: surabhi <sbhaloth>
Component: gluster-blockAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED ERRATA QA Contact: surabhi <sbhaloth>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.2CC: amukherj, rhs-bugs
Target Milestone: ---   
Target Release: RHGS 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-block-0.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 04:17:54 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: 1417151    

Description surabhi 2017-04-25 14:27:06 UTC
Description of problem:
*******************************
When gluster-blockd service is not running on a system then if a gluster-block command is executed it doesn't errors out or give message about service not running.

systemctl status gluster-blockd
● gluster-blockd.service - Gluster block storage utility
   Loaded: loaded (/usr/lib/systemd/system/gluster-blockd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
[root@dhcp46-63 gluster-block]# gluster-block list blockstor




Version-Release number of selected component (if applicable):
rpm -qa | grep gluster-block
gluster-block-0.1.1-1.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Stop gluster-block service on any node 
2. execute gluster-block command e.g gluster-block list volname
3. Check the output

Actual results:
*************************
The command just runs and does not gives any output in form of error message.


Expected results:
**************************
The command should fail telling gluster-blockd service is not running.

Additional info:

Comment 2 Prasanna Kumar Kalever 2017-04-28 12:07:00 UTC
Merged on master branch: https://review.gluster.org/#/c/17120/

Comment 6 surabhi 2017-05-30 13:42:33 UTC
If gluster-blockd service is not running and executing any gluster-block command now fails with following message :

 gluster-block list blockstor
Connection failed. Please check if gluster-block daemon is operational.

Looks good to me. Marking the BZ verified.

gluster-block-0.2-3.el7rhgs.x86_64

Comment 8 errata-xmlrpc 2017-09-21 04:17:54 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://access.redhat.com/errata/RHEA-2017:2773