Virt driver impls don't match ComputeDriver base class API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Daniel Berrange |
Bug Description
There are a number of problems where the virt driver impls do not match the API defined by the base ComputeDriver class.
For example
- Libvirt: Adds 'SOFT' as default value for 'reboot' method but no other class does
- XenAPI: set_admin_passwd takes 2 parameters but base class defines it with 3 parameters in a different order
- VMWare: update_host_status method which doesn't exist in base class & is never called in entire codebase
- All: names of parameters are not the same as names of parameters in the base class
- ...more...
These inconsistencies are functional bugs in the worst, or misleading to maintainers in the best case. It should be possible to write a test using the python 'inspect' module which guarantees that the sub-class APis actually match what they claim to implement from the base class.
Changed in nova: | |
assignee: | nobody → Daniel Berrange (berrange) |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/101876
Review: https:/