Bug 1339527 - Heketi-cli: Error handling
Summary: Heketi-cli: Error handling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: RHGS Container Converged 1.0
Assignee: Humble Chirammal
QA Contact: Neha
URL:
Whiteboard:
Depends On:
Blocks: 1332128
TreeView+ depends on / blocked
 
Reported: 2016-05-25 09:09 UTC by Neha
Modified: 2016-08-15 02:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-04 04:50:44 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1498 0 normal SHIPPED_LIVE heketi update for Red Hat Gluster Storage 3.1 2016-08-04 08:49:19 UTC

Description Neha 2016-05-25 09:09:22 UTC
Description of problem:

Currently Heketi-cli doesn't provide proper error messages for most of the options

For example

heketi-cli volume create --name=testvol --size=10 --durability="replicate" --replica=2
Error: Process exited with: 1. Reason was: ()

Heketi-logs:

Err[Process exited with: 1. Reason was: ()]: Stdout []: Stderr [volume create: testvol: failed: Volume testvol already exists
]


Upstream issue:
https://github.com/heketi/heketi/issues/327

Comment 4 Luis Pabón 2016-06-06 20:33:14 UTC
Solved in Heketi 2.0.0+

Comment 5 Neha 2016-06-09 11:54:10 UTC
# heketi-cli volume create --size=10
Error: Unable to execute command on glusterfs-glusterfs-2-1-dbksi: volume create: vol_62726d510ad0a4582381c59f658b9943: failed: Host 10.70.42.182 not connected


# heketi-cli volume create --size=10
Error: Unable to execute command on glusterfs-glusterfs-1-1-k2c7y: 

# heketi-cli volume create --size=10
Error: Unable to execute command on glusterfs-glusterfs-1-1-k2c7y: volume create: vol_04c2c93ed88c7521b30614663637f990: failed: Staging failed on 10.70.43.237. Error: Brick: 10.70.43.237:/var/lib/heketi/mounts/vg_7eb7e823b1d2fad6ef11e6fe32688f99/brick_0928b1105462723c467d8e47578bd88b/brick not available. Brick may be containing or be contained by an existing brick

Verified with few scenarios when node/service is not up. Moving it to verified.

Comment 7 errata-xmlrpc 2016-08-04 04:50:44 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-2016-1498.html


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