Bug 1468952 - heketi block API dont respect "ha" count in the request
heketi block API dont respect "ha" count in the request
Status: VERIFIED
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi (Show other bugs)
cns-3.6
Unspecified Unspecified
unspecified Severity unspecified
: ---
: CNS 3.6
Assigned To: Mohamed Ashiq
krishnaram Karthick
:
Depends On:
Blocks: 1445448
  Show dependency treegraph
 
Reported: 2017-07-10 00:53 EDT by Humble Chirammal
Modified: 2017-09-01 08:58 EDT (History)
6 users (show)

See Also:
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:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Humble Chirammal 2017-07-10 00:53:13 EDT
Description of problem:

If we create block volumes from dynamic provisioner and specify the hacount, it is not respected from block api level and will keep trying with all the nodes in the cluster.

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


heketi-5.0.0-4.el7rhgs.x86_6

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 7 krishnaram Karthick 2017-09-01 08:58:29 EDT
Verified the fix in build - cns-deploy-5.0.0-25.el7rhgs.x86_64

hacount in storageclass definition is honoured and blockdevices created has the correct HA count.

[root@dhcp46-68 ~]# cat class-ip.yaml 
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: glusterblockip
provisioner: gluster.org/glusterblock
parameters:
    resturl: "http://172.30.35.2:8080"
    restuser: "admin"
    restauthenabled: "false"
    #restsecretnamespace: "default"
    #restsecretname: "heketi-secret2"
    opmode: "heketi"
    hacount: "2"
    chapauthenabled: "true"


[root@dhcp47-25 ~]# gluster-block info vol_314b6b07b1e82a528a7bd1e2d2d00d20/blockvol_5f5c20e66dffd05885c1acc5f0b6673a
NAME: blockvol_5f5c20e66dffd05885c1acc5f0b6673a
VOLUME: vol_314b6b07b1e82a528a7bd1e2d2d00d20
GBID: 09a5970a-2355-4cfb-a639-3548903774ce
SIZE: 1073741824
HA: 2
PASSWORD: 6ce36e2e-f8c8-4001-bf01-6d00373067e0
BLOCK CONFIG NODE(S): 10.70.46.1 10.70.47.105

Moving the bug to verified.

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