Steps:
1. Create a source volume without volume_type.
2. Create volume with volume_type from the source volume.
3. Create cloned volume failed.
such as,
root@ubuntu-xx:~# cinder list
+--------------------------------------+-----------+------------+------+--------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------------+------+--------------+----------+-------------+
| d9ea8a2f-9294-4dc3-a906-fd9ab4ededb3 | available | test_iscsi | 1 | - | false | |
+--------------------------------------+-----------+------------+------+--------------+----------+-------------+
root@ubuntu-xx:~# cinder create --volume-type cd743287-db88-4ba3-8503-b58c64e78dcb --source-volid d9ea8a2f-9294-4dc3-a906-fd9ab4ededb3 1
ERROR: Invalid volume type: id cannot be None (HTTP 400) (Request-ID: req-31fa0411-f188-4738-8512-5533d1691e8e)
It's same with "Create volume from snapshot".
Fix proposed to branch: master /review. openstack. org/325714
Review: https:/