From 365d11dfa9fec3b1025c14e38ad3a66f8c79a148 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Tue, 23 Jun 2015 11:50:18 +0100 Subject: [PATCH] Ironic: Fix iPXE Connection timed out This patch fixes the problem of iPXE connection timing out when it's trying to fetch the configuration files and images from the HTTP server by accepting requests to HTTP server port on iptables. Closes-Bug: #1467894 Change-Id: I43d66335a97c376ab64d604ff807540d0decc401 --- lib/ironic | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ironic b/lib/ironic index 4984be1861..ab1915abd6 100644 --- a/lib/ironic +++ b/lib/ironic @@ -658,6 +658,10 @@ function configure_iptables { # agent ramdisk gets instance image from swift sudo iptables -I INPUT -d $HOST_IP -p tcp --dport ${SWIFT_DEFAULT_BIND_PORT:-8080} -j ACCEPT || true fi + + if [[ "$IRONIC_IPXE_ENABLED" == "True" ]] ; then + sudo iptables -I INPUT -d $HOST_IP -p tcp --dport $IRONIC_HTTP_PORT -j ACCEPT || true + fi } function configure_tftpd {