Bug 1656606

Summary: Shares Cannot Be Shown By Name in an Admin Context
Product: Red Hat OpenStack Reporter: Steve Linabery <slinaber>
Component: python-manilaclientAssignee: Tom Barron <tbarron>
Status: CLOSED ERRATA QA Contact: Jason Grosso <jgrosso>
Severity: medium Docs Contact: Kim Nylander <knylande>
Priority: medium    
Version: 12.0 (Pike)CC: amcleod, apevec, cschwede, ddomingo, dschoenb, gouthamr, jgrosso, lhh, tbarron
Target Milestone: asyncKeywords: TestOnly, Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 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: 1500985 Environment:
Last Closed: 2018-12-10 15:59:43 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: 1500985    
Bug Blocks:    

Comment 2 Jason Grosso 2018-12-07 21:08:02 UTC
With the latest puddle for osp 12 http://download-node-02.eng.bos.redhat.com/rcm-guest/puddles/OpenStack/12.0-RHEL-7/2018-12-06.1/ 

1. I installed OSP12 with netapp backend

2. I create a non-admin user and project (demo , demo-project)

3. I create a manila share called jason_share as demo user 

4. I log into admin from UI with demo, and also source overcloudrc and from the UI as admin I can see the shares that demo created( I was not able to see anyone this from python-manilaclient-1.17.2-12.el7ost) verify this puddle has python-manilaclient-1.17.2-2.el7ost

5. source overcloudrc I ran manila show jason_share  I see :


---------------------------------------+--------------------------------------------------------------------+
| Property                              | Value                                                              |
+---------------------------------------+--------------------------------------------------------------------+
| status                                | available                                                          |
| share_type_name                       | default                                                            |
| description                           | None                                                               |
| availability_zone                     | nova                                                               |
| share_network_id                      | None                                                               |
| export_locations                      |                                                                    |
|                                       | path = fd20::100:/share_0f358552_3e47_4a88_b308_016d5ce764ad       |
|                                       | preferred = True                                                   |
|                                       | is_admin_only = False                                              |
|                                       | id = 4a36d4eb-d674-4b04-9939-e3c95c0abdea                          |
|                                       | share_instance_id = 0f358552-3e47-4a88-b308-016d5ce764ad           |
|                                       | path = fd20::101:/share_0f358552_3e47_4a88_b308_016d5ce764ad       |
|                                       | preferred = True                                                   |
|                                       | is_admin_only = False                                              |
|                                       | id = e32ab46f-7b7e-4ebd-a4b2-6b6d33b5037f                          |
|                                       | share_instance_id = 0f358552-3e47-4a88-b308-016d5ce764ad           |
|                                       | path = 192.168.1.104:/share_0f358552_3e47_4a88_b308_016d5ce764ad   |
|                                       | preferred = True                                                   |
|                                       | is_admin_only = False                                              |
|                                       | id = 489ba243-a395-4105-9d38-8aa356a1fd4e                          |
|                                       | share_instance_id = 0f358552-3e47-4a88-b308-016d5ce764ad           |
|                                       | path = 2001:db8:0:1::2:/share_0f358552_3e47_4a88_b308_016d5ce764ad |
|                                       | preferred = False                                                  |
|                                       | is_admin_only = False                                              |
|                                       | id = 36c3d5d9-8b46-401f-a67e-534b55f55a7a                          |
|                                       | share_instance_id = 0f358552-3e47-4a88-b308-016d5ce764ad           |
| share_server_id                       | None                                                               |
| share_group_id                        | None                                                               |
| host                                  | hostgroup@tripleo_netapp#aggr1_n1                                  |
| revert_to_snapshot_support            | False                                                              |
| access_rules_status                   | active                                                             |
| snapshot_id                           | None                                                               |
| create_share_from_snapshot_support    | True                                                               |
| is_public                             | False                                                              |
| task_state                            | None                                                               |
| snapshot_support                      | True                                                               |
| id                                    | 477876b7-fed1-4a5c-bdd4-cdbee06fcad5                               |
| size                                  | 1                                                                  |
| source_share_group_snapshot_member_id | None                                                               |
| user_id                               | fa460960f8384c63b31bd3e56a52a4d1                                   |
| name                                  | jason_share                                                        |
| share_type                            | 687b280a-1be2-4620-aa71-816e4021c1ff                               |
| has_replicas                          | False                                                              |
| replication_type                      | None                                                               |
| created_at                            | 2018-12-07T20:56:21.000000                                         |
| share_proto                           | NFS                                                                |
| mount_snapshot_support                | False                                                              |
| project_id                            | e1e189d6812242ad8f93b0a5c87606d1                                   |
| metadata                              | {}                                                                 |

Comment 4 errata-xmlrpc 2018-12-10 15:59:43 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:3808