Comment 0 for bug 1733286

Revision history for this message
haobing1 (haobing1) wrote :

reproduction;
1. create a share :
[root@node-2 home]# manila show 295ca2f7-ba23-44f3-bacb-7abbf9e21653
+-----------------------------+-----------------------------------------------------------------------+
| Property | Value |
+-----------------------------+-----------------------------------------------------------------------+
| status | available |
| share_type_name | default_share_type |
| description | None |
| availability_zone | nova |
| share_network_id | 07010f37-c6c2-44b2-ae82-50fd783fd8bd |
| export_locations | |
| | path = 10.254.0.14:/shares/share-d7fe697f-a017-47dd-8888-69591635ec8e |
| | preferred = False |
| | is_admin_only = False |
| | id = 16926e5f-d425-4fd5-9fce-242bc1fd169d |
| | share_instance_id = d7fe697f-a017-47dd-8888-69591635ec8e |
| share_server_id | 32c3ac58-a027-4611-8fbb-0cfd45f02887 |
| host | node-2.domain.tld@london#london |
| access_rules_status | active |
| snapshot_id | None |
| is_public | False |
| task_state | None |
| snapshot_support | True |
| id | 295ca2f7-ba23-44f3-bacb-7abbf9e21653 |
| size | 1 |
| name | hb |
| share_type | 52417b1d-ca28-47ab-a778-9214cc774de1 |
| has_replicas | False |
| replication_type | None |
| created_at | 2017-11-20T04:31:18.000000 |
| share_proto | NFS |
| consistency_group_id | None |
| source_cgsnapshot_member_id | None |
| project_id | 310631233ce84963a2124633cc584058 |
| metadata | {} |
+-----------------------------+-----------------------------------------------------------------------+
2.add the access
[root@node-2 home]# manila access-list 295ca2f7-ba23-44f3-bacb-7abbf9e21653
+--------------------------------------+-------------+----------------+--------------+--------+
| id | access_type | access_to | access_level | state |
+--------------------------------------+-------------+----------------+--------------+--------+
| 0240bce6-31b8-40e1-aef2-0d2c6aee4db7 | ip | 192.168.111.20 | rw | active |
| 20633655-1366-4936-9f9f-120289ee2b82 | ip | 192.168.111.19 | rw | active |
+--------------------------------------+-------------+----------------+--------------+--------+

3. mount the share in the vm

4. create two file 'aaa', 'bbb' in the nfs share

5.create a share snapshot
[root@node-2 home]# manila snapshot-show 644e8346-b871-4762-a9e3-c23a709ba512
+-------------------+--------------------------------------+
| Property | Value |
+-------------------+--------------------------------------+
| status | available |
| share_id | 295ca2f7-ba23-44f3-bacb-7abbf9e21653 |
| description | None |
| created_at | 2017-11-20T05:17:28.000000 |
| share_proto | NFS |
| provider_location | e7914f82-82cd-4149-8d79-4a52d519b301 |
| id | 644e8346-b871-4762-a9e3-c23a709ba512 |
| size | 1 |
| share_size | 1 |
| name | hb_snap |
+-------------------+--------------------------------------+

6.create a share from snapshot
[root@node-2 home]# manila show fc745b62-d9c1-4d2c-9957-47437e276f13
+-----------------------------+-----------------------------------------------------------------------+
| Property | Value |
+-----------------------------+-----------------------------------------------------------------------+
| status | available |
| share_type_name | default_share_type |
| description | Share from a snapshot. |
| availability_zone | nova |
| share_network_id | 07010f37-c6c2-44b2-ae82-50fd783fd8bd |
| export_locations | |
| | path = 10.254.0.14:/shares/share-2cc3de10-290b-4acb-bd5a-1c077a869ac3 |
| | preferred = False |
| | is_admin_only = False |
| | id = b3e4ea66-d958-428a-937a-3dbc333b716a |
| | share_instance_id = 2cc3de10-290b-4acb-bd5a-1c077a869ac3 |
| share_server_id | 32c3ac58-a027-4611-8fbb-0cfd45f02887 |
| host | node-2.domain.tld@london#london |
| access_rules_status | active |
| snapshot_id | 644e8346-b871-4762-a9e3-c23a709ba512 |
| is_public | False |
| task_state | None |
| snapshot_support | True |
| id | fc745b62-d9c1-4d2c-9957-47437e276f13 |
| size | 1 |
| name | from_snap |
| share_type | 52417b1d-ca28-47ab-a778-9214cc774de1 |
| has_replicas | False |
| replication_type | None |
| created_at | 2017-11-20T05:20:13.000000 |
| share_proto | NFS |
| consistency_group_id | None |
| source_cgsnapshot_member_id | None |
| project_id | 310631233ce84963a2124633cc584058 |
| metadata | {u'source': u'snapshot'} |
+-----------------------------+-----------------------------------------------------------------------+
7.add the access for snapshot share
[root@node-2 home]# manila access-list fc745b62-d9c1-4d2c-9957-47437e276f13
+--------------------------------------+-------------+----------------+--------------+--------+
| id | access_type | access_to | access_level | state |
+--------------------------------------+-------------+----------------+--------------+--------+
| 6989bd82-cd1e-4e53-90df-be37a617a550 | ip | 192.168.111.20 | rw | active |
| b007740c-d01c-49f8-a063-633f8f0f78b0 | ip | 192.168.111.19 | rw | active |
+--------------------------------------+-------------+----------------+--------------+--------+

8.mount snapshot share in the same vm as source share

9.rm the 'aaa' file in the vm source share nfs dir

10. now, we foud the 'aaa' file was aslo disappear in the snapshot share nfs dir in th vm
 this is incorrect.

11.but,in the nfs server vm we find the snapshot share have the all 'aaa' and 'bbb' file is ok.