manila share-replica-promote does not enable autogrowth/-shrink of the share on NetApp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
In Progress
|
Medium
|
Fernando Ferraz |
Bug Description
Description
===========
Creating a replica for a share provisions a new volume with autogrowth/-shrink enabled. The replica can grow/shrink depending on the settings of the share.
Promoting a replica does not update the "new" replica/share to also have autogrowith/-shrink enabled.
Steps to reproduce
==================
stack@openstack:~> manila create --name test NFS 1
+------
| Property | Value |
+------
| id | 3a8878c2-
| size | 1 |
| availability_zone | None |
| created_at | 2022-01-
| status | creating |
| name | test |
| description | None |
| project_id | 97d1893f1b08400
| snapshot_id | None |
| share_network_id | None |
| share_proto | NFS |
| metadata | {} |
| share_type | f0655acb-
| is_public | False |
| snapshot_support | True |
| task_state | None |
| share_type_name | shared |
| access_rules_status | active |
| replication_type | dr |
| has_replicas | False |
| user_id | aad0db47eeb1437
| create_
| revert_
| share_group_id | None |
| source_
| mount_snapshot_
| progress | None |
| share_server_id | None |
| host | |
+------
stack@openstack:~> manila list
+------
| ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone |
+------
| 3a8878c2-
+------
stack@openstack:~> manila show test
+------
| Property | Value |
+------
| id | 3a8878c2-
| size | 1 |
| availability_zone | nova |
| created_at | 2022-01-
| status | available |
| name | test |
| description | None |
| project_id | 97d1893f1b08400
| snapshot_id | None |
| share_network_id | None |
| share_proto | NFS |
| metadata | {} |
| share_type | f0655acb-
| is_public | False |
| snapshot_support | True |
| task_state | None |
| share_type_name | shared |
| access_rules_status | active |
| replication_type | dr |
| has_replicas | False |
| user_id | aad0db47eeb1437
| create_
| revert_
| share_group_id | None |
| source_
| mount_snapshot_
| progress | 100% |
| share_server_id | None |
| host | openstack@
| export_locations | |
| | id = 48dde46b-
| | path = 192.168.
| | preferred = True |
| | share_instance_id = 421b4632-
| | is_admin_only = False |
| | id = 2b051a20-
| | path = 192.168.
| | preferred = True |
| | share_instance_id = 421b4632-
| | is_admin_only = False |
+------
vsim1::*> vol show -vserver svm-1 -volume share_421b4632_
vserver volume autosize-mode
------- -------
svm-1 share_421b4632_
stack@openstack:~> manila share-replica-
+------
| Property | Value |
+------
| id | f5c625c9-
| share_id | 3a8878c2-
| availability_zone | None |
| created_at | 2022-01-
| status | creating |
| share_network_id | None |
| replica_state | None |
| updated_at | None |
| share_server_id | None |
| host | |
| cast_rules_
+------
stack@openstack:~> manila share-replica-list
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| 421b4632-
| f5c625c9-
+------
stack@openstack:~> manila share-replica-show f5c625c9-
+------
| Property | Value |
+------
| id | f5c625c9-
| share_id | 3a8878c2-
| availability_zone | nova |
| created_at | 2022-01-
| status | available |
| share_network_id | None |
| replica_state | in_sync |
| updated_at | 2022-01-
| share_server_id | None |
| host | openstack@
| cast_rules_
| export_locations | [] |
+------
vsim1::*> vol show -vserver svm-1 -volume share_f5c625c9_
vserver volume autosize-mode
------- -------
svm-1 share_f5c625c9_
*** Promote ***
stack@openstack:~> manila share-replica-
stack@openstack:~> manila share-replica-list
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| 421b4632-
| f5c625c9-
+------
stack@openstack:~> manila share-replica-list
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| 421b4632-
| f5c625c9-
+------
(new source, former replica)
vsim1::*> vol show -vserver svm-1 -volume share_f5c625c9_
vserver volume autosize-mode
------- -------
svm-1 share_f5c625c9_
(new replica, former source)
vsim1::*> vol show -vserver svm-1 -volume share_421b4632_
vserver volume autosize-mode
------- -------
svm-1 share_421b4632_
Expected results
================
The promoted share should have autosize-mode set to grow_shrink.
Actual result
=============
It looks like autosize-mode of the promoted share is not touched.
Environment
===========
* Version: latest / also seen in Victoria
* Storage Backend: NetApp / Simulator
Logs & Configs
==============
N/A
tags: | added: netapp replication |
Changed in manila: | |
importance: | Undecided → Medium |
Changed in manila: | |
assignee: | nobody → Fernando Ferraz (fernando-ferraz) |
Changed in manila: | |
status: | New → In Progress |
Additional information is at https:/ /meetings. opendev. org/meetings/ manila/ 2022/manila. 2022-01- 13-15.01. log.html