Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1595535 - In a 4 node CNS cluster, need to pass 3 hosts from heketi for gluster-block cli when HA is 3, instead of all 4 IPs
In a 4 node CNS cluster, need to pass 3 hosts from heketi for gluster-block c...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi (Show other bugs)
cns-3.10
Unspecified Unspecified
unspecified Severity high
: ---
: CNS 3.10
Assigned To: Raghavendra Talur
Neha Berry
:
Depends On:
Blocks: 1568862
  Show dependency treegraph
 
Reported: 2018-06-27 01:37 EDT by Neha Berry
Modified: 2018-09-12 05:24 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, because of an off by one error, Heketi added one host more than ha count to the list of hosts provided to gluster-block cli during block volume create. This lead to the incorrect usage of one extra node. With this fix, the number of hosts used for iscsi targets is equal to ha count parameter.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-12 05:23:45 EDT
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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:2686 None None None 2018-09-12 05:24 EDT

  None (edit)
Comment 6 Raghavendra Talur 2018-07-09 08:49:21 EDT
hacount is optional. If heketi isn't provided one, it adds all the nodes in the cluster as a host.

However, if ha count is provided, heketi chooses hosts==hacount.

The problem in heketi today is that the selection of hosts is always a for loop over the same list, hence we lose out on distributing the targets across the cluster.
Comment 7 Raghavendra Talur 2018-07-09 09:03:11 EDT
From heketi code,

gluster-block create %v/%v  ha %v auth %v prealloc full %v %vGiB --json

So, heketi sends only as many hosts as in ha count. Is it possible that gluster-block creates target on 4th node as it belongs to the same trusted storage pool?
Comment 9 Raghavendra Talur 2018-07-09 22:30:58 EDT
This is a bug in heketi and I have a patch ready. Providing acks.
Comment 13 Raghavendra Talur 2018-07-12 05:32:42 EDT
Patch posted at https://github.com/heketi/heketi/pull/1256
Comment 14 Humble Chirammal 2018-07-13 02:34:47 EDT
Fixed in version : rhgs-volmanager-rhel7:3.3.1-20
Comment 17 Anjana 2018-08-30 19:56:01 EDT
Updated doc text in the Doc Text field. Please review for technical accuracy.
Comment 19 Anjana 2018-09-07 13:59:08 EDT
Thankyou John 

I have updated the doc text based on the feed back.
Comment 20 John Mulligan 2018-09-07 14:37:56 EDT
Doc Text looks OK
Comment 22 errata-xmlrpc 2018-09-12 05:23:45 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.

https://access.redhat.com/errata/RHEA-2018:2686

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