Bug 1480123 - [RFE] set volume options via heketi-cli commands.
Summary: [RFE] set volume options via heketi-cli commands.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: cns-3.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: CNS 3.6
Assignee: Michael Adam
QA Contact: Prasanth
URL:
Whiteboard:
Depends On:
Blocks: 1445444 1482103
TreeView+ depends on / blocked
 
Reported: 2017-08-10 08:56 UTC by Humble Chirammal
Modified: 2018-11-21 09:40 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
With this update, gluster volume options can be set in Container-Native Storage (CNS) and Container-Ready Storage (CRS) using the heketi-cli. The 'gluster-volume-options' flag can be used to set volume options during volume creation.
Clone Of:
: 1482103 (view as bug list)
Environment:
Last Closed: 2017-10-11 07:09:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2879 0 normal SHIPPED_LIVE heketi bug fix and enhancement update 2017-10-11 11:07:06 UTC

Description Humble Chirammal 2017-08-10 08:56:18 UTC
Description of problem:

We have enabled the functionality to set *any*  volume option ( for eg# encryption options, sharding..etc) when we create GlusterFS volumes in CNS/CRS. This required some work in heketi and also in kubernetes.

The patch (https://github.com/heketi/heketi/pull/751) which enabled this functionality in heketi has been merged and available with CNS 3.6 heketi builds. 

The kubernetes support [1] was added  and  this feature has been exposed to kubernetes user via storage class parameter called 'volumeoptions'. However this is not available in OCP 3.6 provisioner builds.

If we can qualify this for volume options we currently do by getting into the pod, we will be able to update the doc for those sections. For ex: encryption for statically provisioned volumes. 


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Prasanth 2017-09-15 18:22:57 UTC
As mentioned earlier, the following 2 volumes options when given together while statically provisioning volumes, doesn't work for some reason. See below:

##########
#  heketi-cli volume create --size=100 --gluster-volume-options="client.ssl on","server.ssl on"
Error: Unable to execute command on glusterfs-2d0ls: volume start: vol_a6146d2a38ececd89096faf35b4042b6: failed: Commit failed on localhost. Please check log file for details.
##########

However, I did checked with a few other volume options that are not related to "encryption" and they seems to be working fine. 

*************
# heketi-cli volume create --size=100 --durability=none --gluster-volume-options="performance.rda-cache-limit 10MB","performance.nl-cache-positive-entry no"
Name: vol_daf2408e07e3d671f851cb4ff71b3783
Size: 100
Volume Id: daf2408e07e3d671f851cb4ff71b3783
Cluster Id: 16a6d9c045a4d5e9b967cf68000a04a8
Mount: 10.70.46.122:vol_daf2408e07e3d671f851cb4ff71b3783
Mount Options: backup-volfile-servers=10.70.46.134,10.70.46.9
Block: false
Free Size: 0
Block Volumes: []
Durability Type: none


# gluster vol info vol_daf2408e07e3d671f851cb4ff71b3783
 
Volume Name: vol_daf2408e07e3d671f851cb4ff71b3783
Type: Distribute
Volume ID: 2bd2d3db-e3c4-4789-9283-54c695fed70d
Status: Started
Snapshot Count: 0
Number of Bricks: 1
Transport-type: tcp
Bricks:
Brick1: 10.70.46.9:/var/lib/heketi/mounts/vg_bf6c95919c2f982e63ede30025ed7aee/brick_f37211ba31978c37f993cb970f48fe70/brick
Options Reconfigured:
performance.nl-cache-positive-entry: no
performance.rda-cache-limit: 10MB
transport.address-family: inet
nfs.disable: on
cluster.brick-multiplex: on
*************


#############
#  heketi-cli volume create --size=100 --gluster-volume-options="features.shard enable"
Name: vol_086bd53d6c3e6fa123baf2e40805c373
Size: 100
Volume Id: 086bd53d6c3e6fa123baf2e40805c373
Cluster Id: 16a6d9c045a4d5e9b967cf68000a04a8
Mount: 10.70.46.122:vol_086bd53d6c3e6fa123baf2e40805c373
Mount Options: backup-volfile-servers=10.70.46.134,10.70.46.9
Block: false
Free Size: 0
Block Volumes: []
Durability Type: replicate
Distributed+Replica: 3

# gluster vol info vol_086bd53d6c3e6fa123baf2e40805c373
 
Volume Name: vol_086bd53d6c3e6fa123baf2e40805c373
Type: Replicate
Volume ID: 9f5c15b9-6fd1-41b0-beb5-476dddf06290
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Bricks:
Brick1: 10.70.46.134:/var/lib/heketi/mounts/vg_b492c8d52df1951f172b646760170fcc/brick_f3333adcc58e1a65675ecd6a409996a3/brick
Brick2: 10.70.46.122:/var/lib/heketi/mounts/vg_b84f9572a9420fea886a1d4a9342f4b2/brick_34586acdc78b65626c08f83c21aa9f0f/brick
Brick3: 10.70.46.9:/var/lib/heketi/mounts/vg_7bb6bea56bad591e075f5b945deafd0f/brick_57ff666d6358ca96308c78b7a14ef711/brick
Options Reconfigured:
features.shard: enable
transport.address-family: inet
nfs.disable: on
cluster.brick-multiplex: on
#############

However, I believe the main intention of including this RFE for this release was to support setting "encryption" for statically provisioned volumes. So in that case, let me know how do you want to proceed further with this BZ?

Comment 5 Prasanth 2017-09-15 18:51:50 UTC
I had a discussion with Humble on the same and got to know that the command will work successfully *only* after enabling Management Encryption. So i'm clearing the needinfo on Humble as it works after doing the same!

However, the corresponding section of the doc also needs some modifications and we will be tracking it via: https://bugzilla.redhat.com/show_bug.cgi?id=1482103

Comment 6 Prasanth 2017-09-15 18:52:33 UTC
Moving this BZ to verified

Comment 8 Raghavendra Talur 2017-10-04 15:38:51 UTC
doc text looks good to me

Comment 9 errata-xmlrpc 2017-10-11 07:09:46 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, 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-2017:2879


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