From 2b662cfb127c9abc4930c498d7f9957a8065f5ce Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 12 Dec 2019 14:36:01 +0000 Subject: [PATCH] Allow ironic_ipxe to serve instance images Ironic provides a feature to allow instance images to be served from a local HTTP server [1]. This is the same server used for PXE images with iPXE. This does not work currently because the ironic_ipxe container does not have access to /var/lib/ironic/images (ironic docker volume), where the images are cached. Note that to make use of this feature, the following is required in ironic.conf: [agent] image_download_source = http This change fixes the issue by giving ironic_ipxe container access to the ironic volume. [1] https://docs.openstack.org/ironic/latest/admin/interfaces/deploy.html#deploy-with-custom-http-servers Change-Id: I501d02cfd40fbacea32d551c3912640c5661d821 Closes-Bug: #1856194 --- ansible/roles/ironic/defaults/main.yml | 1 + .../notes/ironic-ipxe-instance-image-47fb3c9f0edef5f5.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/ironic-ipxe-instance-image-47fb3c9f0edef5f5.yaml diff --git a/ansible/roles/ironic/defaults/main.yml b/ansible/roles/ironic/defaults/main.yml index 5d29aba90f..d28a700082 100644 --- a/ansible/roles/ironic/defaults/main.yml +++ b/ansible/roles/ironic/defaults/main.yml @@ -146,6 +146,7 @@ ironic_pxe_default_volumes: ironic_ipxe_default_volumes: - "{{ node_config_directory }}/ironic-ipxe/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" + - "ironic:/var/lib/ironic:ro" - "ironic_ipxe:/httpboot/" - "kolla_logs:/var/log/kolla" ironic_inspector_default_volumes: diff --git a/releasenotes/notes/ironic-ipxe-instance-image-47fb3c9f0edef5f5.yaml b/releasenotes/notes/ironic-ipxe-instance-image-47fb3c9f0edef5f5.yaml new file mode 100644 index 0000000000..c3f4299e82 --- /dev/null +++ b/releasenotes/notes/ironic-ipxe-instance-image-47fb3c9f0edef5f5.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue with the ``ironic_ipxe`` container serving instance images. + See `bug 1856194 `__ + for details.