Bug 1226776

Summary: [RFE] volume capability query
Product: [Community] GlusterFS Reporter: Csaba Henk <csaba>
Component: coreAssignee: bugs <bugs>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: mainlineCC: bugs, pasik, vbellur
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-19 05:20:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Csaba Henk 2015-06-01 05:31:30 UTC
Description of problem:

We need an interface, exposed through cli and gfapi, that allows the requestor to get information about the capabilities of a volume. What a capability is not defined here exactly, however, we mean high-level (user centric) properties (beyond the technical parameters that can be interacted with through "volume info / set"). The information given should be something like a scalar valued dictionary, self-contained and human friendly (ie. a user should be able to make sense of it without anything but basic familiarity of GlusterFS). 

The attainment of a capability on behalf of a volume depends on three factors:
- GlusterFS version (support of a feature at source level)
- GlusterFS build/deployment (support of a feature in the binary)
- particularities of the volume.

So for example take snapshot support: AFAIK only thin provisioned lv volumes support snapshot, therefore snapshot support is a per-volume property.

Currently we have in mind as possible capabilites (shown here just to give a taste of the idea, not meaning we'd need these in this exact form - also note that of some of these refer to features that are still just RFEs):

- volume snapshot
- volume snapshot clone
- directory snapshot
- directory snapshot clone
- cert based auth
- cert based auth for directories
- thin provisioned

Upon implementing this RFE a broad scan of capability candidates should be executed.

Comment 1 Soumya Koduri 2015-06-02 12:45:07 UTC
probably a good candidate to have a discussion in gluster-devel.

Comment 2 Vijay Bellur 2018-11-19 05:43:30 UTC
Migrated to github:

https://github.com/gluster/glusterfs/issues/564

Please follow the github issue for further updates on this bug.