diff options
| author | vladimir.p <vladimir@zadarastorage.com> | 2011-08-24 09:10:28 -0700 |
|---|---|---|
| committer | vladimir.p <vladimir@zadarastorage.com> | 2011-08-24 09:10:28 -0700 |
| commit | cac910b2b58536eb8ef151b1b5a48ea95d0df51b (patch) | |
| tree | 8e0c07bf59221ac64858c9dc610b376429ad4236 /nova/exception.py | |
| parent | 29940dd27f3a40a4ad54bc2f7a4cea5ac2226b83 (diff) | |
| parent | c8920f480233546d8a57265da66de7821c32ac7e (diff) | |
| download | nova-cac910b2b58536eb8ef151b1b5a48ea95d0df51b.tar.gz nova-cac910b2b58536eb8ef151b1b5a48ea95d0df51b.tar.xz nova-cac910b2b58536eb8ef151b1b5a48ea95d0df51b.zip | |
merged with rev.1485
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 01d676b54..067639042 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -450,6 +450,15 @@ class NoNetworksFound(NotFound): message = _("No networks defined.") +class NetworkNotFoundForProject(NotFound): + message = _("Either Network uuid %(network_uuid)s is not present or " + "is not assigned to the project %(project_id)s.") + + +class NetworkHostNotSet(NovaException): + message = _("Host is not set to the network (%(network_id)s).") + + class DatastoreNotFound(NotFound): message = _("Could not find the datastore reference(s) which the VM uses.") @@ -483,6 +492,19 @@ class FixedIpNotFoundForHost(FixedIpNotFound): message = _("Host %(host)s has zero fixed ips.") +class FixedIpNotFoundForNetwork(FixedIpNotFound): + message = _("Fixed IP address (%(address)s) does not exist in " + "network (%(network_uuid)s).") + + +class FixedIpAlreadyInUse(NovaException): + message = _("Fixed IP address %(address)s is already in use.") + + +class FixedIpInvalid(Invalid): + message = _("Fixed IP address %(address)s is invalid.") + + class NoMoreFixedIps(Error): message = _("Zero fixed ips available.") @@ -568,6 +590,16 @@ class SecurityGroupNotFoundForRule(SecurityGroupNotFound): message = _("Security group with rule %(rule_id)s not found.") +class SecurityGroupExistsForInstance(Invalid): + message = _("Security group %(security_group_id)s is already associated" + " with the instance %(instance_id)s") + + +class SecurityGroupNotExistsForInstance(Invalid): + message = _("Security group %(security_group_id)s is not associated with" + " the instance %(instance_id)s") + + class MigrationNotFound(NotFound): message = _("Migration %(migration_id)s could not be found.") |
