]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix QoS keys not being available to scheduler
authorAnthony Lee <anthony.mic.lee@hp.com>
Wed, 19 Aug 2015 22:48:33 +0000 (15:48 -0700)
committerAnthony Lee <anthony.mic.lee@hp.com>
Wed, 9 Sep 2015 16:40:24 +0000 (09:40 -0700)
commita1d361b2fba79f02b0ccfca408cb173ed403695e
treeb7db42d5dc78289dde54fde293d22fd7b3287029
parentde64f5ad716676b7180365798efc3ea69a4fef0e
Fix QoS keys not being available to scheduler

There is a qos_specs property contained within the properties
passed to filters and weighers during volume placement decision
time. Currently qos_specs is always set to None even when a
QoS spec is associated with a volume type.

This patch exposes the QoS keys by placing them in the
qos_specs property. When no QoS spec is associated with a volume
the qos_specs property would still be set to None.

Change-Id: I5d5d36b56efeadd0884abc2f541ccf44b1010a2e
Closes-Bug: #1486286
cinder/tests/unit/volume/flows/test_create_volume_flow.py
cinder/volume/flows/api/create_volume.py