Create volume failed because of volume type name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Yikun Jiang |
Bug Description
I create a volume type, then create a volume using the volume type, eventually create failed.
When the volume type name is defined in the uuid format, an error is reported.
Error is as follows:
ERROR: Volume type 64cc00e2-
The steps are as follows:
1. Creating a volume type
[root@node01 nova]# cinder type-create 64cc00e2-
+------
| ID | Name | Description | Is_Public |
+------
| 29e5c288-
+------
2. Setting the volume backend for the volume type
[root@node01 nova]# cinder type-key 64cc00e2-
[root@node01 nova]# cinder extra-specs-list
+------
| ID | Name | extra_specs |
+------
| 29e5c288-
3.Creating a volume failed because of using the volume type name
[root@node01 nova]# cinder create --volume-type 64cc00e2-
ERROR: Volume type 64cc00e2-
4. But creating a volume success with using the volume type id, as the same volume type above setp 3.
[root@node01 nova]# cinder create --volume-type 29e5c288-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2018-09-
| description | None |
| encrypted | False |
| id | 755d52f3-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | sogof |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | 27c9af73a62a4ee
| volume_type | 64cc00e2-
+------
[root@node01 nova]# cinder list | grep sogof
| 755d52f3-
Changed in cinder: | |
assignee: | nobody → Guangfeng Su (sogof) |
Changed in cinder: | |
assignee: | Guangfeng Su (sogof) → Yikun Jiang (yikunkero) |
Changed in cinder: | |
assignee: | Yikun Jiang (yikunkero) → nobody |
assignee: | nobody → Yikun Jiang (yikunkero) |
assignee: | Yikun Jiang (yikunkero) → nobody |
Changed in cinder: | |
assignee: | nobody → Guangfeng Su (sogof) |
Fix proposed to branch: master /review. openstack. org/605020
Review: https:/