Convert get_available_resources to use an object instead of dict
The nova.virt.Driver class defines a get_available_
The goal is to add an object in nova/virt/
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Daniel Berrange
- Direction:
- Needs approval
- Assignee:
- Daniel Berrange
- Definition:
- Superseded
- Series goal:
- None
- Implementation:
-
Unknown
- Milestone target:
- None
- Started by
- Completed by
- Daniel Berrange
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
libvirt: fix overly strict CPU model comparison in live migration
Addressed by: https:/
libvirt: remove pointless HostState class
Addressed by: https:/
libvirt: fully parse PCI addresses to integer data type
Addressed by: https:/
libvirt: fully parse PCI vendor/product IDs to integer data type
Addressed by: https:/
pci: move filtering of devices up into resource tracker
Addressed by: https:/
vmware: delete cpu_info data from get_available_
Addressed by: https:/
ironic: delete cpu_info data from get_available_
Addressed by: https:/
xenapi: fix structure of data reported for cpu_info
Addressed by: https:/
hyperv: use standard architecture constants for CPU model
Addressed by: https:/
ironic: remove non-standard info in get_available_
Addressed by: https:/
virt: introduce VirtInstanceInfo object
Addressed by: https:/
virt: introduce VirtPCIDeviceInfo & VirtPCIAddressInfo classes
Addressed by: https:/
virt: introduce VirtCPUModel object
Addressed by: https:/
virt: introduce VirtHostResources object
Addressed by: https:/
virt: switch get_available_
Addressed by: https:/
virt: switch get_available_
Addressed by: https:/
virt: switch get_available_
Addressed by: https:/
virt: switch get_available_
Addressed by: https:/
virt: switch get_available_
This seems to conflict with the work the scheduler sub group are already doing, I think this needs a spec to try and reduce duplicate efforts --johnthetubaguy 14th October 2014
Speaking with Paul Murray / Sylvain Bauza their work is focused on the resource tracker, while this work is entirely focused on the virt drivers. These are complementary efforts to each other.
This is really just a straight conversion of the dict into an class with attributes. It isn't attempting to make any semantic changes to the virt driver API, so I don't think it needs to go through the full spec process. It is really just a simple cleanup IMHO.
Addressed by: https:/
compute: rename hvtype.py to hv_type.py
It was more in reference to your comments here: https:/
I actually think this needs a spec. There is some discussion going on on the list right now, but it also intertwines tightly with the scheduler work. --dansmith 21-Oct-2014
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
virt: Convert get_available_
This work will be tracked as part of https:/