Repository navigation
keystone: drop stray line continuation - #846
Merged
Merged
Conversation
The keystone_footer block in the 2026.1 template overrides ends with a
line continuation after its last command:
&& rm -rf /var/lib/apt/lists/* \
{% endblock %}
The RUN instruction therefore continues into whatever the generated
Dockerfile has next, which is the RUN of the footer block. The keystone
image history shows the merged command:
rm -rf /var/lib/apt/lists/* RUN rm -rf /usr/share/doc/* && ...
This works only by accident: rm -rf ignores the nonexistent files "RUN"
and "rm", and the rest of the footer chain still runs. A change to either
block, or to what follows keystone_footer, could turn it into a build
failure or a silently skipped step.
The continuation was left behind when the 2026.1 overrides were created
from 2025.2: there the block ended with "&& a2enmod auth_openidc", which
moved to apache_footer, but the backslash on the line before it stayed.
Remove it, so keystone_footer and footer are separate RUN instructions
again. No other series has a continuation directly before an endblock.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Roger Luethi <luethi@osism.tech>
ideaship
marked this pull request as ready for review
November 21, 2026 12:31
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
keystone_footerblock intemplates/2026.1/template-overrides.makoends with a line continuation (${"\\"}) after its last command, so the RUN instruction continues into the next one in the generated Dockerfile: the RUN of thefooterblock. The history ofregistry.osism.tech/kolla/keystone:2026.1shows the merged command:This works only by accident:
rm -rfignores the nonexistent filesRUNandrm, and the rest of the footer chain still runs. A change to either block could turn it into a build failure or a silently skipped step.The continuation was left behind when the 2026.1 overrides were created from 2025.2 (22d0ada): there the block ended with
&& a2enmod auth_openidc, which moved toapache_footer, but the backslash on the line before it stayed.This PR removes it, so
keystone_footerandfooterare separate RUN instructions again. No other series has a continuation directly before an{% endblock %}.🤖 Generated with Claude Code