Bug 1788523

Summary: [v2v] False information is displayed once the migration plan getting stuck in preflight stage
Product: Red Hat CloudForms Management Engine Reporter: Maayan Hadasi <mguetta>
Component: V2VAssignee: Fabien Dupont <fdupont>
Status: CLOSED DUPLICATE QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: unspecifiedCC: bthurber, dagur, dmetzger, istein
Target Milestone: GAFlags: mguetta: needinfo+
Target Release: 5.11.z   
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-01-08 07:00:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:

Description Maayan Hadasi 2020-01-07 12:18:01 UTC
Description of problem:
This issue related to bug 1788505.
Once bug 1788505 is reproduced, CFME reports under 'Migration Plan In Progress' tab this info: "Waiting for an available conversion host..." while the preflight stage isn't ended..


Version-Release number of selected component (if applicable):
ManageIO nightly: 
master.20191217224046_ebd4ebf


How reproducible:
100%


Steps to Reproduce:
1. Create a infrastructure mapping with one cluster mapping
2. Create a migration plan with the previously created infrastructure mapping
3. Delete the cluster mapping item from Rails console:
   irb> mapping = TransformationMapping.find_by(:name => 'My Mapping')
   irb> mapping.transformation_mapping_items.select { |i| i.source_type == 'EmsCluster' }.each { |i| i.destroy }

4. Start the migration plan


Actual results:
VM migration getting stuck on preflight check, but CFME UI informs that the current stage is: waiting for a conversion host

Expected results:
Appropriate message for preflight check, so if it get stuck - the user will know that the migration plan didn't pass this stage

Comment 2 Dave Johnson 2020-01-07 13:02:15 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 3 Maayan Hadasi 2020-01-08 07:00:34 UTC
Closing this issue as duplicate of bug 1788505
By Fabien Dupont:
"The preflight check is part of the conversion host allocation mechanism. The fact that the migration task is not cancelled correctly make it stay in "ok" status (bug 1788505). So, it doesn't stop and finish properly, making the plan wait for its completion"

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