diff options
| author | unicell <unicell@gmail.com> | 2012-08-13 20:19:54 +0800 |
|---|---|---|
| committer | unicell <unicell@gmail.com> | 2012-08-27 23:45:05 +0800 |
| commit | 34c012c709cc5ae577330c7d67ba060293158210 (patch) | |
| tree | e04765cbb3e09e9047c51aa9e03d4b1db15ac80c /nova/exception.py | |
| parent | 5e012d8d45935b68a5ce5d50ed043d4bb8066cf8 (diff) | |
Implement project specific flavors API
blueprint project-specific-flavors
This change implements API extension to manage project specific flavor
types, so that non-public flavor type can only see by projects with
access rights.
Change-Id: Ie2d2c605065b0c76897f843a4548a0c984a05f1a
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 83c3f9c03..95a43a05f 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -776,6 +776,11 @@ class FlavorNotFound(NotFound): message = _("Flavor %(flavor_id)s could not be found.") +class FlavorAccessNotFound(NotFound): + message = _("Flavor access not found for %(flavor_id) / " + "%(project_id) combination.") + + class SchedulerHostFilterNotFound(NotFound): message = _("Scheduler Host Filter %(filter_name)s could not be found.") @@ -849,6 +854,11 @@ class InstanceTypeExists(Duplicate): message = _("Instance Type %(name)s already exists.") +class FlavorAccessExists(Duplicate): + message = _("Flavor access alreay exists for flavor %(flavor_id)s " + "and project %(project_id)s combination.") + + class VolumeTypeExists(Duplicate): message = _("Volume Type %(name)s already exists.") |
