Bug 1553323

Summary: Adding Interface to Router with user in Tenant show all Subnets and not only the Tenant's Subnet
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Libor Pichler <lpichler>
Status: CLOSED ERRATA QA Contact: Ido Ovadia <iovadia>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: aperotti, bascar, cpelland, dkholodo, gblomqui, iovadia, jfrey, jhardy, lavenel, obarenbo, pakotvan
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1547408 Environment:
Last Closed: 2018-05-07 20:45:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1547408    
Bug Blocks:    

Comment 2 CFME Bot 2018-03-08 17:13:43 UTC
New commit detected on ManageIQ/manageiq-ui-classic/gaprindashvili:

https://github.com/ManageIQ/manageiq-ui-classic/commit/38d2baa39157432b99d18846625fa257a54f1546
commit 38d2baa39157432b99d18846625fa257a54f1546
Author:     Milan Zázrivec <mzazrivec>
AuthorDate: Tue Feb 27 03:59:08 2018 -0500
Commit:     Milan Zázrivec <mzazrivec>
CommitDate: Tue Feb 27 03:59:08 2018 -0500

    Merge pull request #3474 from lpichler/add_rbac_for_listing_subnets_in_adding_router_interface

    Add RBAC for subnet list
    (cherry picked from commit b28f2b225207ea151ceafd6ba533189cf38ca8f4)

    https://bugzilla.redhat.com/show_bug.cgi?id=1553323

 app/controllers/network_router_controller.rb | 2 +-
 spec/controllers/network_router_controller_spec.rb | 45 +
 2 files changed, 46 insertions(+), 1 deletion(-)

Comment 4 Danylo Kholodov 2018-05-04 09:34:31 UTC
Verified on 5.9.2.4

Switched to FailedQA

Steps to Reproduce:
1. Create new Tenant in UI Openstack
2. Create and asign new user to this Tenant
3. Relogin to UI Openstack by new user from previous step
4. Go to Project -> Network -> Router
5. Create new router
6. Go to Networks
7. Create new network with new subnet
8. Login to UI CFME
9. Refresh Cloud Provider
10. Go to Networks -> Network Routers
11. Select router which was created at the step 5
12. Click Configuration -> Add interface to this router
13. Select subnet

Actual results:
Show all Subnets from all Tenants

Expected results:
Show only the Tenant Subnet

Comment 8 Omri Hochman 2018-05-07 14:45:26 UTC
Ido mentioned that we might need to check the Tenant subnets after login with non_admin on the UI ?

Comment 11 errata-xmlrpc 2018-05-07 20:45: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, 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:1328