summaryrefslogtreecommitdiff
path: root/ironic/conf/pxe.py
diff options
context:
space:
mode:
authorPavlo Shchelokovskyy <pshchelokovskyy@mirantis.com>2016-08-18 12:06:18 +0300
committerPavlo Shchelokovskyy <pshchelokovskyy@mirantis.com>2016-09-07 20:40:53 +0300
commit497be96d4a18e4f2893147ecff6f83d5d64a984e (patch)
treef78c551e52bf137acde1d8e9e2f60c35fba759a1 /ironic/conf/pxe.py
parent4ce008e8ffe7d56b23738e6699b591ee6734a828 (diff)
downloadironic-497be96d4a18e4f2893147ecff6f83d5d64a984e.tar.gz
Allow using TempURLs for deploy images
when iPXE is enabled, it is possible for the bootloader to download the deploy kernel and ramdisk directly from Swift TempURL instead of downloading them to conductor and serving from local HTTP server. This patch adds the required logic and a new config option `ipxe_use_swift` (default False), setting which to True enables using Swift TempURLs for deploy ramdisk and kernel. Note that local caching and serving for kernel and ramdisk of user image is still performed for partition images that require non-local boot, as moving those to use TempURLs will make it impossible for the user to reboot the instance when TempURLs time out or image is deleted from Glance/Swift. Change-Id: I106cc6148c329e784bfbb5019fdfeb0509a9de09 Closes-Bug: #1526404 Co-Authored-By: Andrey Shestakov <ashestakov@mirantis.com>
Diffstat (limited to 'ironic/conf/pxe.py')
-rw-r--r--ironic/conf/pxe.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ironic/conf/pxe.py b/ironic/conf/pxe.py
index 7e16724ec..e17a919d7 100644
--- a/ironic/conf/pxe.py
+++ b/ironic/conf/pxe.py
@@ -96,6 +96,16 @@ opts = [
choices=['4', '6'],
help=_('The IP version that will be used for PXE booting. '
'Defaults to 4. EXPERIMENTAL')),
+ cfg.BoolOpt('ipxe_use_swift',
+ default=False,
+ help=_("Download deploy images directly from swift using "
+ "temporary URLs. "
+ "If set to false (default), images are downloaded "
+ "to the ironic-conductor node and served over its "
+ "local HTTP server. "
+ "Applicable only when 'ipxe_enabled' option is "
+ "set to true.")),
+
]