Description of problem: CFME: When running 'Transform this VM to RHV', and go to Automate->Requests, The request Last message after few minutes turns into: "[EVM] VM [<VM name on VMware>] Step [WaitForImport] Status [VM Import completed] Message [Checking for VM Import completion] Current Retry Number [1]" It is reporting "Status [VM Import completed]" right from the start! This same last message appear for hours (with the retry number increasing). Even if the v2v operation fails immediately, and even if the v2v operation end up successfully. Version-Release number of selected component (if applicable): CFME-5.8.1.0/RHV-4.1.3 How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: Request status is set to "[VM Import completed]", only few minutes, after v2v operation is triggered. Expected results: Request status should reflect: Error in v2v, the progress stage, in case the v2v operation is indeed progressing Additional info:
Created attachment 1294554 [details] production.log
Created attachment 1294555 [details] automation.log
Created attachment 1294556 [details] evm.log
Created attachment 1294557 [details] engine.log
Yes this request to be in the state WaitForImport which has incorrectly set on_exit handler as: update_vm_import_status(status => 'VM Import completed') where it should be in fact "Check for import completed" or such and not "the whole import has been completed. This logical error is also present in on_exit handlers in different states in the manageiq-content/content/automate/ManageIQ/Infrastructure/VM/Transform/StateMachines/VmImport.class/__class__.yaml state machine. Should be a simple textual fix.
Although I admit it is a bit confusing, I don't think this textual inaccuracy should not qualify as *blocker* and could be fixed in next z-stream.
https://github.com/ManageIQ/manageiq-content/pull/140
Verified on CFME-5.9.0.14/RHV-4.1.8, When a VM starts to get imported, in the Automate Request a message with Status ["Waiting for VM Import completion"] and not as before (Status ["VM Import completed"]). Then if import fails, in the Automate Request a message with Status [Error encountered during VM import] Message [Checking for VM Import completion]