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
Solved in Heketi 2.0.0+
# 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.
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