Description of problem:
This is more of usability issue. V2V should differentiate whether logs are moved or not generated
Sometime failed migration do not generate logs but while `clicking on download logs` of details page error screen shows `The location of transformation log was not set. Download of transformation log aborted`. This is somehow confusing since `transformation log location is set`. We should show error with lines which differentiate whether logs are moved from transformation log directory or not generated yet.
Version-Release number of selected component (if applicable):
Can you check it in 126.96.36.199?
If migration succeeds and log is created but moved, then getting following error.
`Failed to download "ytale-v2v-4-win10.log". Reason - "SCP did not finish successfully (1): scp: /var/log/vdsm/import/v2v-import-20180704T063253-126596.log: No such file or directory "`
and if migration fails and log is not get created, getting following error
`Failed to download "ytale-v2v-4-win10.log". Reason - "Conversion host was not found: ID . Cannot queue the download of transformation log."`
Should be more specific as per description.
Checked on 188.8.131.52.
As per https://bugzilla.redhat.com/show_bug.cgi?id=1589265#c3, maybe display a more meaningful message based on the scenario.
Please create an upstream issue for this BZ.
@Brett, created upstream issue - https://github.com/ManageIQ/miq_v2v_ui_plugin/issues/478
Added issue into external tracker.
New commit detected on ManageIQ/manageiq-v2v/hammer:
Author: Michael Ro <email@example.com>
AuthorDate: Mon Oct 15 16:29:04 2018 -0400
Commit: Michael Ro <firstname.lastname@example.org>
CommitDate: Mon Oct 15 16:29:04 2018 -0400
Merge pull request #706 from AparnaKarve/disable_log_button_until_logfile_available
Keep the Download Log button disabled until v2v log is available
(cherry picked from commit 5464d9929c5eb38355a8a22e53845b002c9f45a8)
2 files changed, 15 insertions(+), 15 deletions(-)
Actual PR for this feature: https://github.com/ManageIQ/manageiq-v2v/pull/706
Created attachment 1514072 [details]
We had discussion on this already https://github.com/ManageIQ/manageiq-v2v/issues/478#issuecomment-429139673,
Now when it do not find file on conversion host, we get msg like -
Failed to download "65ytale-mini7-001.log". Reason - "Could not get conversion log '/var/log/vdsm/import/v2v-import-20181213T084746-25838.log' from 'url' with [RuntimeError: open /var/log/vdsm/import/v2v-import-20181213T084746-25838.log: no such file (2)"
When log not get generated, download log button get disabled.
Verified on - 184.108.40.206.20181204160308_aa3b074
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.