Image building fails when modifying undefined variables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Medium
|
Mark Goddard |
Bug Description
Odd title, I know. Specific case:
My template overrides file has this:
{% set ironic_
Normally I build binary/centos images.
kolla-build -t binary
Sometimes however I build a bifrost centos/source image, because bifrost does not support binary images.
kolla-build -t source bifrost
The ironic inspector image does not define ironic_
{% elif install_type == 'source' %}
{% if base_distro in ['debian', 'ubuntu'] %}
{% set ironic_
{% endif %}
{{ macros.
The install_packages macro copes with the undefined variable, unless you customise it via ironic_
Two options:
1. Fix this specific case, defining an empty list (tested, works).
2. Make install_packages ignore customised variables that are not defined.
Changed in kolla: | |
milestone: | none → 8.0.0 |
https:/ /review. openstack. org/627170