Following below steps to reproduce the issue:
(1) login openstack web-ui with a non-admin user
(2) create a share network
(3) click the link of new share network to view the details
then an error with message: "Error: Unable to retrieve share network details." pop-up.
I checked the code in the manila-ui/dashboards/project/share-networks/views.py, it will try to get the share server list in the function get_data of Class Detail(line 114):
----------------------------------------------------------------------
server_search_opts = {'share_network_id': share_net_id}
share_servs = manila.share_server_list(
self.request,
search_opts=server_search_opts)
share_net.share_servers = share_servs
----------------------------------------------------------------------
it works fine for admin user, but failed with non-admin user, because manila.share_server_list() function(also shell command: manila share-server-list) can only be called by user with admin rights, so it reports 403 Access Denied in the back end, this is the root cause of this issue.
I tried this solution : add try ... except ... while calling manila.share_server_list().
But this is not good as the share server of this network can't be displayed on the ui.
Please check this issue and find a proper solution for it.
Fix proposed to branch: master /review. openstack. org/649184
Review: https:/