Skip to content

RELOPS-2353: Stabilize Ubuntu Kitchen apt bootstrap#1200

Open
jwmossmoz wants to merge 1 commit into
masterfrom
RELOPS-2353-stabilize-ubuntu-kitchen-apt-mirror-selection
Open

RELOPS-2353: Stabilize Ubuntu Kitchen apt bootstrap#1200
jwmossmoz wants to merge 1 commit into
masterfrom
RELOPS-2353-stabilize-ubuntu-kitchen-apt-mirror-selection

Conversation

@jwmossmoz
Copy link
Copy Markdown
Contributor

@jwmossmoz jwmossmoz commented May 4, 2026

Summary

  • replace kitchen-docker's autogenerated Ubuntu bootstrap Dockerfile with a repo-owned ERB template
  • configure apt retries/timeouts before the first apt update and install bootstrap packages in the same layer
  • prefer azure.archive.ubuntu.com on GitHub-hosted runners, rewrite archive/security sources together, and fall back through the Ubuntu mirror list
  • install Kitchen's expected bootstrap/runtime packages, including systemd and ca-certificates, before run_command: /bin/systemd
  • keep bootstrap apt package behavior aligned with kitchen-docker's default apt-get install -y behavior so recommended runtime packages like systemd-timesyncd are present on noble
  • remove the later provision_command apt bootstrap that ran too late to fix Kitchen create failures

Jira

Validation

  • ruby -e 'require "yaml"; YAML.load_file(".kitchen_configs/kitchen.docker.yml")'
  • git diff --check
  • rendered .kitchen_configs/Dockerfile.ubuntu.erb with kitchen-docker's default ERB.new mode
  • Docker builds from the rendered template passed for ubuntu:18.04, ubuntu:22.04, and ubuntu:24.04 on linux/amd64
  • verified the rendered test images contain /bin/systemd, /usr/sbin/sshd, /usr/bin/curl, /etc/ssl/certs/ca-certificates.crt, and the expected distro codename for bionic, jammy, and noble
  • verified curl -fsSL can fetch the configured puppet_omnibus_url from each rendered test image
  • verified the rendered noble image includes systemd-timesyncd; local systemctl start systemd-timesyncd returns success under /bin/systemd
  • GitHub Linux checks passed on commit 1842545f in run https://github.com/mozilla-platform-ops/ronin_puppet/actions/runs/25340982416

@jwmossmoz jwmossmoz requested a review from aerickson May 4, 2026 18:54
aerickson
aerickson previously approved these changes May 4, 2026
Copy link
Copy Markdown
Member

@aerickson aerickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@jwmossmoz jwmossmoz force-pushed the RELOPS-2353-stabilize-ubuntu-kitchen-apt-mirror-selection branch from d71806c to f0eeeb6 Compare May 4, 2026 19:10
@jwmossmoz jwmossmoz changed the title RELOPS-2353: Stabilize Ubuntu Kitchen apt mirror selection RELOPS-2353: Use Ubuntu image apt sources in Kitchen May 4, 2026
@jwmossmoz jwmossmoz force-pushed the RELOPS-2353-stabilize-ubuntu-kitchen-apt-mirror-selection branch from f0eeeb6 to d71806c Compare May 4, 2026 19:15
@jwmossmoz jwmossmoz changed the title RELOPS-2353: Use Ubuntu image apt sources in Kitchen RELOPS-2353: Stabilize Ubuntu Kitchen apt mirror selection May 4, 2026
@jwmossmoz jwmossmoz force-pushed the RELOPS-2353-stabilize-ubuntu-kitchen-apt-mirror-selection branch from d71806c to 868367e Compare May 4, 2026 19:35
@jwmossmoz jwmossmoz changed the title RELOPS-2353: Stabilize Ubuntu Kitchen apt mirror selection RELOPS-2353: Stabilize Ubuntu Kitchen apt bootstrap May 4, 2026
@jwmossmoz jwmossmoz force-pushed the RELOPS-2353-stabilize-ubuntu-kitchen-apt-mirror-selection branch 2 times, most recently from 7823522 to d2fabf9 Compare May 4, 2026 19:49
@jwmossmoz jwmossmoz force-pushed the RELOPS-2353-stabilize-ubuntu-kitchen-apt-mirror-selection branch from d2fabf9 to 1842545 Compare May 4, 2026 20:10
@jwmossmoz jwmossmoz requested a review from aerickson May 4, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants