Bug 1994093

Summary: Deleting an object in the RHV inventory must delete its dependent objects
Product: Migration Toolkit for Virtualization Reporter: Jeff Ortel <jortel>
Component: InventoryAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: Amos Mastbaum <amastbau>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 2.1.0CC: fdupont, pvauter
Target Milestone: ---   
Target Release: 2.2.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-12-09 19:20:47 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-08-16 17:20:29 UTC
Description of problem:

Need to apply cascade deletes to RHV inventory.
When a DataCenter or Cluster is deleted, everything it owns is deleted without detailed events for each. This needs to be reflected in the inventory.

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

2.1

How reproducible:

Always


Steps to Reproduce:
1. Delete a DataCenter in RHV.
2. Ensure everything owned by it is deleted in the inventory.
   - Cluster
   - Host
   - Network
   - Storage Domain
   - vNIC Profile
   - Disk Profile
   - Disk
   - VM


1. Delete a Cluster in RHV.
2. Ensure everything owned by it is deleted in the inventory.
   - Hosts

Actual results:

Owned resources not deleted.


Expected results:

Owned resources are deleted.


Additional info:

Comment 1 Fabien Dupont 2021-10-11 08:57:50 UTC
Please verify with mtv-operator-bundle-2.2.0-39 / iib:121326, or later.

Comment 2 Amos Mastbaum 2021-11-11 13:12:34 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1994093 (inventory log)
verified 2.2.0-81

Comment 5 errata-xmlrpc 2021-12-09 19:20:47 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.2.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:5066