Bug 2081559 - [RFE] discrepancy tool should detect preallocated cow images that were reduced
Summary: [RFE] discrepancy tool should detect preallocated cow images that were reduced
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhv-log-collector-analyzer
Version: 4.4.10
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.5.1
: 4.5.1
Assignee: Germano Veit Michel
QA Contact: Barbora Dolezalova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-04 00:51 UTC by Germano Veit Michel
Modified: 2022-07-14 12:54 UTC (History)
3 users (show)

Fixed In Version: rhv-log-collector-analyzer-1.0.14-1.el8ev
Doc Type: Enhancement
Doc Text:
The rhv-log-collector-analyzer discrepancy tool now detects preallocated QCOW2 images that have been reduced.
Clone Of:
Environment:
Last Closed: 2022-07-14 12:54:34 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-45932 0 None None None 2022-05-04 00:55:58 UTC
Red Hat Product Errata RHSA-2022:5555 0 None None None 2022-07-14 12:54:40 UTC

Description Germano Veit Michel 2022-05-04 00:51:37 UTC
This is to track an improvement to be able to detect BZ2081493.

We want to highlight this case:
* the volume size in the storage is lower than the capacity
* the volume is QCOW2 (optional?)
* the volume is preallocated

So that the tool will complain on disks that are supposed to be preallocated but are not.

Comment 3 Germano Veit Michel 2022-05-13 00:41:03 UTC
For QE:

1. Create a VM, with no disks
2. Virtual Machines -> VM -> Disks -> New
   Set the disk to preallocated and enable incremental:
     Allocation Policy: PREALLOCATED
     [x] Enable Incremental Backup
     Size: 100G
3. Click OK
5. Create a snapshot of the VM
6. Delete that snapshot.

While using an engine/vdsm without fix for BZ 2081493, the tool should print this message for the disk created in step 2.

$ rhv-image-discrepancies 
~~~
Image image_guid size on the storage(1073741824) is smaller than capacity(107374182400), but type is preallocated
~~~

Comment 7 Barbora Dolezalova 2022-06-13 12:14:58 UTC
I followed the steps and the tool printed the message:
Image image_guid size on the storage(200704) is smaller than capacity(107374182400), but type is preallocated.

Verified in rhv-log-collector-analyzer-1.0.14-1.el8ev.noarch, ovirt-engine-4.5.1-0.62.el8ev.noarch

Comment 12 errata-xmlrpc 2022-07-14 12:54:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2022:5555


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