Bug 1477040 - ha count from Cli is not treated correctly in heketi block API
ha count from Cli is not treated correctly in heketi block API
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: CNS 3.6
Assigned To: Michael Adam
krishnaram Karthick
Depends On:
Blocks: 1445448
  Show dependency treegraph
Reported: 2017-08-01 02:17 EDT by Humble Chirammal
Modified: 2017-10-11 03:09 EDT (History)
5 users (show)

See Also:
Fixed In Version: heketi-5.0.0-7 rhgs-volmanager-docker-5.0.0-9
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-10-11 03:09:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Humble Chirammal 2017-08-01 02:17:58 EDT
Description of problem:
[root@master ~]# heketi-cli blockvolume create --size=1 ha=2
Name: blockvol_a6874e1c5d8467c2733b1a02b491e61e
Size: 1
Volume Id: a6874e1c5d8467c2733b1a02b491e61e
Cluster Id: c35f18bf77b5c8aaa8576d2c95e0ba8c
Hosts: []
IQN: iqn.2016-12.org.gluster-block:5edac56e-d4ab-471c-8e3b-42f3b110c01a
LUN: 0
Hacount: 4
Block Hosting Volume: 96d8648ebd2ff7dcb87be3a2587c6246

[root@master ~]# oc logs heketi-1-22x5g
Heketi 5.0.0
[heketi] INFO 2017/07/27 06:53:44 Loaded kubernetes executor
[heketi] INFO 2017/07/27 06:53:44 Block: Auto Create Block Hosting Volume set to true
[heketi] INFO 2017/07/27 06:53:44 Block: New Block Hosting Volume size 500 GB
[heketi] INFO 2017/07/27 06:53:44 Loaded simple allocator
[heketi] INFO 2017/07/27 06:53:44 GlusterFS Application Loaded
Listening on port 8080
[negroni] Started GET /queue/3f9ac0b3ecf8ea8c40715222a04b50bc
[negroni] Completed 200 OK in 106.279µs
[negroni] Started GET /queue/3f9ac0b3ecf8ea8c40715222a04b50bc
[negroni] Completed 200 OK in 66.721µs
[negroni] Started GET /queue/3f9ac0b3ecf8ea8c40715222a04b50bc
[negroni] Completed 200 OK in 60.938µs
[negroni] Started GET /queue/3f9ac0b3ecf8ea8c40715222a04b50bc
[negroni] Completed 200 OK in 73.064µs
[negroni] Started GET /queue/3f9ac0b3ecf8ea8c40715222a04b50bc
[negroni] Completed 200 OK in 65.684µs
[kubeexec] DEBUG 2017/08/01 06:08:04 /src/github.com/heketi/heketi/executors/kubeexec/kubeexec.go:250: Host: Pod: glusterfs-6qz73 Command: gluster-block create vol_96d8648ebd2ff7dcb87be3a2587c6246/blockvol_a6874e1c5d8467c2733b1a02b491e61e  ha 4 auth disable,,, 1G --json
Result: { "IQN": "iqn.2016-12.org.gluster-block:5edac56e-d4ab-471c-8e3b-42f3b110c01a", "PORTAL(S)": [ "", "", "", "" ], "RESULT": "SUCCESS" }
[heketi] INFO 2017/08/01 06:08:04 Created block volume a6874e1c5d8467c2733b1a02b491e61e
[asynchttp] INFO 2017/08/01 06:08:04 asynchttp.go:129: Completed job 3f9ac0b3ecf8ea8c40715222a04b50bc in 7.540742687s
[negroni] Started GET /queue/3f9ac0b3ecf8ea8c40715222a04b50bc
[negroni] Completed 303 See Other in 89.578µs
[negroni] Started GET /blockvolumes/a6874e1c5d8467c2733b1a02b491e61e
[negroni] Completed 200 OK in 4.80209ms
[root@master ~]# 

[root@master ~]# heketi-cli --version
heketi-cli 5.0.0

[root@master ~]# oc describe pod heketi-1-22x5g|grep -i image
    Image:		rhgs3/rhgs-volmanager-rhel7:3.3.0-8
    Image ID:		docker-pullable://brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhgs3/rhgs-volmanager-rhel7@sha256:bd486e30d983a7fcb8b6971fdebafb1131efc6732644002f3ebdadd11c8dd3de

[root@master ~]# rpm -qa |grep heketi
[root@master ~]# 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
Comment 6 krishnaram Karthick 2017-09-01 11:44:34 EDT
Verified in build - cns-deploy-5.0.0-25.el7rhgs.x86_64

heketi-cli blockvolume create --size=1 --ha=2
Name: blockvol_c2983973f7eb459866f11a8e0f7e8d99
Size: 1
Volume Id: c2983973f7eb459866f11a8e0f7e8d99
Cluster Id: ea35ff3047e4d31e6043072723a3a89b
Hosts: []
IQN: iqn.2016-12.org.gluster-block:c4ce133d-b361-4955-92e0-4471ac950f02
LUN: 0
Hacount: 2
Block Hosting Volume: 314b6b07b1e82a528a7bd1e2d2d00d20

[root@dhcp47-25 ~]# gluster-block info vol_314b6b07b1e82a528a7bd1e2d2d00d20/blockvol_c2983973f7eb459866f11a8e0f7e8d99
NAME: blockvol_c2983973f7eb459866f11a8e0f7e8d99
VOLUME: vol_314b6b07b1e82a528a7bd1e2d2d00d20
GBID: c4ce133d-b361-4955-92e0-4471ac950f02
SIZE: 1073741824
HA: 2

Moving the bug to verified.
Comment 7 errata-xmlrpc 2017-10-11 03:09:46 EDT
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.


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