feat(traefik): add traefik_release_url for a release mirror #445
Open
Claude
wants to merge 1 commits from
feat/traefik-release-url into main
pull from: feat/traefik-release-url
merge into: Mortis:main
Mortis:main
Mortis:ci/molecule-shared-config
Mortis:ci/molecule-pipelining
Mortis:feat/apt-cache-valid-time
Mortis:feat/cloudflared-lookup-delay
Mortis:test/tailscale-reuse-debs
Mortis:renovate/git.rkdr.net-mortis-molecule-ubuntu2404-0.x
Mortis:feat/400-skip-upgrade-during-vzdump
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Needs Triage
Maintainer needs to evaluate this issue
Status
Ready for Agent
Fully specified, ready for an AFK agent
Status
Ready for Human
Requires human implementation
Wayfinder
Grilling
Decision ticket resolved in conversation with the maintainer
Wayfinder
Map
Wayfinder map: index of a planning effort and its decision tickets
Wayfinder
Prototype
Decision ticket resolved by reacting to a rough concrete artifact
Wayfinder
Research
Decision ticket resolved by reading outside sources
Wayfinder
Task
Manual work that must happen before a decision can be made
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#445
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #426
The traefik role hardcoded the GitHub release URLs for the archive and checksums. A new input,
traefik_release_url, sets the directory both are downloaded from, for a mirror. The default is the GitHub release directory oftraefik_version, so nothing changes for existing hosts.The
defaultscenario uses it: verify's update path now downloads two stand-in releases thatprepare.ymlbuilds under/opt/molecule-download/<version>/. Each has a stubtraefikthat answersversionlike the real binary and otherwise sleeps, its archive under the real file name, and asha256sumchecksums file. Nothing binary is committed, and the role's download, checksum check and swap run unchanged. The converge still downloads the real release from GitHub, so the default URL stays covered.traefik_verify_other_versionmoved to the scenario's group vars so prepare and verify share it. After the update path the installed binary is the stub, so nothing after it asserts real Traefik behaviour (stated in the README and in verify).Verify replaces the fixed 15 s pause with a poll (30 x 2 s) for the
Unable to obtain ACME certificateline that Traefik v3's ACME provider (pkg/provider/acme/provider.go) logs for a failed order or account registration. Only a line whose RFC 3339 stamp, the first field in Traefik's default file log format, is at or after the running process'sExecMainStartTimestampcounts, so a line left by the process converge restarted does not; a missing start time, a missing line or an unparseable stamp fails the check. It then assertsNRestartsis0, because withRestart=alwaysa crash would otherwise look like a running service.Verified
pre-commit run --files <changed files>and the commit hooks: passed (ansible-lint, yamllint, reuse, antsibull-changelog-lint, gitleaks);ansible-test sanity(pre-push) passed.ansible-playbook --syntax-checkon the scenario's converge, prepare and verify playbooks: passed.tasks/binary/download.ymllocally against a stand-in built the same way, with afile://traefik_release_url: download, checksum check and extraction passed, and the extracted stub'sversionoutput matches_binary_update's version regex.systemctlstubbed: it passes only for a matching line stamped after the process start, and fails for an older line, no line, a missing log, an unparseable stamp, and an empty or malformed start time.download.ymland_binary_update, NRestarts semantics, systemd ≥ 251 in both molecule images for--timestamp=unix, the log format from the role's template).Not verified
NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.