kayobe/releasenotes/notes/fix-ipa-image-download-3f90f0f40d0feafd.yaml
Mark Goddard ef84890798 Fix IPA image download
The IPA ramdisk and kernel images may be built or downloaded via a URL.
If the latter option is used, any images previously downloaded to
$KOLLA_CONFIG_PATH/config/ironic/ironic-agent.* would previously not be
updated if the image contents change.

This change introduces variables for setting a URL to a file containing
checksums for the images. The algorithm used to compute the checksum is
also configurable (default sha256). This allows us to ensure we are
using the correct version of the image, while avoiding an expensive few
hundred megabyte image download just to check.

If a checksum is not specified, the image will be downloaded every time
to ensure that it is up to date.

Change-Id: I8120518ed98d61f3652f5205ce7ec9f798ab2aa1
Story: 2001660
Task: 6693
2018-10-02 13:30:11 +01:00

37 lines
1.5 KiB
YAML

---
upgrade:
- |
It is now possible to specify a URL of a file containing a checksum of the
Ironic Python Agent (IPA) images for the seed and overcloud Ironic and
Ironic Inspector services. This allows Kayobe to detect changes in the
image content and download as necessary. If specifying IPA images via URL,
the checksums should be configured accordingly.
The checksum URLs and algorithms are configured via these variables:
* ``{{ ipa_kernel_checksum_url }}``
* ``{{ ipa_kernel_checksum_algorithm }}``
* ``{{ ipa_ramdisk_checksum_url }}``
* ``{{ ipa_ramdisk_checksum_algorithm }}``
For the seed this may be customised via these variables:
* ``{{ kolla_bifrost_ipa_kernel_checksum_url }}``
* ``{{ kolla_bifrost_ipa_kernel_checksum_algorithm }}``
* ``{{ kolla_bifrost_ipa_ramdisk_checksum_url }}``
* ``{{ kolla_bifrost_ipa_ramdisk_checksum_algorithm }}``
For the overcloud Ironic Inspector service this may be customised via these
variables:
* ``{{ inspector_ipa_kernel_checksum_url }}``
* ``{{ inspector_ipa_kernel_checksum_algorithm }}``
* ``{{ inspector_ipa_ramdisk_checksum_url }}``
* ``{{ inspector_ipa_ramdisk_checksum_algorithm }}``
fixes:
- |
Fixes an issue with downloading Ironic Python Agent (IPA) images where new
images would not be downloaded if the image had been downloaded previously.
See `Story 2001660 <https://storyboard.openstack.org/#!/story/2001660>`__
for details.