Handle revert share to snapshot size difference
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Triaged
|
Undecided
|
kiran pawar |
Bug Description
problem
=======
Revert share to snapshot changes the size of the volume to the size it had when the snapshot was taken.
How to reproduce
================
1. Create share
2. Create snapshot from share
3. Shrink share
4. Revert share to snapshot
5. Check size on filer vs size in manila
e.g share of 10GB and reduced to 5GB by shrink operation. When revert share to snapshot is triggered, the backend driver makes share of 10GB again. But Manila share size still remains 5GB. This will be quota mismatch.
Solution (either 1 or 2)
========
1. Do not allow revert share to snapshot if there is mismatch of size between them.
2. If Share size is changed from snapshot, perform shrink/extend operation which internally handle quota management. After success of shrink/extend when size of both share and snapshot will be same, perform revert share to snapshot.
Changed in manila: | |
status: | New → Triaged |
@gouthamr WDYT ?