Bug 1468952 - heketi block API dont respect "ha" count in the request
Summary: heketi block API dont respect "ha" count in the request
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: Mohamed Ashiq
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1445448
TreeView+ depends on / blocked
 
Reported: 2017-07-10 04:53 UTC by Humble Chirammal
Modified: 2018-11-20 09:18 UTC (History)
7 users (show)

Fixed In Version: heketi-5.0.0-6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-11 07:07:22 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-07-10 04:53:13 UTC
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 12:58:29 UTC
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.

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