From 6829d34c150fa1cd41064786e76d41dfccef3ef3 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 17 Mar 2016 17:49:36 +0100 Subject: 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 --- ironic_python_agent/errors.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ironic_python_agent/errors.py') 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.""" -- cgit v1.2.1