summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2012-10-23 12:44:54 -0700
committerDan Smith <danms@us.ibm.com>2012-10-23 14:57:22 -0700
commit0daebe727246eef501c54adaa678995467e3060b (patch)
treef90c06d217ff7e69d0952b152b50b7004e24c435 /nova/openstack
parentd9c35809dc98823a5050f062192b2453f36d1cfd (diff)
downloadnova-0daebe727246eef501c54adaa678995467e3060b.tar.gz
nova-0daebe727246eef501c54adaa678995467e3060b.tar.xz
nova-0daebe727246eef501c54adaa678995467e3060b.zip
Add virt driver capabilities definition
Going forward with the early stages of no-db-compute, we will consistently hit cases where we need to eject some database usage from one virt driver up a few layers. Since those are not commonly used by all, some way of determining (and the higher layer) the properties of the virt driver being used will be useful. We have discussed using something like a mixin interface class and multiple inheritance. We have discussed tricks like detecting if the manage_image_cache() method has been overridden. We have discussed trying it once and catching NotImplementedError and then never trying again. Aside from the first, none of these are unsneaky enough to bite us later. This approach will provide us a way to declare such properties succinctly in the compute driver to help the higher layers know what we want them to do on our behalf. Change-Id: I74dea9322a5b4688319ebf5d9afe416e93401c58
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions