Bug 1511030

Summary: Updates to RHEV Host Causes Duplicate Names in CloudForms
Product: Red Hat CloudForms Management Engine Reporter: myoder
Component: ProvidersAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: low Docs Contact:
Priority: high    
Version: 5.8.0CC: agrare, gblomqui, istein, jfrey, jhardy, mgoldboi, mperina, myoder, obarenbo, pkliczew, rmanes, sbonazzo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev
Fixed In Version: 5.8.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-25 14:17:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1551709    

Comment 4 Piotr Kliczewski 2017-11-14 08:57:16 UTC
Based on information provided in comment #1 I see that each host is different in RHV. uid_ems is unique and I see that there were 3 hosts where 2 of them used the same guid (possibly host reuse). I am not able to access customer case due to timeout. Please provide more information about the issue and the steps to reproduce.

Comment 5 Piotr Kliczewski 2017-11-20 10:46:18 UTC
As I mentioned in comment #4 based on provided information it looks like not a bug. Please provide the evm and rhevm logs.

Comment 9 Piotr Kliczewski 2017-12-07 11:06:31 UTC
Sandro, Is it possible that a host name is changed during engine upgrade?

Comment 11 Piotr Kliczewski 2018-01-22 11:14:44 UTC
Adding back needinfo

Comment 12 Sandro Bonazzola 2018-01-23 07:47:26 UTC
(In reply to Piotr Kliczewski from comment #9)
> Sandro, Is it possible that a host name is changed during engine upgrade?

No. For renaming the engine host there's a separate tool which doesn't perform upgrades. If you want to change name and upgrade, you need to do it in 2 steps.

See https://ovirt.org/documentation/admin-guide/chap-Utilities/#the-ovirt-engine-rename-tool

Comment 20 Adam Grare 2018-02-06 13:42:10 UTC
> IIUC,
> The behavior on CFME-5.9.0.17 in CFME has changed, and for RHV provider,
> the host name number suffix is no longer added. I guess that would be true for > any flow. 
> Adam,
> Can you please confirm/correct? 

That's correct in 5.9 we removed the unique hostname requirement for all providers.

> Adam, hoe risky is the backport of your patch which removes host name suffixes  > to 5.8.z?

It isn't risky and it should cherry-pick cleanly, https://github.com/ManageIQ/manageiq/pull/15795 for reference

Comment 21 CFME Bot 2018-02-28 22:41:19 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/2e23e3092eea3280203a3219ce5dc525bde5dd2a

commit 2e23e3092eea3280203a3219ce5dc525bde5dd2a
Author:     Jason Frey <fryguy9>
AuthorDate: Mon Oct 9 16:34:22 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Wed Feb 28 17:35:04 2018 -0500

    Merge pull request #15795 from agrare/do_we_need_host_names_to_be_unique
    
    Remove Host name uniqueness check and retry-loop
    (cherry picked from commit 565d7178e3daff9aa7b7e36c226dde238b98e7fe)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1511030

 app/models/ems_refresh/save_inventory_infra.rb       | 10 +---------
 app/models/host.rb                                   |  1 -
 spec/models/ems_refresh/save_inventory_infra_spec.rb | 11 -----------
 3 files changed, 1 insertion(+), 21 deletions(-)

Comment 22 Ilanit Stein 2018-04-30 11:25:48 UTC
Verified on CFME-5.8.4.2/RHV-4.2.2.5

Added 2 RHV providers with hosts, that have same names.
The hosts were added with the same name.
There was no use in any suffix number, as was before, on CFME-5.8.3.

Comment 25 errata-xmlrpc 2018-06-25 14:17:08 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-2018:1972