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
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
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