Bug 1468952 - heketi block API dont respect "ha" count in the request
heketi block API dont respect "ha" count in the request
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi (Show other bugs)
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-10-11 03:07 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:
Last Closed: 2017-10-11 03:07:22 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-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):


How reproducible:

Steps to Reproduce:

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
  name: glusterblockip
provisioner: gluster.org/glusterblock
    resturl: ""
    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

Moving the bug to verified.
Comment 8 errata-xmlrpc 2017-10-11 03:07:22 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.