Bug 1726939
| Summary: | Run the preflight check of migration task before waiting for a conversion host | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Fabien Dupont <fdupont> | ||||
| Component: | V2V | Assignee: | Fabien Dupont <fdupont> | ||||
| Status: | CLOSED EOL | QA Contact: | Shveta <sshveta> | ||||
| Severity: | high | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> | ||||
| Priority: | high | ||||||
| Version: | 5.10.6 | CC: | bthurber, dmetzger, mguetta | ||||
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | ||||
| Target Release: | 5.12.0 | Flags: | mfeifer:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1767549 (view as bug list) | Environment: | |||||
| Last Closed: | 2020-03-25 18:02:38 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | V2V | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1740510, 1767549 | ||||||
| Attachments: |
|
||||||
|
Description
Fabien Dupont
2019-07-04 06:42:29 UTC
This is going to be part of a broader rewrite of the state machine to integrate warm migration steps. Moving to 5.11.z. *** Bug 1740661 has been marked as a duplicate of this bug. *** To test this BZ, one should create a migration plan with a VM that won't pass preflight check. One example is a VM supposed to migrate to OpenStack but powered off when the migration plan starts. The VM migration should fail right away, without waiting for a conversion host. This can be verified in Rails console: irb> task = Vm.find_by(:name => 'my_vm', :vendor => 'vmware') irb> task = ServiceTemplateTransformationPlanTask.where(:source => vm).last irb> task.status => "Error" irb> task.conversion_host => nil Verified this issue with CFME version: 5.11.1.1 While migrating 20 VMs, one conversion host, configured to max 10 VMs -> first, CFME UI showed data size for 10 VMs, and after some seconds the data size was updated to the total size (see attached video) Is it the expected behaviour? Tried to reproduced the issue with one VM, as described in comment #5, without success. Our tries were: 1. VM without network -> passed. (by design) 2. VM with storage that doesn't match to the storage mapping (tested by rest api) -> didn't get the described error: irb> vm = Vm.find_by(:name => 'v2v_migration_vm_0', :vendor => 'vmware') irb> task = ServiceTemplateTransformationPlanTask.where(:source => vm).last irb> task.status => "Ok" How to verify this by one migration to RHV? Created attachment 1643009 [details]
Screen Record - bug verification
One possibility is to verify that with RHV:
1. Create an infrastructure mapping with a RHV provider
2. Create a migration plan with the previously created infrastructure mapping
3. Modify the infrastructure mapping to remove the cluster mapping
4. Run the migration plan
To remove the cluster mapping from the infrastructure mapping via 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 }
|