Comment 6 for bug 1683431

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to cinder (master)

Reviewed: https://review.openstack.org/471672
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=f3d66c3254f7a5424be4088dfa767f128ae6cfc3
Submitter: Jenkins
Branch: master

commit f3d66c3254f7a5424be4088dfa767f128ae6cfc3
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'

    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.

    Change-Id: I1140234dd69a644dcbf6fc3a01f382ee101624b2
    Related-bug: #1683431