diff options
| author | John Griffith <john.griffith@solidfire.com> | 2012-05-04 11:31:56 -0600 |
|---|---|---|
| committer | John Griffith <john.griffith@solidfire.com> | 2012-05-10 13:36:32 -0600 |
| commit | dcad314fb9713104f0029311c43907e362ec6d49 (patch) | |
| tree | 4e6fffab1e7f064e94cee264192d05269ad1c0d4 /nova/exception.py | |
| parent | d9ed81222048f589b6863aaf2a99983ba5a3094f (diff) | |
Remove instance Foreign Key in volumes table, replace with instance_uuid
* Remove the instance relationship and instance_id FK
* Add instance_uuuid column to volumes table
* Passed unit tests and devstack tests
Change-Id: Id598f1f1d7915d1af6bf3dd75e5819dce08aaa0f
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py index d724063ef..c97290480 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -26,7 +26,6 @@ SHOULD include dedicated exception logging. import functools import itertools -import sys import webob.exc @@ -420,6 +419,10 @@ class InvalidEc2Id(Invalid): message = _("Ec2 id %(ec2_id)s is unacceptable.") +class InvalidUUID(Invalid): + message = _("Expected a uuid but received %(uuid).") + + class NotFound(NovaException): message = _("Resource could not be found.") code = 404 |
