Bug 1814197 - [CNV&RHV] when provider is remover DC is left behind and active
Summary: [CNV&RHV] when provider is remover DC is left behind and active
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.4.0
: ---
Assignee: Piotr Kliczewski
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-17 10:44 UTC by Pavol Brilla
Modified: 2020-08-04 13:22 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.4.0_beta3 rhv-4.4.0-30
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-04 13:21:58 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine log form time of operation (81.39 KB, text/plain)
2020-03-17 11:36 UTC, Pavol Brilla
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:22:36 UTC
oVirt gerrit 107716 0 master MERGED bll: remove dc when kubevirt provider is removed 2020-06-05 07:59:40 UTC

Description Pavol Brilla 2020-03-17 10:44:28 UTC
Description of problem:
When I was removing old cnv provider from engine DC  was left untouched by removal of provider

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

How reproducible:
100%

Comment 1 Pavol Brilla 2020-03-17 11:36:18 UTC
Created attachment 1670784 [details]
engine log form time of operation

Comment 2 Moti Asayag 2020-03-17 12:13:44 UTC
With current design, kubevirt data-center is used to serve all of kubernetes clusters.
The data-center is being added and marked as initialized.

On Kubevirt provider removal, we remove all of that cluster resources (cluster, hosts, vms, templates and networks).
However the data-center remains.

If we wish to remove the 'kubevirt' data-center when the last kubevirt provider is removed, we need to add that to:

https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/provider/cluster/KubevirtProviderProxy.java#L309

Comment 5 Pavol Brilla 2020-04-21 11:09:19 UTC
Once all kubevirt/cnv providers are removed, DC is removed as well.

	
Data Center kubevirt was removed by SYSTEM

on ovirt-engine.noarch     4.4.0-0.33.master.el8ev

Comment 7 errata-xmlrpc 2020-08-04 13:21:58 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 (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement 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-2020:3247


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