Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1985480

Summary: RHV VMs are validated too frequently
Product: Migration Toolkit for Virtualization Reporter: Jeff Ortel <jortel>
Component: InventoryAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: David Vaanunu <dvaanunu>
Severity: unspecified Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 2.1.0   
Target Milestone: ---   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-26 07:09:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Ortel 2021-07-23 16:41:22 UTC
Description of problem:

In addition to VM validation triggered by changes -
Every 10 minutes, the controller searches the DB for VMs that need to be validated. 
A VM needs to be validated (or re-validated) when:
- The vm.revision != vm.revisionValidated
- The vm.policyVersion != (latest policy version returned by validation service).

The bug is:

The version for oVirt and vSphere are different but the path used by the controller in the URL was hard coded for /vmware/. As a result, when getting the version intended to be match for oVirt (latest=1), it was the policy version for vSphere (latest-5).


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

2.1.0

How reproducible:

Always.


Steps to Reproduce:
1. Create a RHV provider.
2. Observe every 10 minutes, all of the RHV VMs get re-validated.
3.

Actual results:

Every 10 minutes, all of the RHV VMs get re-validated.

Expected results:

Only re-validated as needed.

Additional info:

Comment 1 Jeff Ortel 2021-07-27 00:07:15 UTC
 2.1.0-34 / IIB:93583

Comment 2 David Vaanunu 2021-08-12 13:12:00 UTC
verify MTV_2.1.0-44 / IIB 96817

Comment 5 errata-xmlrpc 2021-08-26 07:09:27 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 (Migration Toolkit for Virtualization 2.1.0), 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/RHEA-2021:3278