HNAS driver doesnt update access level for rules from managed shares
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Alyson |
Bug Description
HNAS driver maintains all rules from a CIFS share when its being managed. If we try to add a rule that already exists, but with another access level, it just logs "user already allowed" and return success. So, manila will show an access level that is different from the one in backend.
To reproduce:
1 - Managing share S1 with rule for "user123" with access "Read Only":
$ manila manage --name S1 --share-type hitachi ubuntu@
2 - Trying to add rule for "user123" with access "Read&Write":
$ manila access-allow S1 user user123
3 - Listing rules:
$ manila access-list S1
+------
| id | access_type | access_to | access_level | state | access_key |
+------
| 22f6-...-a7a1c1ec | user | user123 | rw | active | None |
+------
But in backend, "user123" is with old rule - "ro".
It can be observed only with CIFS share, since NFS rules are always updated.
Changed in manila: | |
importance: | Undecided → Medium |
milestone: | none → ocata-rc1 |
Fix proposed to branch: master /review. openstack. org/427096
Review: https:/