Unable to retrieve replica details as non-admin user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Goutham Pacha Ravi | ||
manila-ui |
Fix Released
|
Medium
|
Goutham Pacha Ravi |
Bug Description
How to reproduce:
0) Setup manila with a driver that supports replication (ex: zfsonlinux driver, or just the dummy driver for testing)
1) As admin, create a share type that supports replication, set appropriate replication_type extra spec (replication_type = "readable" for dummy and zfsonlinux drivers)
2) Log into UI as non-admin user, create a share of the type created above
3) Create a share replica (Drop down on the share you created in #2, click "Manage Replicas"->"Create Replica")
4) Click on share replica to retrieve its details
Expected Results:
- See the details of the replica, ex: export location needed to mount the replica
Actual Results:
- An error banner pops up, redirecting the user to the last page, See attached screenshot
Changed in manila-ui: | |
status: | New → Triaged |
Changed in manila-ui: | |
assignee: | nobody → Goutham Pacha Ravi (gouthamr) |
importance: | Undecided → Medium |
milestone: | none → stein-1 |
Changed in manila: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Goutham Pacha Ravi (gouthamr) |
Changed in manila-ui: | |
milestone: | stein-1 → train-1 |
The UI uses an API (GET /v2/{tenant_ id}/share_ instances/ {share_ instance_ id}/export_ locations) that has default policy set to "admin"; we don't/shouldn't expect cloud administrators to relax this policy for users to see per-replica export locations. Manila needs a way to expose share replica export locations to end users.
https:/ /developer. openstack. org/api- ref/shared- file-system/ #id302