glusterFS_native_driver: share size may be misleading

Bug #1488356 reported by karthick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Won't Fix
Medium
Unassigned

Bug Description

Description of the problem:

GlusterFS native driver for manila with Kilo release allows user to create share of specified size. The driver chooses a gluster volume with nearest possible size and creates a share on the volume. ie., if user requests for a 100G share and back end gluster has a 200G, 250G, 500G volumes, driver chooses 200G volume to create share.

This results in user getting a 200G share when he/she has requested a 100G share. Quota has to be implemented to restrict the user to use only 100G

How reproducible:
Always

Steps to Reproduce:

1) setup and configure a RHGS 3.1 gluster cluster and create a 200G volume
2) Configure RHEL OSP 7 Manila with 'glusterfs_native' as the share driver
3) Create a manila share with size 100G using 'glusterfs_native' driver
4) Mount the share on nova VM
5) Verify if the size is 100G -- size of mount is 200G and user is allowed to use the complete 200G

Suggested fix:

Enforce quota (as done here https://github.com/openstack/manila/commit/b6675d96f1f9b0d97a0b2583150709b680fbbcf5#diff-3f89b432cd0843984ed218b03290d68eR154 ) on the volume picked to serve as a share, and hence allow the user to only utilize as much space as was
specified during share creation.

Tags: driver gluster
tags: added: driver glusterfs
Csaba Henk (chenk)
tags: added: liberty-rc-potential
Changed in manila:
importance: Undecided → Medium
status: New → Triaged
Ramana Raja (rraja)
Changed in manila:
assignee: nobody → Ramana Raja (rraja)
Revision history for this message
Ramana Raja (rraja) wrote :

karthick, I've added a suggested fix section that was missing in your bug description section.

description: updated
Ramana Raja (rraja)
Changed in manila:
status: Triaged → In Progress
tags: added: liberty-backport-potential
removed: liberty-rc-potential
Tom Barron (tpb)
tags: added: gluster
removed: glusterfs liberty-backport-potential
Revision history for this message
Jason Grosso (jgrosso) wrote :

Hi Ramana are you still working this bug?

Revision history for this message
Ramana Raja (rraja) wrote :

Hi Jason! I'm not working on this bug.

Jason Grosso (jgrosso)
Changed in manila:
assignee: Ramana Raja (rraja) → nobody
Jason Grosso (jgrosso)
Changed in manila:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.