When one creates a manila share from a snapshot, the new share should have the same volume type as the original share on which the snapshot is based. However, the new share does not get the volume type unless it is explicitly specified.
Here is a log with upstream master as of 2015-02-10:
tbarron@ubuntu2:/opt/stack/manila$ manila create --name Share1 --share-network manila-share-net --volume-type Type1 NFS 1
+-------------------+--------------------------------------+
| Property | Value |
+-------------------+--------------------------------------+
| status | creating |
| description | None |
| availability_zone | nova |
| share_network_id | e045493f-b056-437a-9bb3-90aeebea16e9 |
| share_server_id | None |
| host | None |
| snapshot_id | None |
| id | c3b65861-f41a-4c0e-9efc-30bf72df2e74 |
| size | 1 |
| name | Share1 |
| created_at | 2015-02-10T08:57:50.017947 |
| export_location | None |
| share_proto | NFS |
| volume_type | 613d86ac-840c-4228-8dc8-dd38ecc5850e |
| project_id | 20d5a9c6523f4cd69d92ce9318cbc896 |
| metadata | {} |
+-------------------+--------------------------------------+
tbarron@ubuntu2:/opt/stack/manila$ manila list
+--------------------------------------+--------+------+-------------+-----------+-------------+------------------------------------------------------+----------------------------------------------+
| ID | Name | Size | Share Proto | Status | Volume Type | Export location | Host |
+--------------------------------------+--------+------+-------------+-----------+-------------+------------------------------------------------------+----------------------------------------------+
| c3b65861-f41a-4c0e-9efc-30bf72df2e74 | Share1 | 1 | NFS | available | Type1 | 10.0.0.2:/share_c3b65861_f41a_4c0e_9efc_30bf72df2e74 | ubuntu2@cmode_multi_svm#aggr_29122014_140846 |
+--------------------------------------+--------+------+-------------+-----------+-------------+------------------------------------------------------+----------------------------------------------+
tbarron@ubuntu2:/opt/stack/manila$ manila snapshot-create --name Snapshot1 Vol1
ERROR: No share with a name or ID of 'Vol1' exists.
tbarron@ubuntu2:/opt/stack/manila$ manila snapshot-create --name Snapshot1 Share1
+-----------------+------------------------------------------------------+
| Property | Value |
+-----------------+------------------------------------------------------+
| status | creating |
| share_id | c3b65861-f41a-4c0e-9efc-30bf72df2e74 |
| description | None |
| created_at | 2015-02-10T08:58:24.964558 |
| export_location | 10.0.0.2:/share_c3b65861_f41a_4c0e_9efc_30bf72df2e74 |
| share_proto | NFS |
| id | 8a0c4bf5-78e4-46e6-b950-26ae00e1d287 |
| size | 1 |
| share_size | 1 |
| name | Snapshot1 |
+-----------------+------------------------------------------------------+
tbarron@ubuntu2:/opt/stack/manila$ manila snapshot-list
+--------------------------------------+--------------------------------------+-----------+-----------+------------+
| ID | Share ID | Status | Name | Share Size |
+--------------------------------------+--------------------------------------+-----------+-----------+------------+
| 8a0c4bf5-78e4-46e6-b950-26ae00e1d287 | c3b65861-f41a-4c0e-9efc-30bf72df2e74 | available | Snapshot1 | 1 |
+--------------------------------------+--------------------------------------+-----------+-----------+------------+
tbarron@ubuntu2:/opt/stack/manila$ manila create --name Share2 --snapshot-id 8a0c4bf5-78e4-46e6-b950-26ae00e1d287 NFS 1
+-------------------+----------------------------------------------+
| Property | Value |
+-------------------+----------------------------------------------+
| status | creating |
| description | None |
| availability_zone | nova |
| share_network_id | e045493f-b056-437a-9bb3-90aeebea16e9 |
| share_server_id | None |
| host | ubuntu2@cmode_multi_svm#aggr_29122014_140846 |
| snapshot_id | 8a0c4bf5-78e4-46e6-b950-26ae00e1d287 |
| id | 5e65b949-ca1b-4f39-8f0f-626b73f5c362 |
| size | 1 |
| name | Share2 |
| created_at | 2015-02-10T08:59:05.000000 |
| export_location | None |
| share_proto | NFS |
| volume_type | None |
| project_id | 20d5a9c6523f4cd69d92ce9318cbc896 |
| metadata | {} |
+-------------------+----------------------------------------------+
tbarron@ubuntu2:/opt/stack/manila$ manila list
+--------------------------------------+--------+------+-------------+-----------+-------------+------------------------------------------------------+----------------------------------------------+
| ID | Name | Size | Share Proto | Status | Volume Type | Export location | Host |
+--------------------------------------+--------+------+-------------+-----------+-------------+------------------------------------------------------+----------------------------------------------+
| 5e65b949-ca1b-4f39-8f0f-626b73f5c362 | Share2 | 1 | NFS | available | None | 10.0.0.2:/share_5e65b949_ca1b_4f39_8f0f_626b73f5c362 | ubuntu2@cmode_multi_svm#aggr_29122014_140846 |
| c3b65861-f41a-4c0e-9efc-30bf72df2e74 | Share1 | 1 | NFS | available | Type1 | 10.0.0.2:/share_c3b65861_f41a_4c0e_9efc_30bf72df2e74 | ubuntu2@cmode_multi_svm#aggr_29122014_140846 |
+--------------------------------------+--------+------+-------------+-----------+-------------+------------------------------------------------------+----------------------------------------------+
tbarron@ubuntu2:/opt/stack/manila$
Fix proposed to branch: master /review. openstack. org/169917
Review: https:/