When posting allocations for VMs with a non-local disk, the code was
sending an allocation of DISK_GB = 0, which violated the min_unit
resource constraint. Since it is pointless to enter an allocation of
zero units, this patch removes any items in the generated allocations
dict if the value is zero.
Reviewed: https:/ /review. openstack. org/407180 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=200666ad19e 44fb76aab29ed66 4767885b259822
Committed: https:/
Submitter: Jenkins
Branch: master
commit 200666ad19e44fb 76aab29ed664767 885b259822
Author: EdLeafe <email address hidden>
Date: Mon Dec 5 16:15:53 2016 +0000
Do not post allocations that are zero
When posting allocations for VMs with a non-local disk, the code was
sending an allocation of DISK_GB = 0, which violated the min_unit
resource constraint. Since it is pointless to enter an allocation of
zero units, this patch removes any items in the generated allocations
dict if the value is zero.
Closes-Bug: #1647316
Change-Id: I59eff4310e67ce b74086f5ade1a63 7f8cccec7ed