Bug 1406655

Summary: reduce the min-vol size restriction to a lower value
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: krishnaram Karthick <kramdoss>
Component: heketiAssignee: Mohamed Ashiq <mliyazud>
Status: CLOSED ERRATA QA Contact: krishnaram Karthick <kramdoss>
Severity: high Docs Contact:
Priority: unspecified    
Version: cns-3.4CC: bmohanra, hchiramm, madam, mliyazud, pprakash, rcyriac, rhs-bugs, rtalur, ssaha, storage-qa-internal, vinug
Target Milestone: ---   
Target Release: CNS 3.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: heketi-3.1.0-10 Doc Type: Enhancement
Doc Text:
Previously, Heketi used 4GB as the default minimum brick size which caused the minimum volume size also to be 4GB. With this release, the minimum brick size is 1GB and volumes as small as 1GB can be created.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 21:58:15 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: 1385247    

Description krishnaram Karthick 2016-12-21 07:14:07 UTC
Description of problem:
Heketi currently has a minimum volume size restriction of 3.5 GB, which is quite high. we have seen cases where customer setups use 1GB volumes for pods. CNS won't be able to cater the needs of such cases unless the size of the volume is reduced to a lower value from the current one. Hence, this min vol size restriction should be reduced to at least 1Gb from 3.5GB.

Version-Release number of selected component (if applicable):
heketi-3.1.0-3.el7rhgs.x86_64

How reproducible:
NA

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Mohamed Ashiq 2016-12-21 13:14:50 UTC
Patch upstream:
https://github.com/heketi/heketi/pull/638

Comment 4 Michael Adam 2016-12-23 00:46:35 UTC
Updated PR: https://github.com/heketi/heketi/pull/642

Comment 5 krishnaram Karthick 2016-12-26 14:17:23 UTC
verified the bug in heketi-client-3.1.0-10.el7rhgs.x86_64. heketi now allows creation of 1Gb volumes.

# cat claim1 
{
  "kind": "PersistentVolumeClaim",
  "apiVersion": "v1",
  "metadata": {
    "name": "claim1",
    "annotations": {
        "volume.beta.kubernetes.io/storage-class": "slow"
    }
  },
  "spec": {
    "accessModes": [
      "ReadWriteOnce"
    ],
    "resources": {
      "requests": {
        "storage": "1Gi"
      }
    }
  }
}


# oc get pvc
NAME      STATUS    VOLUME                                     CAPACITY   ACCESSMODES   AGE
claim1    Bound     pvc-ad2bc6e3-cb75-11e6-bdc3-005056b37454   1Gi        RWO           11s

Moving the bug to verified.

Comment 6 errata-xmlrpc 2017-01-18 21:58:15 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://rhn.redhat.com/errata/RHEA-2017-0148.html