Bug 1650484

Summary: [Regression] Multiple cloud provider shown while adding new cloud tenant
Product: Red Hat CloudForms Management Engine Reporter: Neha Chugh <nchugh>
Component: ProvidersAssignee: Scott Seago <sseago>
Status: CLOSED ERRATA QA Contact: Md Nadeem <mnadeem>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.0CC: bmidwood, dmetzger, hkataria, jfrey, jhardy, lavenel, maufart, mfeifer, mnadeem, mpovolny, obarenbo, simaishi, sseago
Target Milestone: GA   
Target Release: 5.11.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 13:34:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Multiple provider shown while adding cloud tenant none

Description Neha Chugh 2018-11-16 10:13:15 UTC
Created attachment 1506379 [details]
Multiple provider shown while adding cloud tenant

Description of problem:

Multiple cloud providers shown while adding new cloud tenant

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

How reproducible:
Always

Steps to Reproduce:
1. Navigate to compute -> Cloud -> Tenants
2. Go to Configuration -> Create cloud tenant
3. Under cloud provider section, it shows two cloud provider i.e.
   Openstack ( provider name) and 
   Openstack (admin) 

Actual results:
It is shwoing multiple provider ( please see attached screenshot) 

Expected results:
It should show only one provider name.

Additional info:

Comment 2 Scott Seago 2019-01-04 16:48:50 UTC
So in investigating, a couple things came up:
1) I don't think this is a regression. This seems to have been the behavior for Keystone V3 since Cloud Tenant CRUD was implemented in 2016.
2) There is a UI labeling bug here, but the functionality seems to be working as designed. Basically, with Keystone v3, tenants are hierarchical in nature. When adding a new tenant to the provider "OpenStack" (to use the example in the attachment), it can be added as a child of the provider itself or as a child of the default "admin" tenant. That's the difference between choosing "OpenStack" and choosing "OpenStack (admin)" in the dropdown.

The UI is confusing, though, as it gives the impression that the dropdown should contain merely a list of providers. I would propose to fix this by changing the label from "Cloud Provider" to "Cloud Provider/Parent Cloud Tenant" -- this would allow for both the keystone v2 case where we only list providers, and for the v3 case where we list both bare providers and provider/tenant combinations.

Comment 3 Scott Seago 2019-01-07 15:37:20 UTC
PR posted: https://github.com/ManageIQ/manageiq-ui-classic/pull/5127

Comment 6 errata-xmlrpc 2019-12-12 13:34:23 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-2019:4199