Bug 1477040 - ha count from Cli is not treated correctly in heketi block API
Summary: ha count from Cli is not treated correctly in heketi block API
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
unspecified
Target Milestone: ---
: CNS 3.6
Assignee: Michael Adam
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1445448
TreeView+ depends on / blocked
 
Reported: 2017-08-01 06:17 UTC by Humble Chirammal
Modified: 2018-11-20 09:16 UTC (History)
6 users (show)

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:
Clone Of:
Environment:
Last Closed: 2017-10-11 07:09:46 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 Humble Chirammal 2017-08-01 06:17:58 UTC
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: [192.168.35.3 192.168.35.4 192.168.35.5 192.168.35.6]
IQN: iqn.2016-12.org.gluster-block:5edac56e-d4ab-471c-8e3b-42f3b110c01a
LUN: 0
Hacount: 4
Username: 
Password: 
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: 192.168.35.3 Pod: glusterfs-6qz73 Command: gluster-block create vol_96d8648ebd2ff7dcb87be3a2587c6246/blockvol_a6874e1c5d8467c2733b1a02b491e61e  ha 4 auth disable  192.168.35.3,192.168.35.4,192.168.35.5,192.168.35.6 1G --json
Result: { "IQN": "iqn.2016-12.org.gluster-block:5edac56e-d4ab-471c-8e3b-42f3b110c01a", "PORTAL(S)": [ "192.168.35.3:3260", "192.168.35.4:3260", "192.168.35.5:3260", "192.168.35.6:3260" ], "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
heketi-5.0.0-6.el7rhgs.x86_64
heketi-client-5.0.0-6.el7rhgs.x86_64
[root@master ~]# 



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 6 krishnaram Karthick 2017-09-01 15:44:34 UTC
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: [10.70.46.1 10.70.47.105]
IQN: iqn.2016-12.org.gluster-block:c4ce133d-b361-4955-92e0-4471ac950f02
LUN: 0
Hacount: 2
Username:
Password:
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
PASSWORD: 
BLOCK CONFIG NODE(S): 10.70.46.1 10.70.47.105

Moving the bug to verified.

Comment 7 errata-xmlrpc 2017-10-11 07:09:46 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.