Bug 1468994
| Summary: | heketi-cli blockvolume doesn't have "ha" option | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | krishnaram Karthick <kramdoss> |
| Component: | heketi | Assignee: | Mohamed Ashiq <mliyazud> |
| Status: | CLOSED ERRATA | QA Contact: | krishnaram Karthick <kramdoss> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | cns-3.6 | CC: | hchiramm, madam, mliyazud, pprakash, rhs-bugs, storage-qa-internal, vinug |
| Target Milestone: | --- | ||
| Target Release: | CNS 3.6 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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: | 2017-10-11 07:07:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1445448 | ||
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 |
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