create volume with multiattach > NoneType has no attribute get
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
wangxiyuan |
Bug Description
When you try to create volume with --allow-multiattach and with no volume_type specified (defaults to None), the filter-scheduler hits this exception:
^[[01;31m2017-04-17 12:13:49.923 TRACE oslo_messaging.
^[[01;31m2017-04-17 12:13:49.923 TRACE oslo_messaging.
^[[01;31m2017-04-17 12:13:49.923 TRACE oslo_messaging.
^[[01;31m2017-04-17 12:13:49.923 TRACE oslo_messaging.
^[[01;31m2017-04-17 12:13:49.923 TRACE oslo_messaging.
^[[01;31m2017-04-17 12:13:49.923 TRACE oslo_messaging.
^[[01;31m2017-04-17 12:13:49.923 TRACE oslo_messaging.
The problem is in this code in scheduler/
volume_type = resource_type = request_
...
303 >>>> if multiattach and 'multiattach' not in resource_type.get(
/opt/stack/cinder$ git show
commit 40076180928405d
Merge: 22777e5 1347602
Author: Jenkins <email address hidden>
Date: Thu Apr 13 20:14:33 2017 +0000
Merge "Tests: mock psutil usage in quobyte tests"
Changed in cinder: | |
assignee: | nobody → wangxiyuan (wangxiyuan) |
status: | New → Confirmed |
The workaround is to specify a volume type.