Bug 1881347

Summary: [v2v][ui]VM Import Wizard does not call Import provider cleanup
Product: OpenShift Container Platform Reporter: Filip Krepinsky <fkrepins>
Component: Console Kubevirt PluginAssignee: Filip Krepinsky <fkrepins>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, dagur, tjelinek, ycui, yzamir
Target Milestone: ---Flags: istein: needinfo-
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: V2VVMWare and OvirtProvider objects created by the VM wizard were not cleaned up properly Fix: V2VVMWare and OvirtProvider objects are cleaned up now
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:18:56 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 Filip Krepinsky 2020-09-22 08:43:41 UTC
Description of problem: 

V2VVMWare or OvirtProvider objects are not cleaned up


How reproducible:
100

Steps to Reproduce:
1. visit VM Import Wizard
2. select instance
3. redirect to deployments
4. mentioned objects live forever

caused by this patch https://github.com/openshift/console/pull/6538

there are also subtle mistakes with data loading which concern the same part of the code

Comment 1 Tomas Jelinek 2020-09-24 06:43:55 UTC
moving out until there is a lgtm on the patch

Comment 4 Ilanit Stein 2020-12-27 11:04:08 UTC
@Filip,

Could you please provide verification steps?

Comment 5 Ilanit Stein 2020-12-31 10:55:06 UTC
Verified on Openshift version: 4.7.0-fc.0.

Entered the VM import wizard, picked VM from VMware/RHV providers, and then moved to deployment tab (as steps in the bug description).
Run those commands, before and after moving to the Deployments tab.

$ oc get ovirtproviders.v2v.kubevirt.io
$ oc get V2VVMWare.v2v.kubevirt.io

Before the move the providers object existed, and right after the move they were no longer listed - As expected.

Comment 6 Ilanit Stein 2020-12-31 10:55:46 UTC
Verified on Openshift version: 4.7.0-fc.0.

Entered the VM import wizard, picked VM from VMware/RHV providers, and then moved to deployment tab (as steps in the bug description).
Run those commands, before and after moving to the Deployments tab.

$ oc get ovirtproviders.v2v.kubevirt.io
$ oc get V2VVMWare.v2v.kubevirt.io

Before the move the providers object existed, and right after the move they were no longer listed - As expected.

Comment 7 Filip Krepinsky 2021-01-04 15:48:40 UTC
+1

Comment 9 errata-xmlrpc 2021-02-24 15:18:56 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 (Moderate: OpenShift Container Platform 4.7.0 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:5633