summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJohn Garbutt <john.garbutt@rackspace.com>2013-06-07 18:11:09 +0100
committerGerrit Code Review <review@openstack.org>2013-06-19 10:18:19 +0000
commit834fc60a8ca852be64aaaaeb5ebb3cc0de807fef (patch)
tree554e3c4c0c94008f0bacb9d22f91d53184ea178f /nova/exception.py
parent6808e052dbe9bc51b5836814d0a0331dcc5a6bd2 (diff)
downloadnova-834fc60a8ca852be64aaaaeb5ebb3cc0de807fef.tar.gz
nova-834fc60a8ca852be64aaaaeb5ebb3cc0de807fef.tar.xz
nova-834fc60a8ca852be64aaaaeb5ebb3cc0de807fef.zip
xenapi: revisit error handling around calls to agent
Now we have settings to hint if the agent is present or not, and by default we do not check for the agent, if the agent is not responding to our calls for its version, we can fail the build. In environments that need the agent to inject the networking, you really want the agent to fail if it is not present. If the agent did not inject the networking, the server will have no networking. However, we can still leave the agent upgrade to silently fail, as the agent should be backwards compatible. fixes bug 1188540 Change-Id: I8acdabd8d2bd24b088dad3cd4abec300d0ada3fb
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index c774b56cc..2b3903e1e 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1241,6 +1241,19 @@ class CoreAPIMissing(NovaException):
message = _("Core API extensions are missing: %(missing_apis)s")
+class AgentError(NovaException):
+ message = _('Error during following call to agent: %(method)s')
+
+
+class AgentTimeout(AgentError):
+ message = _('Unable to contact guest agent. '
+ 'The following call timed out: %(method)s')
+
+
+class AgentNotImplemented(AgentError):
+ message = _('Agent does not support the call: %(method)s')
+
+
class InstanceGroupNotFound(NotFound):
message = _("Instance group %(group_uuid)s could not be found.")