cinder/cinder/scheduler/weights
Eric M Gonzalez 34d75ca1a6 GoodnessWeigher schedules non-type volumes
If the GoodnessWeigher is configured to be the only active weigher within
the scheduler, it cannot schedule a non-typed volumed for creation. This
patch adds a safety assignement to the weigher stats generation to allow
for scheduling untyped volumes.

This patch safely assigns a dictionary data-type to "volume_type" in the
event that:

    weight_properties = {
        "volume_type": None,
        etc..
    }

Volumes created with a volume-type will not cause an exception and will
be scheduled with the volume-type and back-end as configured.

Closes-Bug: 1766966

Change-Id: I7bc77ab02154aee80282e54b19a242bdea0a78ec
Signed-off-by: Eric M Gonzalez <eric@awnix.com>
2018-04-26 17:29:06 -05:00
..
__init__.py Add stochastic weight handler to scheduler 2016-08-02 20:16:01 +00:00
capacity.py Fix "No documentation found in" errors in docs 2017-02-10 12:58:51 +01:00
chance.py Fix "No documentation found in" errors in docs 2017-02-10 12:58:51 +01:00
goodness.py GoodnessWeigher schedules non-type volumes 2018-04-26 17:29:06 -05:00
stochastic.py Fix typo error 2017-03-01 08:52:55 +00:00
volume_number.py Fix "No documentation found in" errors in docs 2017-02-10 12:58:51 +01:00