[ceph-nfs-ganesha] Should not allow 'cephx' access to a NFS protocol share
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Tom Barron | ||
Bug Description
Description of problem:
Manila allows 'cephx' access to a NFS share type while only 'ip' access should be allowed.
Version-Release number of selected component (if applicable):
python2-
How reproducible:
100%
Steps to Reproduce:
(overcloud) [stack@undercloud-0 ~]$ manila create NFS 1 --name share1 --share-type default_share_type
+------
| Property | Value |
+------
| status | creating |
| share_type_name | default_share_type |
| description | None |
| availability_zone | None |
| share_network_id | None |
| share_server_id | None |
| share_group_id | None |
| host | |
| revert_
| access_rules_status | active |
| snapshot_id | None |
| create_
| is_public | False |
| task_state | None |
| snapshot_support | False |
| id | bd86b90e-
| size | 1 |
| source_
| user_id | ceee86a910d54af
| name | share1 |
| share_type | 58a9f347-
| has_replicas | False |
| replication_type | None |
| created_at | 2019-02-
| share_proto | NFS |
| mount_snapshot_
| project_id | fd808698c9c3458
| metadata | {} |
+------
(overcloud) [stack@undercloud-0 ~]$ manila list
+------
| ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone |
+------
| bd86b90e-
+------
(overcloud) [stack@undercloud-0 ~]$ manila access-allow share1 cephx eve
+------
| Property | Value |
+------
| access_key | None |
| share_id | bd86b90e-
| created_at | 2019-02-
| updated_at | None |
| access_type | cephx |
| access_to | eve |
| access_level | rw |
| state | queued_to_apply |
| id | 3903a546-
| metadata | {} |
+------
(overcloud) [stack@undercloud-0 ~]$ manila access-list share1
+------
| id | access_type | access_to | access_level | state | access_key | created_at | updated_at |
+------
| 3903a546-
+------
(overcloud) [stack@undercloud-0 ~]$ manila access-show 3903a546-
+------
| Property | Value |
+------
| access_key | None |
| share_id | bd86b90e-
| created_at | 2019-02-
| updated_at | None |
| access_type | cephx |
| access_to | eve |
| access_level | rw |
| state | active |
| id | 3903a546-
| metadata | {} |
+------
Actual results:
Allow 'cephx' access to a NFS share type.
Expected results:
'cephx' access to a NFS share type is not allowed.
Only 'ip' access to a NFS share type should be allowed.
| Changed in manila: | |
| assignee: | nobody → Tom Barron (tpb) |
| status: | New → Confirmed |
| tags: | added: cephfs driver |
| summary: |
- [ceph-nfs-ganesha] Allow 'cephx' access to a NFS share type + [ceph-nfs-ganesha] Should not allow 'cephx' access to a NFS share type |
| summary: |
- [ceph-nfs-ganesha] Should not allow 'cephx' access to a NFS share type + [ceph-nfs-ganesha] Should not allow 'cephx' access to a NFS protocol + share |
| Changed in manila: | |
| importance: | Undecided → Medium |

Fix proposed to branch: master /review. openstack. org/639817
Review: https:/