libvirt: driver class refactoring
The libvirt driver.py class is growing ever larger and more complicated.
There are circular dependencies between this class and other libvirt
classes. This work aims to split some of the functionality out into
new classes
Blueprint information
- Status:
- Complete
- Approver:
- John Garbutt
- Priority:
- Low
- Drafter:
- Daniel Berrange
- Direction:
- Approved
- Assignee:
- Daniel Berrange
- Definition:
- Approved
- Series goal:
- Accepted for kilo
- Implementation:
- Implemented
- Milestone target:
- 2015.1.0
- Started by
- John Garbutt
- Completed by
- John Garbutt
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Libvirt driver class refactoring
Gerrit topic: https:/
Addressed by: https:/
libvirt: introduce new 'Host' class to manage the connection
Its Feature Proposal Freeze now, so lets call this partially complete for juno. No more juno patches please. --johnthetubaguy 22nd August 2014
Sorry, this does not have enough positive reviews to make it for juno-3, please resubmit for kilo. For more information, please contact me (johnthetubaguy) via IRC or email. --johnthetubaguy 2nd September 2014
This doesn't need a spec for kilo, approved. --johnthetubaguy
Addressed by: https:/
virt: delete unused 'interface_stats' method
Addressed by: https:/
virt: Convert more tests to use instance objects
Addressed by: https:/
libvirt: Convert more tests to use instance objects
Addressed by: https:/
virt: pass instance object to block_stats & get_instance_
Addressed by: https:/
libvirt: introduce a fixture for mocking out libvirt connections
Addressed by: https:/
libvirt: convert test_host.py to use FakeLibvirtFixture
Addressed by: https:/
libvirt: sanitize use of mocking in test_host.py
Addressed by: https:/
libvirt: remove unused get_connection parameter from VIF driver
Addressed by: https:/
libvirt: pass Host object into firewall class
Addressed by: https:/
libvirt: remove pointless _get_host_uuid method
Addressed by: https:/
libvirt: introduce new helper for getting libvirt domain
Addressed by: https:/
libvirt: move domain lookup helpers into Host class
Addressed by: https:/
libvirt: move domain list helpers into Host class
Addressed by: https:/
libvirt: move capabilities helper into host.py
Addressed by: https:/
libvirt: remove/revert pointless logic for getVersion call
Addressed by: https:/
libvirt: move _get_hypervisor_* functions to Host class
Addressed by: https:/
libvirt: convert LibvirtConnTestCase to use fakelibvirt fixture
Addressed by: https:/
libvirt: rename self.libvirtcon
Addressed by: https:/
libvirt: rename self.conn in LibvirtVolume{
Addressed by: https:/
libvirt: rename conn variable in LibvirtConnTestCase
Moving to kilo-2, as its not been moved into the NeedsCodeReview state, it is assumed that not all patches are yet up for review. --johnthetubaguy 16th December 2014
Gerrit topic: https:/
Gerrit topic: https:/
All patches merged, now reached feature proposal freeze, marking as complete. --johnthetubaguy 26th Jan 2015