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:
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.
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