diff options
| author | Sean Dague <sdague@linux.vnet.ibm.com> | 2012-06-01 17:19:54 -0400 |
|---|---|---|
| committer | Sean Dague <sdague@linux.vnet.ibm.com> | 2012-06-11 11:16:18 -0400 |
| commit | b1dc846170e67ce63ef78d9ef86fe287cb97c9a1 (patch) | |
| tree | bf506eddd19189c79a3d9a3a49893bb1ec1f3e17 /nova/exception.py | |
| parent | 9072639e9440cd1b0a0c75904a13cb6a5111a0f4 (diff) | |
add unit tests for new virt driver loader
Continues work on bp:virt-driver-cleanup
Add unit tests to test the loading of the new and old style loaders
Fix libvirt driver to make read_only optional on the constructor
Fix fake driver to correctly have the kwarg be read_only
Add VirtDriverNotFound exception to make get_connection failures more
explicit
Factor out fake backend replacement (currently just libvirt) to a
seperate super class
Remove touching FLAGS and use self.flags instead
Change-Id: I089d0dd9c97f87478b922f4c3e26c45891eaf6cc
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 940a5a410..e5ae3d267 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -429,6 +429,10 @@ class NotFound(NovaException): code = 404 +class VirtDriverNotFound(NotFound): + message = _("Could not find driver for connection_type %(name)s") + + class VolumeNotFound(NotFound): message = _("Volume %(volume_id)s could not be found.") |
