Bug 1500985

Summary: Shares Cannot Be Shown By Name in an Admin Context
Product: Red Hat OpenStack Reporter: Dustin Schoenbrun <dschoenb>
Component: openstack-manilaAssignee: Tom Barron <tbarron>
Status: CLOSED ERRATA QA Contact: Jason Grosso <jgrosso>
Severity: medium Docs Contact: Don Domingo <ddomingo>
Priority: medium    
Version: 12.0 (Pike)CC: amcleod, cschwede, tbarron
Target Milestone: z4Keywords: TestOnly, Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-manila-5.0.1-4.el7ost python-manilaclient-1.17.2-2.el7ost Doc Type: Bug Fix
Doc Text:
Previously, Manila did not use the correct search options when a project administrator used the python manilaclient to show details for a manila share that was owned by another user. With this update, manila and the python manilaclient use the correct search options and project administrators can show details for manila shares that other users own.
Story Points: ---
Clone Of:
: 1656606 (view as bug list) Environment:
Last Closed: 2018-12-05 18:54:06 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:
Bug Depends On:    
Bug Blocks: 1656606    

Description Dustin Schoenbrun 2017-10-11 22:45:54 UTC
Description of problem:
When attempting to show shares that have been created by other users and other tenants as an admin user in an admin project the show command will fail. This is due to an omission of the "all_tenants=1" parameter in the API request (as this is what Cinder does, for example). 

Version-Release number of selected component (if applicable):
python-manila-5.0.1-0.20170918204823.7bcd528.el7ost.noarch

How reproducible:
Looks to always be reproducible.

Steps to Reproduce:
1. Install RHOSP-12 with Manila.
2. Create a non-admin user and project if they don't already exist (I used demo)
3. Using the user and project from step 2, create a Manila share and give it a name (I used "test)
4. Switch to the admin user and project.
5. Attempt to get the details of the share by share name (I ran "manila show test") and observe that the command fails with an error saying that no share with the specified name exists.

Actual results:
The command will show an error saying that there is no such share with the specified name.

Expected results:
The command will succeed and show the contents of the provided share by name.

Additional info:
This should be a simple fix either in the client or in the Manila API implementation to add the "all_tenants=1" parameter to the API request.

Comment 2 Tom Barron 2018-01-08 16:03:11 UTC
All upstream reviews have merged to master and stable/pike branches.

Comment 6 Lon Hohberger 2018-08-15 10:38:50 UTC
According to our records, this should be resolved by openstack-manila-5.0.1-4.el7ost.  This build is available now.

Comment 10 errata-xmlrpc 2018-12-05 18:54:06 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-2018:3790