diff options
| author | Zhenguo Niu <niuzhenguo@huawei.com> | 2016-02-22 16:27:24 +0800 |
|---|---|---|
| committer | Zhenguo Niu <niuzhenguo@huawei.com> | 2016-03-06 17:13:02 +0800 |
| commit | d25d94b3168deb9b3183a3c59bebd4b9c9ec2463 (patch) | |
| tree | 3a0faf5dc1c504c0e3c8166c5464d181013e1b27 /ironic_python_agent/errors.py | |
| parent | 9b9b982fddd690243d435ebdeadc4186edd951d9 (diff) | |
| download | ironic-python-agent-d25d94b3168deb9b3183a3c59bebd4b9c9ec2463.tar.gz | |
Change to use WARNING level for heartbeat conflict errors
It's normal that ironic returns 409 Conflict from time to time, so
it's a bit confusing that we report this with Exception level and
traceback.
Change-Id: I1627c61facc3fadd0f5d9d324150e7d2833c7fbc
Closes-Bug: #1533113
Diffstat (limited to 'ironic_python_agent/errors.py')
| -rw-r--r-- | ironic_python_agent/errors.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index eb4c9c6e..6fae4585 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -109,6 +109,15 @@ class HeartbeatError(IronicAPIError): super(HeartbeatError, self).__init__(details) +class HeartbeatConflictError(IronicAPIError): + """ConflictError raised when a heartbeat to the agent API fails.""" + + message = 'ConflictError heartbeating to agent API' + + def __init__(self, details): + super(HeartbeatConflictError, self).__init__(details) + + class LookupNodeError(IronicAPIError): """Error raised when the node lookup to the Ironic API fails.""" |
