Bug 1814876 - [Bug] Do not wait for VM IP address if no Ansible playbook will run
Summary: [Bug] Do not wait for VM IP address if no Ansible playbook will run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: GA
: 5.11.5
Assignee: Fabien Dupont
QA Contact: Nandini Chandra
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-18 21:40 UTC by Fabien Dupont
Modified: 2020-05-05 13:43 UTC (History)
3 users (show)

Fixed In Version: 5.11.5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 13:43:34 UTC
Category: ---
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 RHBA-2020:2020 0 None None None 2020-05-05 13:43:42 UTC

Description Fabien Dupont 2020-03-18 21:40:36 UTC
Description of problem:
In the migration workflow, it's possible to run a pre or post-migration playbook. In the current implementation, we wait for the VM to report its IP address in CloudForms inventory before moving on. But if the VM is on but doesn't have VMware tools, it won't be reported and the migration will fail even if no playbook is expected to run.

Comment 2 Fabien Dupont 2020-03-18 21:55:15 UTC
https://github.com/ManageIQ/manageiq/pull/19979

Comment 3 CFME Bot 2020-03-20 19:05:21 UTC
New commit detected on ManageIQ/manageiq/ivanchuk:

https://github.com/ManageIQ/manageiq/commit/d100b531b626cf6906c69b033d837fd3b48f9d7f
commit d100b531b626cf6906c69b033d837fd3b48f9d7f
Author:     Adam Grare <agrare>
AuthorDate: Thu Mar 19 13:55:24 2020 +0000
Commit:     Adam Grare <agrare>
CommitDate: Thu Mar 19 13:55:24 2020 +0000

    Merge pull request #19979 from fdupont-redhat/v2v_bz_1814876

    [V2V] Do not wait for IP address if no playbook is expected

    (cherry picked from commit 73eeb8fc65508c010a315201e35920f084d97a29)

    https://bugzilla.redhat.com/show_bug.cgi?id=1814876

 app/models/infra_conversion_job.rb | 7 +-
 spec/models/infra_conversion_job_spec.rb | 8 +
 2 files changed, 13 insertions(+), 2 deletions(-)

Comment 4 CFME Bot 2020-03-20 20:15:31 UTC
New commits detected on ManageIQ/manageiq/jansa:

https://github.com/ManageIQ/manageiq/commit/8aa2103dbfe51165d5e1b1415084f27b7e3738f4
commit 8aa2103dbfe51165d5e1b1415084f27b7e3738f4
Author:     Adam Grare <agrare>
AuthorDate: Thu Mar 19 13:55:24 2020 +0000
Commit:     Adam Grare <agrare>
CommitDate: Thu Mar 19 13:55:24 2020 +0000

    Merge pull request #19979 from fdupont-redhat/v2v_bz_1814876

    [V2V] Do not wait for IP address if no playbook is expected

    (cherry picked from commit 73eeb8fc65508c010a315201e35920f084d97a29)

    https://bugzilla.redhat.com/show_bug.cgi?id=1814876

 app/models/infra_conversion_job.rb | 7 +-
 spec/models/infra_conversion_job_spec.rb | 8 +
 2 files changed, 13 insertions(+), 2 deletions(-)

Comment 5 Nandini Chandra 2020-04-22 04:17:41 UTC
Verified that preflight check fails for VMs without an IP address only if pre and post migration playbooks are to be run on the VM. If no playbooks are to be run on the VM without an IP address, preflight check will succeed and so will migration.

Verified in 5.11.5.1

Comment 8 errata-xmlrpc 2020-05-05 13:43:34 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/RHBA-2020:2020


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