Bug 1985480 - RHV VMs are validated too frequently
Summary: RHV VMs are validated too frequently
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Inventory
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.1.0
Assignee: Jeff Ortel
QA Contact: David Vaanunu
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-23 16:41 UTC by Jeff Ortel
Modified: 2021-08-26 07:09 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-26 07:09:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor forklift-controller pull 318 0 None open Fix excessive oVirt validation. 2021-07-23 16:42:41 UTC
Red Hat Product Errata RHEA-2021:3278 0 None None None 2021-08-26 07:09:32 UTC

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


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