Bug 1161424

Summary: [RFE] snapshot configuration should have help option.
Product: [Community] GlusterFS Reporter: Darshan <dnarayan>
Component: snapshotAssignee: bugs <bugs>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bugs, kaushal, ndevos, rkavunga, smohan
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1245080 (view as bug list) Environment:
Last Closed: 2018-10-16 05:41:24 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:
Bug Depends On:    
Bug Blocks: 1245080    

Description Darshan 2014-11-07 05:51:17 UTC
Description of problem:
        snapshot config should have a help option which would give details like default value for an attribute, possible values for an attribute, description of the attribute, whether its configurable at system leval or volume leval. some thing similar to "gluster volume set help".

     ovirt can use this help option to decide whether an attribute is configurable at system or volume leval. And console can provide a list from which user can choose possible values for an attribute.

     Its better to get the information related to attributes from gluster than store this info in ovirt engine. As storing this info may lead to inconsistency if anything changes in gluster.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
  --xml option would be needed for the command.

Comment 1 Avra Sengupta 2015-08-19 09:17:03 UTC
Can you check "man gluster" and see if the snapshot config section meets your needs

Comment 2 Darshan 2015-08-19 09:46:02 UTC
It has all the info needed but not in a consumable form. We would need the info to be in a more structured form so that it is consumable by code.

Eg:

Option: auto-delete
Default Value: enabled
Description: When auto-delete feature is enabled, then upon reaching the soft-limit, with every successful snapshot creation, the oldest snapshot will be deleted.
Option Type: global

Option: snap-max-soft-limit
   '
   '
   ' 
 so-on

Providing an --xml option would be more helpful.

  Thus whenever we provide the snapshot config options to end users in UI we will refer this command's output, and thus it will be consistent with glusterfs. Even if some default is changed or a new config option is added, it will not effect the end user.

Comment 3 Niels de Vos 2016-02-23 12:18:04 UTC
There is a relatively new "gluster volume get ...." command. Does this provide the functionality that you need?

Comment 4 Mohammed Rafi KC 2018-10-16 05:41:24 UTC
This will be fixed in glusterd2. Since needinfo has not cleared for quite some time, closing this issue.

Comment 5 Red Hat Bugzilla 2023-09-14 02:50:23 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days