Bug 1940896 - Provider inventory changes not reflected in related custom resources
Summary: Provider inventory changes not reflected in related custom resources
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: General
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.0.0
Assignee: Jeff Ortel
QA Contact: Amos Mastbaum
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-19 14:00 UTC by Jeff Ortel
Modified: 2023-09-15 01:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-10 17:11:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:2381 0 None None None 2021-06-10 17:11:38 UTC

Description Jeff Ortel 2021-03-19 14:00:53 UTC
Description of problem:

Inventory changes are not reflected in CR status. For example: A plan with a critical condition for a VM already exists on the destination cluster will not be cleared when the problem is resolved by deleting the VM.  This issue affects the following CRs:
- Plan
- NetworkMap
- StorageMap
- Host

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

ALL.

How reproducible:

Always.


Steps to Reproduce:
1. Create a Plan with a VM that already exists on the destination.
2. Note the CRITICAL condition.
3. Delete the VM on the destination.
4. Not the condition is not cleared.

Actual results:

Reconcile is not triggered and the condition is not cleared.


Expected results:

The change in the inventory should result in the CR being reconciled and the condition cleared.  I don't think this need to be in real-time but perhaps within a minute is a reasonable expectation.


Additional info:

Comment 2 Fabien Dupont 2021-04-08 11:52:29 UTC
This fix should be part of build v2.0.0-14, iib:64369.

Comment 4 Amos Mastbaum 2021-05-09 11:37:03 UTC
Verified Plan

Next: Verify the other CRS

Comment 5 Amos Mastbaum 2021-05-09 12:24:17 UTC
Verified:

Plan -  as describe in the reproduction steps.

Network - Create a NAD after networkmap is created and goes to NAD NotFound condition reason

Storage - Create Storage Class after storagemap is created and  goes to StorageClass NotFound condition reason

Host - wip

Comment 6 Amos Mastbaum 2021-05-10 09:39:19 UTC
@jortel 
@

I run the following scenario:

1. Created a host (UI) and allow it to become ready.
2. Put the host in maintenance mode.

The Host remains in the same condition (and the migration fails, for obvious reason).


 

cc: fdupont 
cc: istein

Comment 7 Jeff Ortel 2021-05-10 14:47:42 UTC
When watching inventory resources, each controller has a deliberately narrow set of changes it's interested in.  For Host, it only triggers a Host CR reconcile when a referenced (vCenter) Host's path and/or name changes.  We'd need to expand to include changes to: maintenance mode.
However, we currently don't validate maintenance-mode in the back-end so the even if the Plan reconcile is triggered by the change in maintenance-mode, the Host CR will remain READY and the Plan will execute.

Comment 8 Amos Mastbaum 2021-05-11 09:33:09 UTC
Host CR also verified.
Closing this BZ, continue is : https://bugzilla.redhat.com/show_bug.cgi?id=1959306

Comment 11 errata-xmlrpc 2021-06-10 17:11:29 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 (MTV 2.0.0 images), 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:2381

Comment 12 Red Hat Bugzilla 2023-09-15 01:03:43 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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