Bug 1894900

Summary: [v2v][RHV to CNV VM Import API] VMimport CR is not reported as failed after deleting the importing VM by oc command
Product: Container Native Virtualization (CNV) Reporter: Maayan Hadasi <mguetta>
Component: V2VAssignee: Sam Lucidi <slucidi>
Status: CLOSED DUPLICATE QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.5.0CC: cnv-qe-bugs, fdupont, istein
Target Milestone: ---   
Target Release: 2.6.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: 2020-11-18 15:27:52 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:
Attachments:
Description Flags
rhv-vmimport describe
none
vm-import-controller yaml
none
vm-import-controller log
none
importer-rhv-import pod yaml
none
importer-rhv-import pod log none

Description Maayan Hadasi 2020-11-05 11:57:45 UTC
Description of problem:
RHV vmimport CR has no "failed" status as expected after deleting the importing VM during disk copy
It seems in UI with status "importing" 


Version-Release number of selected component (if applicable):
CNV 2.5.0-413 (iib-24150)
OCP 4.6.1


How reproducible:
100%


Steps to Reproduce:
1. Have a running VM in RHV
2. Create VMimport CR via API
3. After source VM is powered off and the disk copy was started -> delete the importing VM: oc delete vm <vm-name>


Actual results:
VMimport status is "Processing"
UI: VMimport is displayed in VM page with status "importing"
The disk copy is done and VMImport CR is removed from VM page in UI


Expected results:
VMimport should have status "failed" due to VM deletion


Additional info:
* Tested using NFS storage class


Attachments:
yamls & logs: vm-import-controller, importer pod
vmimport CR describe

Comment 1 Maayan Hadasi 2020-11-05 12:01:29 UTC
Created attachment 1726851 [details]
rhv-vmimport describe

Comment 2 Maayan Hadasi 2020-11-05 12:02:45 UTC
Created attachment 1726852 [details]
vm-import-controller yaml

Comment 3 Maayan Hadasi 2020-11-05 12:03:31 UTC
Created attachment 1726853 [details]
vm-import-controller log

Comment 4 Maayan Hadasi 2020-11-05 12:04:15 UTC
Created attachment 1726854 [details]
importer-rhv-import pod yaml

Comment 5 Maayan Hadasi 2020-11-05 12:05:04 UTC
Created attachment 1726856 [details]
importer-rhv-import pod log

Comment 6 Fabien Dupont 2020-11-18 15:27:52 UTC

*** This bug has been marked as a duplicate of bug 1894897 ***