If volume_type is None and then create volumes with allow-multiattach,
Cinder-schduler will raise error:
AttributeError: 'NoneType' object has no attribute 'get'
Ied42d13b642617dd239ea92c019354b90657821a didn't fix it completely.
The error still exists. Here is the reproduce command:
"cinder create 1 ----allow-multiattach"
Because that the volume_type is always in the "request_spec", if
users doesn't pass it, its value is None.
Reviewed: https:/ /review. openstack. org/471672 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=f3d66c3254f 7a5424be4088dfa 767f128ae6cfc3
Committed: https:/
Submitter: Jenkins
Branch: master
commit f3d66c3254f7a54 24be4088dfa767f 128ae6cfc3
Author: wangxiyuan <email address hidden>
Date: Wed Jun 7 17:07:56 2017 +0800
Fix NoneType has no attribute get error
If volume_type is None and then create volumes with allow-multiattach,
Cinder-schduler will raise error:
AttributeError: 'NoneType' object has no attribute 'get'
Ied42d13b64 2617dd239ea92c0 19354b90657821a didn't fix it completely. multiattach"
The error still exists. Here is the reproduce command:
"cinder create 1 ----allow-
Because that the volume_type is always in the "request_spec", if
users doesn't pass it, its value is None.
Change-Id: I1140234dd69a64 4dcbf6fc3a01f38 2ee101624b2
Related-bug: #1683431