summaryrefslogtreecommitdiff
path: root/nova/exception.py
diff options
context:
space:
mode:
authorSilvan Kaiser <silvan@quobyte.com>2017-11-22 14:35:11 +0100
committerSilvan Kaiser <silvan@quobyte.com>2019-10-07 14:00:02 +0000
commit37e45ad44c22a5b9346bece8279cde3691562e52 (patch)
treed4f2bbb44b75ffeec2b846749e5639a5388c8d5c /nova/exception.py
parent31694d7e2702d732a97a3fa82a7e3a3ad264f5bb (diff)
downloadnova-37e45ad44c22a5b9346bece8279cde3691562e52.tar.gz
Fixes multi-registry config in Quobyte driver
This closes a bug concerning multi-registry configurations for Quobyte volumes due to no longer using the is_mounted() method that failed in that case. Besides, this adds exception handling for the unmount call that is issued on trying to mount an already mounted volume. NOTE: The original commit also added a new feature (fs type based validation) which is omitted in this backport. Closes-Bug: #1737131 Change-Id: Ia5a23ce1123a68608ee2ec6f2ac5dca02da67c59 (cherry picked from commit 05a73c0f3a9f8edf9024f9870279bc6fb7bba2e7) (cherry picked from commit 656aa1cd40570154df606484d31616989b5296aa) (cherry picked from commit c958ad8a68ea9a8ea465d9e3dd889248d9f42481)
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index badafe5cc0..fe492b4328 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -342,6 +342,10 @@ class InvalidVolumeAccessMode(Invalid):
msg_fmt = _("Invalid volume access mode: %(access_mode)s")
+class StaleVolumeMount(InvalidVolume):
+ msg_fmt = _("The volume mount at %(mount_path)s is unusable.")
+
+
class InvalidMetadata(Invalid):
msg_fmt = _("Invalid metadata: %(reason)s")