From 772c5d47d5bdffcd4ff8e09f4116d22568bf6eb9 Mon Sep 17 00:00:00 2001 From: Ben Swartzlander Date: Sat, 1 Sep 2012 23:39:39 -0400 Subject: Backport changes from Cinder to Nova-Volume NetApp C-mode driver. Generic NFS-based block device driver. NetApp NFS-based block device driver. blueprint netapp-volume-driver-cmode blueprint nfs-files-as-virtual-block-devices blueprint netapp-nfs-cinder-driver bug 1037619 bug 1037622 Change-Id: I513c3f88bcb03f3b71a453f92f5912d7730a8bbc --- nova/exception.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index cd1eabc9d..36d8f051c 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -1021,6 +1021,18 @@ class VolumeBackendAPIException(NovaException): "backend API: data=%(data)s") +class NfsException(NovaException): + message = _("Unknown NFS exception") + + +class NfsNoSharesMounted(NotFound): + message = _("No mounted NFS shares found") + + +class NfsNoSuitableShareFound(NotFound): + message = _("There is no share which can host %(volume_size)sG") + + class InstanceTypeCreateFailed(NovaException): message = _("Unable to create instance type") -- cgit