Comment 0 for bug 1943035

Revision history for this message
Lin PeiWen (linpeiwen) wrote : Glusterfs create share from snapshot, "nfs.rpc-auth-reject" is not initialized

I created share from snapshot in the glusterfs driver, and the creation was successful. From the glusterfs volume, I found "nfs.rpc-auth-allow" = "10.0.0.1,all". The normal default is "all" because my manila share access rule is clean.

Environment
===========
I'm using the Manila Master/Victoria version

Glusetrfs NFS drive

gluster version: glusterfs 8.2

Configs:

glusterfs_share_layout = layout_volume.GlusterfsVolumeMappedLayout
glusterfs_nfs_server_type = Gluster

Steps to reproduce
==================

[root@controller ~]# manila access-allow 0908-001 ip 10.0.0.1
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| id | c92e0b5d-a6be-4104-8eed-1a6ef96d0feb |
| share_id | 7d7a8ed6-5b9d-492d-a926-97117c68ff4d |
| access_level | rw |
| access_to | 10.0.0.1 |
| access_type | ip |
| state | queued_to_apply |
| access_key | None |
| created_at | 2021-09-08T11:17:55.000000 |
| updated_at | None |
| metadata | {} |
+--------------+--------------------------------------+

[root@controller ~]# manila access-list 0908-001
+--------------------------------------+-------------+---------------+--------------+--------+------------+----------------------------+------------+
| id | access_type | access_to | access_level | state | access_key | created_at | updated_at |
+--------------------------------------+-------------+---------------+--------------+--------+------------+----------------------------+------------+
| c92e0b5d-a6be-4104-8eed-1a6ef96d0feb | ip | 10.0.0.1 | rw | active | None | 2021-09-08T11:17:55.000000 | None |
+--------------------------------------+-------------+---------------+--------------+--------+------------+----------------------------+------------+

# manila snapshot-create --name=0908-001-snap02 0908-001

# manila create --name 0908-001-snap02-clone06 --share-type glusterfs --snapshot-id deea91ea-65e6-433e-a954-983ce57f6d97 --availability-zone nova NFS 3
[root@controller ~]# manila show 0908-lpw-001-snap02-clone06
+---------------------------------------+-------------------------------------------------------------------+
| Property | Value |
+---------------------------------------+-------------------------------------------------------------------+
| id | 6ce0c16c-7d0b-4b6c-97a3-07f19748694b |
| size | 3 |
| availability_zone | nova |
| created_at | 2021-09-08T12:27:45.000000 |
| status | available |
| name | 0908-lpw-001-snap02-clone06 |
| description | None |
| project_id | 964f97eb3c044495874b08c5de2207e8 |
| snapshot_id | deea91ea-65e6-433e-a954-983ce57f6d97 |
| share_network_id | None |
| share_proto | NFS |
| metadata | {} |
| share_type | a5a657df-b406-40d5-8178-0895380657eb |
| is_public | False |
| snapshot_support | True |
| task_state | None |
| share_type_name | glusterfs |
| access_rules_status | active |
| replication_type | None |
| has_replicas | False |
| user_id | 63a560d401fb41adac0333ab6e5aecdd |
| create_share_from_snapshot_support | True |
| revert_to_snapshot_support | True |
| share_group_id | None |
| source_share_group_snapshot_member_id | None |
| mount_snapshot_support | False |
| progress | 100% |
| share_server_id | None |
| host | controller@glusterfsnfs1#GLUSTERFSNFS1 |
| export_locations | |
| | id = 3d477ce4-704c-4706-bcc5-3b51442a4298 |
| | path = 172.27.144.47:/manila-e7afb40e-6c2d-413a-bcab-45718d8c63ed |
| | preferred = False |
| | share_instance_id = e7afb40e-6c2d-413a-bcab-45718d8c63ed |
| | is_admin_only = False |
+---------------------------------------+-------------------------------------------------------------------+

# manila access-list 6ce0c16c-7d0b-4b6c-97a3-07f19748694b
+----+-------------+-----------+--------------+-------+------------+------------+------------+
| id | access_type | access_to | access_level | state | access_key | created_at | updated_at |
+----+-------------+-----------+--------------+-------+------------+------------+------------+
+----+-------------+-----------+--------------+-------+------------+------------+------------+

# gluster volume info manila-e7afb40e-6c2d-413a-bcab-45718d8c63ed

Volume Name: manila-e7afb40e-6c2d-413a-bcab-45718d8c63ed
Type: Replicate
Volume ID: 91f771bc-c908-4786-95df-960714fca4d5
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Options Reconfigured:
user.manila-cloned-from: 983b689f-9974-4d46-808a-ab819027db72
nfs.rpc-auth-reject: *
nfs.rpc-auth-allow: 10.0.0.1,all
user.manila-share: e7afb40e-6c2d-413a-bcab-45718d8c63ed