Bug 1468994 - heketi-cli blockvolume doesn't have "ha" option
heketi-cli blockvolume doesn't have "ha" option
Status: VERIFIED
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi (Show other bugs)
cns-3.6
Unspecified Unspecified
unspecified Severity medium
: ---
: CNS 3.6
Assigned To: Mohamed Ashiq
krishnaram Karthick
:
Depends On:
Blocks: 1445448
  Show dependency treegraph
 
Reported: 2017-07-10 04:15 EDT by krishnaram Karthick
Modified: 2017-08-16 05:03 EDT (History)
6 users (show)

See Also:
Fixed In Version: heketi-5.0.0-6
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
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)

  None (edit)
Description krishnaram Karthick 2017-07-10 04:15:51 EDT
Description of problem:

heketi-cli blockvolume should have "ha" & "auth" options. cli option for "ha" and "auth" has to be provided.

heketi-cli blockvolume --help
Heketi Volume Management

Usage:
  heketi-cli blockvolume [command]

Available Commands:
  create      Create a GlusterFS block volume
  delete      Deletes the volume
  info        Retreives information about the volume
  list        Lists the volumes managed by Heketi

Flags:
  -h, --help   help for blockvolume

Global Flags:
      --json            
        Print response as JSON
      --secret string   
        Secret key for specified user.  Can also be
        set using the environment variable HEKETI_CLI_KEY
  -s, --server string   
        Heketi server. Can also be set using the
        environment variable HEKETI_CLI_SERVER (the default one is http://localhost:8080)
      --user string     
        Heketi user.  Can also be set using the
        environment variable HEKETI_CLI_USER

Use "heketi-cli blockvolume [command] --help" for more information about a command.


Version-Release number of selected component (if applicable):
heketi-client-5.0.0-4.el7rhgs.x86_64

How reproducible:
always
Comment 10 krishnaram Karthick 2017-08-16 05:03:37 EDT
Verified in cns-deploy-5.0.0-15.el7rhgs.x86_64

HA option is now available in heketi-cli

Use "heketi-cli blockvolume [command] --help" for more information about a command.
[root@dhcp47-10 ~]# heketi-cli blockvolume create -h
Create a GlusterFS block volume

Usage:
  heketi-cli blockvolume create [flags]

Examples:
  * Create a 100GB block volume
      $ heketi-cli blockvolume create --size=100

  * Create a 100GB block volume specifying two specific clusters:
      $ heketi-cli blockvolume create --size=100 \
        --clusters=0995098e1284ddccb46c7752d142c832,60d46d518074b13a04ce1022c8c7193c

  * Create a 100GB block volume requesting ha count to be 2.
    (Otherwise HA count is all the nodes on which block hosting volume reside.):
          $ heketi-cli blockvolume create --size=100 --ha=2

  * Create a 100GB block volume specifying two specific clusters auth enabled:
      $ heketi-cli blockvolume create --size=100 --auth \
        --clusters=0995098e1284ddccb46c7752d142c832,60d46d518074b13a04ce1022c8c7193c


Flags:
      --auth              
        Optional: Enable Authentication for block volume access
      --clusters string   
        Optional: Comma separated list of cluster ids where this volume
        must be allocated. If omitted, Heketi will allocate the volume
        on any of the configured clusters which have the available space.
        Providing a set of clusters will ensure Heketi allocates storage
        for this volume only in the clusters specified.
      --ha int            
        HA count for block volume
  -h, --help              help for create
      --name string       
        Optional: Name of volume. Only set if really necessary
      --size int          
        Size of volume in GB (default -1)


[root@dhcp47-10 ~]# heketi-cli blockvolume info 09086c0d7797120ef988f0615be846ef
Name: blockvol_09086c0d7797120ef988f0615be846ef
Size: 5
Volume Id: 09086c0d7797120ef988f0615be846ef
Cluster Id: e83f4284a83d153168a998a05fcecc9b
Hosts: [10.70.46.248 10.70.47.49 10.70.47.72]
IQN: iqn.2016-12.org.gluster-block:5d0a0d4b-9035-4b71-8270-07c4acc60e9a
LUN: 0
Hacount: 3
Username: 5d0a0d4b-9035-4b71-8270-07c4acc60e9a
Password: d6bef9c5-fbcc-430c-9425-0034ecf5aa36
Block Hosting Volume: e13fd33c564cd64cd7d7849ccdf1d704

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