Bug 1730019

Summary: Don't allow volume expansion or resize on volume with snapshots
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: ktenzer
Component: snapshotAssignee: Srijan Sivakumar <ssivakum>
Status: CLOSED DEFERRED QA Contact: Prasanth <pprakash>
Severity: medium Docs Contact:
Priority: low    
Version: ocs-3.11CC: aspandey, rhs-bugs, sabose, sasundar, sheggodu, ssivakum, sunkumar, vdas
Target Milestone: ---Keywords: CodeChange, FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-29 11:31:45 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 ktenzer 2019-07-15 15:22:46 UTC
Description of problem:
Create a snapshot of a volume and then grow the volume. It works. Yet this can cause instability and it is documented should never be done.


Version-Release number of selected component (if applicable):
OCS 3.11 but all versions of gluster I suppose


How reproducible:
100%

Steps to Reproduce:
1. create snapshot on volume
2. grow volume

Actual results:
It works


Expected results:
It should fail because we dont want a volume which has snapshots to be expanded or grown.


Additional info:

Comment 2 Patric Uebele 2019-07-19 09:42:04 UTC
As this is in the context of OCS, would heketi perhaps be the better component to address this?

Comment 3 Atin Mukherjee 2019-07-22 04:13:08 UTC
(In reply to Patric Uebele from comment #2)
> As this is in the context of OCS, would heketi perhaps be the better
> component to address this?

Even though this request has originated from OCS, but this is applicable for standalone RHGS too IMO and hence such extra validations should get added in core Gluster is what I believe.

Comment 5 ktenzer 2020-03-03 08:45:04 UTC
A warning message is better than nothing for sure.

Comment 6 Mohammed Rafi KC 2020-03-11 20:03:16 UTC
upsteam patch: https://review.gluster.org/#/c/glusterfs/+/24213/