metalsmith/releasenotes/notes/raw_http_images-41007351896ff642.yaml
Steve Baker 407e5051d4 Set image_disk_format from file extension for HTTP images
Node instance_info `image_disk_format` needs to be set to `raw` for
large raw images or the deployment may fail with a memory check error
or a full node tmpfs. Even when there is no error, without
image_disk_format=raw the image will not be streamed directly to disk.

image_disk_format is auto-detected and set by ironic for glance and
file sourced images, but this does not occur for direct HTTP based
images.

This change will set image_disk_format=raw when the URL file extension
ends with .raw, which is enough to support TripleO's conventions for
the overcloud raw image.

Change-Id: I6a9c225fc2d14b2d07cd0bf2379cd2c8c548f312
2021-07-06 14:58:59 +12:00

10 lines
418 B
YAML

---
fixes:
- |
Images sourced by HTTP would never have the node instance_info
`image_disk_format` set to `raw` because the image file is not processed by
ironic. This would result in errors for large images, or
ironic-python-agent never using streaming to copy the image to disk. To
work around this, `image_disk_format` is set to `raw` when the image URL
ends with a `.raw` file extension.