The associated share will be deleted after delete all share replica
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
manila create NFS 1 --name zhongjun_
+------
| Property | Value |
+------
| status | creating |
| share_type_name | replica-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 | 3e0eca4f-
| size | 1 |
| source_
| user_id | b7f2c522a5644a8
| name | zhongjun_
| share_type | 3f6130d5-
| has_replicas | False |
| replication_type | readable |
| created_at | 2017-09-
| share_proto | NFS |
| mount_snapshot_
| project_id | 87ba30b5315c40e
| metadata | {} |
+------
root@ubuntu:
+------
| Property | Value |
+------
| status | available |
| share_type_name | replica-type |
| description | None |
| availability_zone | nova |
| share_network_id | None |
| export_locations | |
| | path = 10.0.0.
| | preferred = True |
| | is_admin_only = False |
| | id = a67b810b-
| | share_instance_id = d1e56c3d-
| | path = 10.0.0.
| | preferred = False |
| | is_admin_only = False |
| | id = cd6b9457-
| | share_instance_id = d1e56c3d-
| | path = 11.0.0.
| | preferred = False |
| | is_admin_only = True |
| | id = 95ae403d-
| | share_instance_id = d1e56c3d-
| share_server_id | None |
| share_group_id | None |
| host | ubuntu@
| revert_
| access_rules_status | active |
| snapshot_id | None |
| create_
| is_public | False |
| task_state | None |
| snapshot_support | False |
| id | 3e0eca4f-
| size | 1 |
| source_
| user_id | b7f2c522a5644a8
| name | zhongjun_
| share_type | 3f6130d5-
| has_replicas | False |
| replication_type | readable |
| created_at | 2017-09-
| share_proto | NFS |
| mount_snapshot_
| project_id | 87ba30b5315c40e
| metadata | {} |
+------
root@ubuntu:
+------
| Property | Value |
+------
| status | creating |
| share_id | 3e0eca4f-
| availability_zone | None |
| created_at | 2017-09-
| updated_at | None |
| share_network_id | None |
| id | e6bed130-
| share_server_id | None |
| host | |
| replica_state | None |
| cast_rules_
+------
root@ubuntu:
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| d1e56c3d-
| e6bed130-
+------
root@ubuntu:
root@ubuntu:
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| d1e56c3d-
+------
root@ubuntu:
root@ubuntu:
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| d1e56c3d-
+------
root@ubuntu:
+------
| Property | Value |
+------
| status | available |
| share_type_name | replica-type |
| description | None |
| availability_zone | nova |
| share_network_id | None |
| export_locations | |
| | path = 10.0.0.
| | preferred = True |
| | is_admin_only = False |
| | id = a67b810b-
| | share_instance_id = d1e56c3d-
| | path = 10.0.0.
| | preferred = False |
| | is_admin_only = False |
| | id = cd6b9457-
| | share_instance_id = d1e56c3d-
| | path = 11.0.0.
| | preferred = False |
| | is_admin_only = True |
| | id = 95ae403d-
| | share_instance_id = d1e56c3d-
| share_server_id | None |
| share_group_id | None |
| host | ubuntu@
| revert_
| access_rules_status | active |
| snapshot_id | None |
| create_
| is_public | False |
| task_state | None |
| snapshot_support | False |
| id | 3e0eca4f-
| size | 1 |
| source_
| user_id | b7f2c522a5644a8
| name | zhongjun_
| share_type | 3f6130d5-
| has_replicas | False |
| replication_type | readable |
| created_at | 2017-09-
| share_proto | NFS |
| mount_snapshot_
| project_id | 87ba30b5315c40e
| metadata | {} |
+------
root@ubuntu:
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| d1e56c3d-
+------
root@ubuntu:
root@ubuntu:
ERROR: 'NoneType' object has no attribute 'pop'
root@ubuntu:
+------
| ID | Status | Replica State | Share ID | Host | Availability Zone | Updated At |
+------
| 18600f5f-
| 3edb4db9-
| 61408eb9-
| 79b6b406-
| a5a0dbd9-
| b8419a17-
| b97801f1-
| c0992f66-
+------
root@ubuntu:
+------
| ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone |
+------
| 09a969a3-
description: | updated |
description: | updated |
description: | updated |
summary: |
- Share replica problem + Check Share replica problem |
summary: |
- Check Share replica problem + The associated share will be deleted after delete share replica |
summary: |
- The associated share will be deleted after delete share replica + The associated share will be deleted after delete all share replica |
Hi Zhongjun,
The UX/Workflow of share replication is like this:
* Create a share (with a share type that specifies one of three replication types supported)
Notice that the CLI ``manila share-replica-list --share-id SHARE_ID`` will return a "replica". This is the share itself, it is not a secondary mirror of the share.
You can use ``manila show SHARE_ID`` to verify that the share indeed has no secondary mirrors yet. See field "has_replicas".
* Create one or more replicas with CLI ``manila share-replica- create SHARE_ID <REPLICA_AZ>``
* Try to delete the share with CLI ``manila delete SHARE_ID``
You can't delete the share because you have secondary replicas associated with the share
So, how do you delete the share? delete <replica_id_1>, <replica_ id_2>,. ..`` delete` ` to delete the primary share, you should use ``manila delete`` to delete the share.
* Use ``manila share-replica-
On all the secondary (non-active) replicas.. in case of "writable" replication, you can delete all the other active replicas as well, except the primary one.
* You cannot use ``manila share-replica-
``manila reset-replica- state`` is only meant for administrators to change the "replica-state" of the replica directly on the database. This is an option administrators can use to recover from failures when they have corrected something with the replica out-of-band of manila. When you use this on the last replica (the primary) of a share, you confuse and break Manila's API.