Bug 2037115 - rhv-image-discrepancies (rhv-log-collector-analyzer-1.0.11-1.el8ev) tool continues flags OVF_STORE volumes.
Summary: rhv-image-discrepancies (rhv-log-collector-analyzer-1.0.11-1.el8ev) tool cont...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhv-log-collector-analyzer
Version: 4.4.9
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Germano Veit Michel
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks: 2051857
TreeView+ depends on / blocked
 
Reported: 2022-01-04 23:37 UTC by Bimal Chollera
Modified: 2022-07-20 09:16 UTC (History)
3 users (show)

Fixed In Version: rhv-log-collector-analyzer-1.0.13-1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-26 16:23:26 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-44420 0 None None None 2022-01-04 23:41:52 UTC
Red Hat Knowledge Base (Solution) 6622161 0 None None None 2022-01-04 23:57:48 UTC
Red Hat Product Errata RHSA-2022:4711 0 None None None 2022-05-26 16:23:39 UTC

Description Bimal Chollera 2022-01-04 23:37:49 UTC
Description of problem:

rhv-image-discrepancies tool that is provided from rhv-log-collector-analyzer-1.0.11-1.el8ev.noarch package reports OVF_STORE volumes as problems.

The problem appears due to OVFs created in 4.1 and lower will keep disktype=2.

~~~
DESCRIPTION={"Updated":true,"Size":1354752,"Last Updated":"Mon Sep 06 11:30:22 CEST 2021","Storage Domains":[{"uuid":"bdbcae9c-59af-4fa3-859a-5ad30fe9c085"}],"Disk Description":"OVF_STORE"}
DISKTYPE=2
~~~

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

ovirt-engine-4.4.9.5-0.1.el8ev.noarch                       Wed Dec 22 15:29:33 2021
rhv-log-collector-analyzer-1.0.11-1.el8ev.noarch            Wed Dec 22 15:37:04 2021

How reproducible:


Steps to Reproduce:
1.   
2.
3.

Actual results:

rhv-image-discrepancies reports the following in the output:

~~~
 Checking storage domain 0b15810c-87d7-49f8-8d89-1ac6488de409
	 Image 7619bce7-9be0-4ba3-9561-56f7eecd6bf5 has a different attribute capacity on storage(134217728) and on DB(144896)
~~~

Expected results:

The rhv-image-discrepancies  shouldn't flag OVF_STORE volumes.

Additional info:

Comment 1 Germano Veit Michel 2022-01-04 23:45:45 UTC
The problem is the original fix on BZ1989324 uses storage metadata disktype key to find OVF disks. But in case of upgrades from old versions (4.1 and lower), disktype will be set to '2' (==Legacy) instead of OVFS.
So the proposed patch adds a second if condition to look into description in case the disktype is legacy.

Comment 2 Germano Veit Michel 2022-01-05 00:10:32 UTC
Note for QE:

To reproduce I think the following will do.

1. Deploy 4.1
2. create SD
3. Upgrade to latest
4. Run rhv-image-discrepancies


The idea is to have an OVF_STORE volume with disktype=2 (legacy), similar to this:

[root@rhvh-1 ~]# dd if=/dev/2f93a595-a602-4bfc-b35e-9e78b89f27b4/metadata bs=8192 count=1 skip=129
CAP=134217728
CTIME=1635458093
DESCRIPTION={"Updated":true,"Size":12800,"Last Updated":"Wed Dec 22 11:52:25 AEST 2021","Storage Domains":[{"uuid":"2f93a595-a602-4bfc-b35e-9e78b89f27b4"}],"Disk Description":"OVF_STORE"}
DISKTYPE=2
DOMAIN=2f93a595-a602-4bfc-b35e-9e78b89f27b4
FORMAT=RAW
GEN=0
IMAGE=a97751ed-1b59-4073-a69b-ee5d9b203bfc
LEGALITY=LEGAL
PUUID=00000000-0000-0000-0000-000000000000
TYPE=PREALLOCATED
VOLTYPE=LEAF
EOF

Comment 5 Guilherme Santos 2022-05-03 19:09:38 UTC
Verified on rhv-log-collector-analyzer-1.0.13-1.el8ev.noarch

OVF_STORE volumes not flagged as problematics

Comment 10 errata-xmlrpc 2022-05-26 16:23:26 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.0] security 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:4711

Comment 11 meital avital 2022-07-20 09:16:58 UTC
Due to QE capacity, we are not going to cover this issue in our automation


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