Bug 1443963 - [RFE] Expose API to reduce a volume
Summary: [RFE] Expose API to reduce a volume
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.1.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.5
: 4.2.5.1
Assignee: Daniel Erez
QA Contact: Shir Fishbain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-20 10:57 UTC by Allon Mureinik
Modified: 2020-11-14 04:44 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.2.5.1
Doc Type: Enhancement
Doc Text:
Feature: Added 'reduce' action on disk in the API: POST /ovirt-engine/api/disks/cc9ce0d3-f651-4d86-94e6-0e4e5cfde3ce/reduce Reduces the size of the specified disk image. The action invokes 'lvreduce' on the logical volume (i.e. this is only applicable for block storage domains). This is applicable for floating disks and disks attached to non-running virtual machines. There is no need to specify the size as the optimal size is calculated automatically.
Clone Of:
Environment:
Last Closed: 2018-07-31 15:30:01 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2?
ebenahar: testing_plan_complete+
rule-engine: planning_ack?
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 91103 0 master MERGED Added Reduce action to Disk services 2020-12-22 11:31:48 UTC
oVirt gerrit 91104 0 master MERGED core: expose ReduceImageCommand to clients 2020-12-22 11:31:16 UTC
oVirt gerrit 91105 0 master MERGED restapi: exposed ReduceImage action 2020-12-22 11:31:16 UTC
oVirt gerrit 92494 0 master MERGED restapi: Update to model 4.3.12 2020-12-22 11:31:16 UTC
oVirt gerrit 92561 0 master MERGED reduce disk available since 4.2.5 2020-12-22 11:31:16 UTC
oVirt gerrit 92562 0 model_4.2 MERGED Added Reduce action to Disk services 2020-12-22 11:31:17 UTC
oVirt gerrit 92563 0 ovirt-engine-4.2 MERGED restapi: exposed ReduceImage action 2020-12-22 11:31:49 UTC
oVirt gerrit 92564 0 ovirt-engine-4.2 MERGED core: expose ReduceImageCommand to clients 2020-12-22 11:31:15 UTC
oVirt gerrit 92595 0 ovirt-engine-4.2 MERGED restapi: Update to model 4.2.34 2020-12-22 11:31:49 UTC
oVirt gerrit 111541 0 master MERGED core: Forbid Disk.reduce() for active image 2020-12-22 11:31:16 UTC

Description Allon Mureinik 2017-04-20 10:57:41 UTC
Description of problem:
Prior to oVirt 4.1.2, reducing the target volume of a merge operation was either not done (for older 4.1 DCs), or done inefficiently (for 4.0 and below DCs, see, e.g., bug 1443147).

It may be useful to expose an API to reduce pre-existing volumes that are over-extended.

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

Comment 2 Allon Mureinik 2018-04-03 13:02:27 UTC
This is an enabler for the virt-v2v support for qcow2 in RHV. 
Moving back to 4.3, and if we need to push things out based on capacity, we need to pick others.

Comment 5 Shir Fishbain 2018-07-10 08:13:13 UTC
Is the reduce volume available through the UI?

Comment 6 Daniel Erez 2018-07-16 06:45:54 UTC
(In reply to Shir Fishbain from comment #5)
> Is the reduce volume available through the UI?

No, it can't be invoked manually from the UI. It's invoked either in live merge flow, or using the rest-api.

Comment 7 Shir Fishbain 2018-07-24 14:56:19 UTC
Tested basic feature functionality:
- Called reduce volume for floating and attached to VM disks 
- Verified that reduceVolume was called on vdsm.

Comment 8 Sandro Bonazzola 2018-07-31 15:30:01 UTC
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.5 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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