diff options
| author | Jian Wen <wenjianhn@gmail.com> | 2012-08-29 22:29:25 +0800 |
|---|---|---|
| committer | Jian Wen <wenjianhn@gmail.com> | 2012-08-29 22:37:25 +0800 |
| commit | f94391fb41b42909ae9508ed54316199fccfe41d (patch) | |
| tree | 5535c2b2aad6f1b2774fea2b9e443f8b697e3684 /nova/exception.py | |
| parent | 20c6bb6c9000fa0d193f688b668f5f3eeda8fb05 (diff) | |
Add a new exception for live migration.
Raises new exception InvalidLocalStorage instead of
InvalidSharedStorage when block migration is used with shared storage.
Corrects the message of InvalidSharedStorage.
Fixes bug 1043165
Change-Id: I68bfac3f89276edc38c00ca963911fe07456dc0d
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py index 95a43a05f..60cc5ae30 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -864,7 +864,11 @@ class VolumeTypeExists(Duplicate): class InvalidSharedStorage(NovaException): - message = _("%(path)s is on shared storage: %(reason)s") + message = _("%(path)s is not on shared storage: %(reason)s") + + +class InvalidLocalStorage(NovaException): + message = _("%(path)s is not on local storage: %(reason)s") class MigrationError(NovaException): |
