Bug 1655066 - [RFE] volume info through heketi needs to be more clear with details like replicate,distribute etc
Summary: [RFE] volume info through heketi needs to be more clear with details like rep...
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: John Mulligan
QA Contact: Prasanth
Depends On:
TreeView+ depends on / blocked
Reported: 2018-11-30 13:02 UTC by Nag Pavan Chilakam
Modified: 2019-11-08 19:16 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-11-08 19:16:32 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Nag Pavan Chilakam 2018-11-30 13:02:31 UTC
Description of problem:

volume info from heketi presents data to admin which is not clear.
Eg: whether a volume is only replica(1x3) or distributed replica(nx3), it displays as distribute+replica=3

In below case a 8x3 volume was created, yet heketi displays details as below

[root@dhcp35-72 heketi]# heketi-cli volume info  462fdf4357dc8678322208f65afbc280  
Name: basevol
Size: 40
Volume Id: 462fdf4357dc8678322208f65afbc280
Cluster Id: 6c77b0471fd950d36e1f0b35fe46f96a
Mount Options: backup-volfile-servers=,,,,
Block: false
Free Size: 0
Reserved Size: 0
Block Hosting Restriction: (none)
Block Volumes: []
Durability Type: replicate 
Distributed+Replica: 3  ====>it should show as 8x3 (even change "Distributed+Replica" string to "DistributedxReplica")

No where we get the details of whether the volume is distributed replicate or not.

While it may not be very useful in most of the cases(hence the severity is low), atleast the admin gets a fair idea on the actual configuration

Version-Release number of selected component (if applicable):
heketi 8

Comment 2 Raghavendra Talur 2019-01-24 20:36:01 UTC
John and I discussed this. We do have the durability type in Volumeinfo API, we also have the brick list. Using both we can show a better description of volume as requested.

Comment 4 Michael Adam 2019-02-05 14:19:54 UTC
Agreed fix is available as PR upstream and will be merged soon.
Trivial to verify.
Proposing for 3.11.2

Comment 8 Yaniv Kaul 2019-08-08 10:42:18 UTC
Will it get into 3.11.4?

Comment 9 John Mulligan 2019-08-08 13:18:22 UTC
I think so, yes. It's part of heketi v9 which we're rebasing to in OCS 3.11.4.

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