Create volume without volume type failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Eric Harney |
Bug Description
Creating volume without volume type failed due to the exception thrown in Scheduler:
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
2016-08-04 20:37:32.183 203920 ERROR cinder.
Reproduce Step:
1. Ensure the 'default_
2. Create a volume without specify the volume type
stack@
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2016-08-
| description | None |
| encrypted | False |
| id | 775db6ca-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | vol-wo-type |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | disabled |
| size | 3 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | d7521073c53e4c9
| volume_type | None
3. Check that the new created volume will be in error status
stack@
| migration_status | None |
| os-vol-
| os-vol-
| replication_status | disabled |
| status | error |
Version:
This issue is only seen with the latest code (newer than Aug. 2st)
stack@ubuntu-
commit 5fdfe1f69977e06
Merge: 1681672 0cbb34c
Author: Jenkins <email address hidden>
Date: Thu Aug 4 14:59:50 2016 +0000
Merge "Imported Translations from Zanata"
description: | updated |
Changed in cinder: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in cinder: | |
status: | Confirmed → Opinion |
Changed in tripleo: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → newton-3 |
assignee: | nobody → James Slagle (james-slagle) |
milestone: | newton-3 → none |
no longer affects: | tripleo |
Whether the volume without volume type is supported by Cinder? The exception message "volume_type cannot be None" confused me. Waiting for this issue to be triaged.
Seems to me, this is valid case, and it is supported for a long time. If the cinder doesn't want to support this case anymore, it should failed in the Cinder-API instead of Cinder Scheduler.
Also, I have checked the change log, this behavior is introduced in change: L750 /review. openstack. org/#/c/ 246600/ 43/cinder/ volume/ flows/api/ create_ volume. py
https:/