Skip to content

keystone: drop stray line continuation - #846

Merged
berendt merged 1 commit into
mainfrom
keystone-footer-continuation
Nov 23, 2026
Merged

berendt merged 1 commit into
mainfrom
keystone-footer-continuation

Conversation

@ideaship

Copy link
Copy Markdown
Contributor

The keystone_footer block in templates/2026.1/template-overrides.mako ends with a line continuation (${"\\"}) after its last command, so the RUN instruction continues into the next one in the generated Dockerfile: the RUN of the footer block. The history of registry.osism.tech/kolla/keystone:2026.1 shows the merged command:

rm -rf /var/lib/apt/lists/* RUN rm -rf /usr/share/doc/* && rm -rf /usr/share/man/* && ...

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 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 to apache_footer, but the backslash on the line before it stayed.

This PR removes it, so keystone_footer and footer are separate RUN instructions again. No other series has a continuation directly before an {% endblock %}.

🤖 Generated with Claude Code

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 ideaship self-assigned this Nov 21, 2026
@ideaship
ideaship marked this pull request as ready for review November 21, 2026 12:31
@ideaship
ideaship requested a review from berendt November 21, 2026 12:31
@ideaship ideaship mentioned this pull request Nov 21, 2026
@ideaship
ideaship added this pull request to stack #848 November 21, 2026 20:02
@ideaship ideaship added zuul Release the dragons, run Zuul CI and removed zuul Release the dragons, run Zuul CI labels Nov 21, 2026
@berendt
berendt merged commit 3f23867 into main Nov 23, 2026
4 checks passed
@berendt
berendt deleted the keystone-footer-continuation branch November 23, 2026 08:53
@github-project-automation github-project-automation Bot moved this from New to Done in Human Board Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

zuul Release the dragons, run Zuul CI

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants