Bug 1524457 - check for same hostnames(bricks from same host/node) while adding bricks in erasure (ec) ie disperse volumes and error out accordingly(use force to over-ride)
Summary: check for same hostnames(bricks from same host/node) while adding bricks in e...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: disperse
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: RHGS 3.5.z Batch Update 3
Assignee: Sheetal Pamecha
QA Contact: Pranav Prakash
URL:
Whiteboard:
Depends On:
Blocks: 1774379
TreeView+ depends on / blocked
 
Reported: 2017-12-11 14:51 UTC by Nag Pavan Chilakam
Modified: 2020-12-17 04:50 UTC (History)
8 users (show)

Fixed In Version: glusterfs-6.0-38
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1774379 (view as bug list)
Environment:
Last Closed: 2020-12-17 04:50:16 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:5603 0 None None None 2020-12-17 04:50:42 UTC

Description Nag Pavan Chilakam 2017-12-11 14:51:01 UTC
Description of problem:
=====================
the ideal way of configuring ec volumes is to have all bricks in different nodes(no 2 bricks of same dht-subvol must be on same node)
that is why when we create an ec volume and we use same hostname for 2 bricks of same dht-subvol, it fails saying it is not optimal
user must use force to over-ride this behavior, which is perfect.

However the same check is not made when we do an add-brick


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

How reproducible:
====
always

Steps to Reproduce:
1.create a 4+2 ec vol on 6 node setup
2. now add a new subvol of 6 bricks such that 2 bricks are hosted by n1 , 2 by n2 and 2 by n3


Actual results:
add brick passes without any warns/errors

Expected results:
=========
must fail and throw a error saying this is not optimal setup and user must use force

Comment 5 Sheetal Pamecha 2020-01-02 06:50:11 UTC
REVIEW: https://review.gluster.org/23729 (glusterd: check for same node while adding bricks in disperse volume) posted (#4) for review on master by Sheetal Pamecha

Comment 12 errata-xmlrpc 2020-12-17 04:50:16 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 (glusterfs bug fix and enhancement update), 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/RHBA-2020:5603


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