Description of problem: In case credentials are not provided for VMware hosts or RHV conversion hosts, v2v migration fail in an early stage (v2v import log is not created yet). And there is no indication in UI on what failed the migration. In case v2v migration fails for VMware host credetials not set - digging in automation.log, show this error: [----] E, [2019-06-11T03:46:44.100615 #12891:a78ec90] ERROR -- : Q-task_id([r24_service_template_transformation_plan_task_43]) Method STDERR: (drbunix:///tmp/automation_engine20190611-12891-5ua28k) /opt/rh/cfme-gemset/gems/vmware_web_service-0.3.3/lib/VMwareWebService/esx_thumb_print.rb:28:in `to_cert': Unable to get ESX Host SSL Certificate: Invalid HTTP Response Unauthorized code 401 (RuntimeError) That indicate ESX certificate error, and imply the problem. Version-Release number of selected component (if applicable): CFME-5.10.6.0/RHV-4.3.4 How reproducible: 100% Expected results: There should be a clear error message in the UI, indicating RHV/VMware hosts certificates are missing/failing.
We should add it as part of the preflight check, in order to fail early and with a comprehensive message.
The preflight check will be revisited with warm migration and migration analytics. Moving to 5.11.z.
Nadeem, we can find "Host credentials missing" error in logs, we have requested same via UI through this ticket, please take coverage decision on this.
https://github.com/ManageIQ/manageiq/pull/19882
Changing subject as it only concern VMware hosts. If conversion host creation is wrong, the configuration fails and it cannot be used for migration.
New commit detected on ManageIQ/manageiq/ivanchuk: https://github.com/ManageIQ/manageiq/commit/62d97e02b4fb4c134cdff0128e5daede67fba4a9 commit 62d97e02b4fb4c134cdff0128e5daede67fba4a9 Author: Adam Grare <agrare> AuthorDate: Mon Mar 2 12:50:25 2020 +0000 Commit: Adam Grare <agrare> CommitDate: Mon Mar 2 12:50:25 2020 +0000 Merge pull request #19882 from fdupont-redhat/v2v_bz_1719266 [V2V] Add VMware host credentials check to migration preflight check (cherry picked from commit bdc007964fec622a79c8f7e42de14efa904db41f) https://bugzilla.redhat.com/show_bug.cgi?id=1719266 app/models/service_template_transformation_plan_task.rb | 5 + spec/models/service_template_transformation_plan_task_spec.rb | 41 +- 2 files changed, 40 insertions(+), 6 deletions(-)
New commit detected on ManageIQ/manageiq/jansa: https://github.com/ManageIQ/manageiq/commit/babea9420dabef68223f93167cab18094a030419 commit babea9420dabef68223f93167cab18094a030419 Author: Adam Grare <agrare> AuthorDate: Mon Mar 2 12:50:25 2020 +0000 Commit: Adam Grare <agrare> CommitDate: Mon Mar 2 12:50:25 2020 +0000 Merge pull request #19882 from fdupont-redhat/v2v_bz_1719266 [V2V] Add VMware host credentials check to migration preflight check (cherry picked from commit bdc007964fec622a79c8f7e42de14efa904db41f) https://bugzilla.redhat.com/show_bug.cgi?id=1719266 app/models/service_template_transformation_plan_task.rb | 5 + spec/models/service_template_transformation_plan_task_spec.rb | 41 +- 2 files changed, 40 insertions(+), 6 deletions(-)
This BZ is for *missing* credentials, not for wrong credentials. Please don't change the purpose and open a new BZ. Moving back to ON_QA.
Adding https://github.com/ManageIQ/manageiq/pull/20105 to: 1. Block the update of the task progress when migration is cancelled. 2. Fix the progress status value (was always error). 3. Log the error message, so that it is easier to find during troubleshooting. 4. Add specs for abort_conversion method.
*** Bug 1823874 has been marked as a duplicate of this bug. ***
New commit detected on ManageIQ/manageiq/jansa: https://github.com/ManageIQ/manageiq/commit/1dbe5009476cf6776f3ec6134c59463cfbaaacac commit 1dbe5009476cf6776f3ec6134c59463cfbaaacac Author: Adam Grare <agrare> AuthorDate: Mon Apr 27 19:59:24 2020 +0000 Commit: Adam Grare <agrare> CommitDate: Mon Apr 27 19:59:24 2020 +0000 Merge pull request #20105 from fdupont-redhat/v2v_bz_1719266_2 Block error message override (cherry picked from commit 1828dd1f3281d567b7f7323376725217b8784aa1) https://bugzilla.redhat.com/show_bug.cgi?id=1719266 app/models/infra_conversion_job.rb | 5 +- spec/models/infra_conversion_job_spec.rb | 111 + 2 files changed, 115 insertions(+), 1 deletion(-)
New commit detected on ManageIQ/manageiq/ivanchuk: https://github.com/ManageIQ/manageiq/commit/574e5e22740624ae58210e6f176e68a5b4453471 commit 574e5e22740624ae58210e6f176e68a5b4453471 Author: Adam Grare <agrare> AuthorDate: Mon Apr 27 19:59:24 2020 +0000 Commit: Adam Grare <agrare> CommitDate: Mon Apr 27 19:59:24 2020 +0000 Merge pull request #20105 from fdupont-redhat/v2v_bz_1719266_2 Block error message override (cherry picked from commit 1828dd1f3281d567b7f7323376725217b8784aa1) https://bugzilla.redhat.com/show_bug.cgi?id=1719266 app/models/infra_conversion_job.rb | 5 +- spec/models/infra_conversion_job_spec.rb | 111 + 2 files changed, 115 insertions(+), 1 deletion(-)
verified in cfme version: 5.11.6.0.20200526234234 It gave proper error message on GUI. ~~~~~~~~~ Migration failed: No credentials configured for '<vmware-host-name>'. Cancelling: Migration cancelled ~~~~~~~
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. https://access.redhat.com/errata/RHSA-2020:2480