diff options
| author | Dmitry Tantsur <dtantsur@redhat.com> | 2016-03-17 17:49:36 +0100 |
|---|---|---|
| committer | Sam Betts <sam@code-smash.net> | 2016-03-21 14:21:12 +0000 |
| commit | 6829d34c150fa1cd41064786e76d41dfccef3ef3 (patch) | |
| tree | 4adcc814b400607057f8ac1c8b9369187bc513fd /ironic_python_agent/errors.py | |
| parent | 7a24ba85a9b3204485245030ff92f787a2e87a4e (diff) | |
| download | ironic-python-agent-6829d34c150fa1cd41064786e76d41dfccef3ef3.tar.gz | |
Bind to interface routable to the ironic host, not a random one
Binding to the first interface that has an IP address is error-prone: there is
no guarantee that ironic can reach us via this inteface. It is much safer to
detect the interface facing ironic and bind to it.
Unused LookupAgentInterfaceError exception is deleted.
The TinyIPA build also requires iptables dependency at build time to insert the
required kernel modules.
Closes-Bug: #1558956
Change-Id: I9586805e6c7f52a50834bc03efeb72d1faa6cb65
Diffstat (limited to 'ironic_python_agent/errors.py')
| -rw-r--r-- | ironic_python_agent/errors.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index 6fae4585..59ec6400 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -136,15 +136,6 @@ class LookupAgentIPError(IronicAPIError): super(LookupAgentIPError, self).__init__(details) -class LookupAgentInterfaceError(IronicAPIError): - """Error raised when agent interface lookup fails.""" - - message = 'Error finding network interface for Ironic Agent' - - def __init__(self, details): - super(LookupAgentInterfaceError, self).__init__(details) - - class ImageDownloadError(RESTError): """Error raised when an image cannot be downloaded.""" |
