Bug 1464529

Summary: the name of amazon providers aren't synced with the name of their network manager
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: ProvidersAssignee: Marcel Hild <mhild>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: low Docs Contact:
Priority: low    
Version: 5.7.0CC: fdewaley, gblomqui, hkataria, jfrey, jhardy, mhild, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.9.0   
Hardware: All   
OS: All   
Whiteboard: ec2:sdn
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:13:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: AWS Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1480288    

Description Felix Dewaleyne 2017-06-23 16:47:07 UTC
Description of problem:
the name of amazon providers aren't synced with the name of their networks - if you rename an amazon provider, the name of the network manager associated won't change

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

How reproducible:
all the time (customer environment)

Steps to Reproduce:
1. Add a new AWS provider: Compute/Cloud/Providers -> Configuration/Add a new cloud provider -> Insert provider data.
2. Verification that the provider validates and collects information.
3. Modify the provider: Inside the provider -> Configuration / Edit this cloud Provider -> Change the name / Validate / Save.


Actual results:
 from the provider url (ems_cloud/1000000000001) we can see how the name of the provider is modified, but not the name of the Network Manager.

Expected results:
the name of the network manager is kept in sync with the name of the network provider

Additional info:

Comment 3 Marcel Hild 2017-06-29 16:49:02 UTC
This also ties into http://talk.manageiq.org/t/rethinking-providers-and-managers/2494/5 
Maybe the name of the provider should be taken from the parent manager until we figure out a better way of organizing the relationships
So maybe just delegate the `name` attr_reader method to the parent_manager will solve this. In the end its just a display thing

Comment 4 Marcel Hild 2017-09-28 17:12:19 UTC
delegating to parent_manager: https://github.com/ManageIQ/manageiq/pull/16067

Comment 5 Patrik Holop 2017-11-07 09:36:44 UTC
Tested on version 5.9.0.5 -> Amazon provider
Results were correct, name changed with name of the cloud provider.

Comment 9 errata-xmlrpc 2018-03-01 13:13:38 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:0380