Bug 1810555 - [RFE] Add a check on the existence of a conversion host with the same VM
Summary: [RFE] Add a check on the existence of a conversion host with the same VM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.11.4
Hardware: Unspecified
OS: Unspecified
medium
medium
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-05 13:46 UTC by Maayan Hadasi
Modified: 2020-05-05 13:43 UTC (History)
5 users (show)

Fixed In Version: 5.11.5.0
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 13:43:32 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:43 UTC

Description Maayan Hadasi 2020-03-05 13:46:01 UTC
Description of problem:
Adding a conversion host by REST API while there is an existing conversion host with the same VM, will cause an unexpected behavior  


Version-Release number of selected component (if applicable):
CFME 5.11.4.1


How reproducible:
100%


Actual results:
The existing conversion host is overridden by the 2nd process.
In UI, the conversion host configuration is failed, although there are no errors in conversion host log and it can be used for migration

In evm.log - there are some errors as: 
[----] E, [2020-03-05T04:49:37.896134 #40326:2af8039725b8] ERROR -- : MIQ(MiqQueue#deliver) Message id: [41519], Error: [Validation failed: ConversionHost: Resource has already been taken]


Expected results:
Adding a check on the existence of a conversion host with the same VM

Comment 2 Fabien Dupont 2020-03-06 07:43:05 UTC
https://github.com/ManageIQ/manageiq-api/pull/769

Comment 3 Fabien Dupont 2020-03-10 17:49:00 UTC
https://github.com/ManageIQ/manageiq/pull/19945

Comment 4 CFME Bot 2020-04-13 14:15:17 UTC
New commit detected on ManageIQ/manageiq/jansa:

https://github.com/ManageIQ/manageiq/commit/1800825b03d8ff75a15e391cd4d6cada037d74ef
commit 1800825b03d8ff75a15e391cd4d6cada037d74ef
Author:     Brandon Dunne <bdunne>
AuthorDate: Tue Mar 10 17:42:23 2020 +0000
Commit:     Brandon Dunne <bdunne>
CommitDate: Tue Mar 10 17:42:23 2020 +0000

    Merge pull request #19945 from fdupont-redhat/v2V_bz_1810555

    [V2V] ConversionHost - Validate resource is not already a conversion host

    (cherry picked from commit 6826efd6fb173517876caf05e2f924b46531413d)

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

 app/models/conversion_host/configurations.rb | 2 +
 spec/models/conversion_host/configurations_spec.rb | 5 +
 2 files changed, 7 insertions(+)

Comment 8 Nandini Chandra 2020-04-24 22:22:03 UTC
Thanks Fabien for the clarification.

Verified in 5.11.5.1

Comment 11 errata-xmlrpc 2020-05-05 13:43:32 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.