Red Hat Bugzilla – Bug 1467866
[v2v] automation request status is not updated at all
Last modified: 2018-03-06 09:34:21 EST
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 "
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):
Steps to Reproduce:
Request status is set to "[VM Import completed]", only few minutes, after v2v operation is triggered.
Request status should reflect: Error in v2v, the progress stage, in case the v2v operation is indeed progressing
Created attachment 1294554 [details]
Created attachment 1294555 [details]
Created attachment 1294556 [details]
Created attachment 1294557 [details]
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.
Verified on CFME-22.214.171.124/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]