commit 0d938d7b41f60a4c0bc28c3cdb361609f346758b
Author: Eric M Gonzalez <email address hidden>
Date: Wed Apr 25 15:31:27 2018 -0500
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:
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 <email address hidden>
(cherry picked from commit 34d75ca1a6eea03bc0fe856bf1a63e7d8d60f024)
(cherry picked from commit a02126af7933ae4d5356bc6fa2e3422854ba2838)
Reviewed: https:/ /review. openstack. org/580686 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=0d938d7b41f 60a4c0bc28c3cdb 361609f346758b
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 0d938d7b41f60a4 c0bc28c3cdb3616 09f346758b
Author: Eric M Gonzalez <email address hidden>
Date: Wed Apr 25 15:31:27 2018 -0500
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:
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: I7bc77ab02154ae e80282e54b19a24 2bdea0a78ec bc0fe856bf1a63e 7d8d60f024) d5356bc6fa2e342 2854ba2838)
Signed-off-by: Eric M Gonzalez <email address hidden>
(cherry picked from commit 34d75ca1a6eea03
(cherry picked from commit a02126af7933ae4