Bug 1980358 - Web console is not updated when RHV VM is renamed in the Manager
Summary: Web console is not updated when RHV VM is renamed in the Manager
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Inventory
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.1.0
Assignee: Jeff Ortel
QA Contact: Ilanit Stein
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-08 13:14 UTC by Tzahi Ashkenazi
Modified: 2021-08-26 07:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-26 07:09:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
oldname (86.62 KB, image/png)
2021-07-08 13:14 UTC, Tzahi Ashkenazi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:3278 0 None None None 2021-08-26 07:09:20 UTC

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


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