From b814f9fef3efa1bdcb7e03a9161e08721b7bc8c4 Mon Sep 17 00:00:00 2001 From: "vladimir.p" Date: Fri, 15 Jul 2011 17:56:27 -0700 Subject: VSA: first cut. merged with 1279 --- nova/exception.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index ad6c005f8..a3d1a4b3f 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -311,6 +311,10 @@ class VolumeNotFoundForInstance(VolumeNotFound): message = _("Volume not found for instance %(instance_id)s.") +class VolumeNotFoundForVsa(VolumeNotFound): + message = _("Volume not found for vsa %(vsa_id)s.") + + class SnapshotNotFound(NotFound): message = _("Snapshot %(snapshot_id)s could not be found.") @@ -682,3 +686,19 @@ class PasteConfigNotFound(NotFound): class PasteAppNotFound(NotFound): message = _("Could not load paste app '%(name)s' from %(path)s") + + +class VirtualStorageArrayNotFound(NotFound): + message = _("Virtual Storage Array %(id)d could not be found.") + + +class VirtualStorageArrayNotFoundByName(NotFound): + message = _("Virtual Storage Array %(name)s could not be found.") + + +class VirtualDiskTypeNotFound(NotFound): + message = _("Drive Type %(id)d could not be found.") + + +class VirtualDiskTypeNotFoundByName(NotFound): + message = _("Drive Type %(name)s could not be found.") -- cgit From 50b7db2ab71c40732a979b1f424bd60627a74768 Mon Sep 17 00:00:00 2001 From: "vladimir.p" Date: Thu, 18 Aug 2011 13:24:56 -0700 Subject: first cut on types & extra-data (only DB work, no tests) --- nova/exception.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index b09d50797..ff4b7c80e 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -338,6 +338,24 @@ class VolumeNotFoundForInstance(VolumeNotFound): message = _("Volume not found for instance %(instance_id)s.") +class NoVolumeTypesFound(NotFound): + message = _("Zero volume types found.") + + +class VolumeTypeNotFound(NotFound): + message = _("Volume type %(volume_type_id)s could not be found.") + + +class VolumeTypeNotFoundByName(VolumeTypeNotFound): + message = _("Volume type with name %(volume_type_name)s " + "could not be found.") + + +class VolumeTypeExtraSpecsNotFound(NotFound): + message = _("Volume Type %(volume_type_id)s has no extra specs with " + "key %(extra_specs_key)s.") + + class SnapshotNotFound(NotFound): message = _("Snapshot %(snapshot_id)s could not be found.") -- cgit From ef3f02fb37d49ccf6099e012bc27b87d7859a306 Mon Sep 17 00:00:00 2001 From: "vladimir.p" Date: Thu, 18 Aug 2011 15:42:30 -0700 Subject: added volume metadata. Fixed test_volume_types_extra_specs --- nova/exception.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index ff4b7c80e..1b118f6f9 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -338,6 +338,11 @@ class VolumeNotFoundForInstance(VolumeNotFound): message = _("Volume not found for instance %(instance_id)s.") +class VolumeMetadataNotFound(NotFound): + message = _("Volume %(volume_id)s has no metadata with " + "key %(metadata_key)s.") + + class NoVolumeTypesFound(NotFound): message = _("Zero volume types found.") -- cgit From 1d121a42f5072026a3ad19cb5fd1915d7cd2ff63 Mon Sep 17 00:00:00 2001 From: "vladimir.p" Date: Mon, 22 Aug 2011 17:31:48 -0700 Subject: initial cut on volume type APIs --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index 1b118f6f9..01d676b54 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -197,6 +197,10 @@ class InvalidInstanceType(Invalid): message = _("Invalid instance type %(instance_type)s.") +class InvalidVolumeType(Invalid): + message = _("Invalid volume type %(volume_type)s.") + + class InvalidPortRange(Invalid): message = _("Invalid port range %(from_port)s:%(to_port)s.") -- cgit From 4834b920e3186712ab56e65a88c2e8c838d16f9c Mon Sep 17 00:00:00 2001 From: "vladimir.p" Date: Thu, 25 Aug 2011 18:38:35 -0700 Subject: VSA code redesign. Drive types completely replaced by Volume types --- nova/exception.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index f75d0b832..32981f4d5 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -365,10 +365,6 @@ class VolumeTypeExtraSpecsNotFound(NotFound): "key %(extra_specs_key)s.") -class VolumeNotFoundForVsa(VolumeNotFound): - message = _("Volume not found for vsa %(vsa_id)s.") - - class SnapshotNotFound(NotFound): message = _("Snapshot %(snapshot_id)s could not be found.") @@ -799,14 +795,6 @@ class VirtualStorageArrayNotFoundByName(NotFound): message = _("Virtual Storage Array %(name)s could not be found.") -class VirtualDiskTypeNotFound(NotFound): - message = _("Drive Type %(id)d could not be found.") - - -class VirtualDiskTypeNotFoundByName(NotFound): - message = _("Drive Type %(name)s could not be found.") - - class CannotResizeToSameSize(NovaException): message = _("When resizing, instances must change size!") -- cgit