Bug 1719266 - [v2v] Add error message in UI, in case VMware hosts are missing credentials
Summary: [v2v] Add error message in UI, in case VMware hosts are missing credentials
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.10.7
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: GA
: 5.11.6
Assignee: Fabien Dupont
QA Contact: Md Nadeem
Red Hat CloudForms Documentation
URL:
Whiteboard:
: 1823874 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-11 11:42 UTC by Ilanit Stein
Modified: 2022-11-14 05:02 UTC (History)
8 users (show)

Fixed In Version: 5.11.6.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-10 13:39:05 UTC
Category: Bug
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:
pm-rhel: cfme-5.11.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:2480 0 None None None 2020-06-10 13:39:27 UTC

Description Ilanit Stein 2019-06-11 11:42:45 UTC
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.

Comment 2 Fabien Dupont 2019-07-29 15:49:29 UTC
We should add it as part of the preflight check, in order to fail early and with a comprehensive message.

Comment 3 Fabien Dupont 2019-07-31 09:59:27 UTC
The preflight check will be revisited with warm migration and migration analytics.
Moving to 5.11.z.

Comment 4 Yadnyawalk Tale 2019-12-24 07:19:57 UTC
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.

Comment 6 Fabien Dupont 2020-02-27 15:52:29 UTC
https://github.com/ManageIQ/manageiq/pull/19882

Comment 7 Fabien Dupont 2020-03-02 12:54:26 UTC
Changing subject as it only concern VMware hosts. If conversion host creation is wrong, the configuration fails and it cannot be used for migration.

Comment 8 CFME Bot 2020-03-20 17:30:19 UTC
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(-)

Comment 9 CFME Bot 2020-03-20 19:30:19 UTC
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(-)

Comment 11 Fabien Dupont 2020-04-27 09:04:24 UTC
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.

Comment 13 Fabien Dupont 2020-04-27 17:10:07 UTC
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.

Comment 14 Fabien Dupont 2020-04-27 19:51:21 UTC
*** Bug 1823874 has been marked as a duplicate of this bug. ***

Comment 15 CFME Bot 2020-05-01 23:45:18 UTC
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(-)

Comment 16 CFME Bot 2020-05-07 18:25:20 UTC
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(-)

Comment 17 Md Nadeem 2020-06-01 09:13:48 UTC
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
~~~~~~~

Comment 20 errata-xmlrpc 2020-06-10 13:39:05 UTC
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


Note You need to log in before you can comment on or make changes to this bug.