Bug 1980358

Summary: Web console is not updated when RHV VM is renamed in the Manager
Product: Migration Toolkit for Virtualization Reporter: Tzahi Ashkenazi <tashkena>
Component: InventoryAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact: Avital Pinnick <apinnick>
Priority: high    
Version: 2.1.0CC: dagur
Target Milestone: ---   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-26 07:09:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
oldname none

Description Tzahi Ashkenazi 2021-07-08 13:14:24 UTC
Created attachment 1799650 [details]
oldname

Description of problem:
Rename a VM on RHV side, the new name doesn't appear on the MTV UI on > VM selections 

original name : 
   rhel7.6_100gb_70usage_thin	

new name prefix on rhev : 
   rhel7.6-100gb-30usage-thin

the old name appears on MTV UI 

Version-Release number of selected component (if applicable):
Cloud38
OCP-48
CNV-48-451
OCS-48
MTV-2.1.0-22

Additional info:

Comment 1 Jeff Ortel 2021-07-09 15:00:14 UTC
Looks like the Cluster.name was being overwritten with the description.  I suspect most (all) of the clusters in the provider used here have a blank description.
https://github.com/konveyor/forklift-controller/pull/310

Comment 2 Jeff Ortel 2021-07-09 15:03:11 UTC
(In reply to Jeff Ortel from comment #1)
> Looks like the Cluster.name was being overwritten with the description.  I
> suspect most (all) of the clusters in the provider used here have a blank
> description.
> https://github.com/konveyor/forklift-controller/pull/310

Ignore comment 1. Wrong BZ.

Comment 3 Jeff Ortel 2021-07-09 15:08:33 UTC
Tested and worked for me.
For RHV, the inventory controller polls for events every 10 seconds.  As a result, the renamed VM may not be reflected in the inventory REST API for up to 10 seconds. This is different than vCenter which uses push events and is almost immediate.
Perhaps QE did not wait long enough?

Comment 4 Jeff Ortel 2021-07-09 15:44:21 UTC
Tested with UI (folks) and worked as expected.  Please retest waiting at least 10 seconds.

Comment 5 Tzahi Ashkenazi 2021-07-11 08:37:39 UTC
im not sure if the problem with the renaming related to underline vs dash , since the VM name still appears with the old name on my  rhv environment  

old name -> rhel7.6_100gb_70usage_thin
new name ( which not appears on the MTV side ) > rhel7.6-100gb-70usage-thin

Comment 6 Tzahi Ashkenazi 2021-07-15 14:28:06 UTC
fixed verifay on MTV 29  on cloud38

Comment 9 errata-xmlrpc 2021-08-26 07:09:12 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 (Migration Toolkit for Virtualization 2.1.0), 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/RHEA-2021:3278