From dcad314fb9713104f0029311c43907e362ec6d49 Mon Sep 17 00:00:00 2001 From: John Griffith Date: Fri, 4 May 2012 11:31:56 -0600 Subject: 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 --- nova/exception.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nova/exception.py') 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 -- cgit