RFE: Choose VMware datastore in dependence of the provisioned space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Wishlist
|
Unassigned | ||
oslo.vmware |
Fix Released
|
Wishlist
|
int32bit |
Bug Description
At the moment the _select_datastore method in the VMware driver chooses the in dependence of the free space. The datastore with the most free space will be chosen for a new instance.
On of our customers want to place new instances on the datastore with the less provisioned space and not the one with the most free space.
The amount of provisioned space is not directly provided by the VMware API and has to be calculated by using the capacity, the free space and the uncommitted bytes of the datastore. provisionedSpace = Capacity - freeSpace - uncommitted.
Following changes are necessary to support the selection of a datastore in dependence of the provisioned space:
* The uncommitted property is not requested by the get_datastore method. The get_datastore method hast to request the uncommitted property.
* The Datastore class does not provide a keyword argument for the amount of provisioned space. A provisioned space keyword argument has to be added to the Datastore class.
* The _select_datastore method has to calculate the provisioned space of a datastore.
* A new configuration parameter datastore_
* When datastore_
Changed in nova: | |
importance: | Undecided → Wishlist |
summary: |
- Choose VMware datastore in dependence of the provisioned space + RFE: Choose VMware datastore in dependence of the provisioned space |
Changed in nova: | |
assignee: | nobody → int32bit (int32bit) |
Changed in nova: | |
status: | New → In Progress |
Changed in oslo.vmware: | |
status: | New → In Progress |
Changed in oslo.vmware: | |
status: | In Progress → Fix Released |
Changed in nova: | |
assignee: | int32bit (int32bit) → Christian Berendt (berendt) |
Changed in nova: | |
assignee: | Christian Berendt (berendt) → David Rabel (rabel-b1) |
Changed in nova: | |
status: | In Progress → New |
assignee: | David Rabel (rabel-b1) → nobody |
importance: | Undecided → Wishlist |
status: | New → Triaged |
tags: | added: vmware |
Add 'uncommitted' field to the 'Datastore' class
The 'uncommitted' field is in official API, but not in our Datastore
class, we need it to compute the amount of provisioned space:
provisionedSpace = Capacity - freeSpace - uncommitted
So a `uncommitted` keyword argument has to be added to the Datastore
class.