Bug 1468994 - heketi-cli blockvolume doesn't have "ha" option
Summary: heketi-cli blockvolume doesn't have "ha" option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: cns-3.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: CNS 3.6
Assignee: Mohamed Ashiq
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1445448
TreeView+ depends on / blocked
 
Reported: 2017-07-10 08:15 UTC by krishnaram Karthick
Modified: 2018-11-20 06:18 UTC (History)
7 users (show)

Fixed In Version: heketi-5.0.0-6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-11 07:07:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2879 0 normal SHIPPED_LIVE heketi bug fix and enhancement update 2017-10-11 11:07:06 UTC

Description krishnaram Karthick 2017-07-10 08:15:51 UTC
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 09:03:37 UTC
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

Comment 11 errata-xmlrpc 2017-10-11 07:07:22 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:2879


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