Skip to content

Unable to shrink QCOW2 volumes #12297

@OlegChuev

Description

@OlegChuev

problem

A regression has been identified in the volume resizing logic introduced in ACS 4.20. Following the changes in PR #8755, specifically at this place, users are unable to shrink QCOW2 volumes in any state other than Allocated, unless StorPool storage is being used.

This change was introduced by the StorPool team in version 4.20 and affects the Volume Resize feature. As a result, ACS raises an error whenever a volume meets all of the following conditions:
• The volume state in ACS is not Allocated
• The volume type in ACS is QCOW2
• The storage pool in ACS is not StorPool
• A shrink operation (resizing to a smaller size) is attempted

Since we currently use LINSTOR as the storage provider with ACS, we are unable to shrink any QCOW2 volumes.

versions

4.20.2.0

The steps to reproduce the bug

  1. Have LINSTOR Storage provider
  2. Create a QCOW2 volume and assign it to the VM
  3. Try to resize volume with shrink enabled

What to do about it?

Allow any storage provider to shrink volumes

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions