Justify and check the minimum supported Podman version for workers

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
debian, python

Research direction

Start by checking the Podman commands in Makefile:394 and Makefile:802-810, then verify their flags against candidate versions and the Debian 13 package. Check secret removal on the minimum and Debian 13 versions, recording the observed behavior for Makefile:385-389 and docs/user-manual.md:1358-1366. Add version checks to setup-scripts/debian13-worker and ops/release/install-release.sh, then cover warning and quiet cases with Bats tests and add an Unreleased CHANGELOG entry.

Written by the indexing model from the issue text.

Description

client enhancement P3

Problem

The docs say workers need Podman 4.4 or later (client/README.md:21, docs/user-manual.md:241, docs/user-manual.md:474). Nothing records why 4.4 was chosen, and nothing checks it:

  • The worker installer in setup-scripts/debian13-worker does not check the Podman version.
  • The pre-swap gate of ops/release/install-release.sh does not check it either.
  • The only Podman feature check is the aardvark-dns probe of make up client (Makefile:802-810).

The worker now depends on newer Podman features. The egress key enters the worker and the proxy as a Podman secret injected as an environment variable, with a target name (--secret <name>,type=env,target=ORCH_EGRESS_KEY, Makefile:394). It is not shown that every 4.4 release supports all flags that make up client passes.

The docs also describe what happens when that secret is removed: containers created with it no longer start, and neither does the systemd --user unit. The comment says this was verified on Podman 6.0.2 only (Makefile:385-389). The rotation and rollback steps in docs/user-manual.md:1358-1366 depend on it.

Proposed change

  1. Find the lowest Podman version on which every flag of make up client and make up proxy works, including --secret ...,type=env,target=... and the --internal network setup. Update the minimum in client/README.md and docs/user-manual.md if it is not 4.4, and write down how it was found.
  2. Check the behavior after podman secret rm on the minimum version and on the Podman package of Debian 13 (the platform the setup scripts target). Correct the comment at Makefile:385-389 and the rotation text in docs/user-manual.md if they differ.
  3. Add a version check to the worker installer and to the pre-swap gate of install-release.sh. Read the version with podman version --format '{{.Client.Version}}' as the worker user. Below the minimum, print the installed and the required version.
  4. Out of scope, to track separately: moving the autostart from podman generate systemd (setup-scripts/debian13-worker/06-autostart.sh:158, :177) to Quadlet units.

Compatibility

Existing worker hosts must not start failing deploys because of this check.

Guard:

  • The minimum must not be higher than the Podman package of Debian 13. A host built with the setup scripts must always pass.
  • For one release, the check in install-release.sh only prints a WARNING below the minimum and does not abort. A later release can turn it into an abort, announced in the CHANGELOG.
  • If podman version fails or prints something that cannot be parsed, the check warns and continues. It never blocks a deploy because of its own error.

Acceptance criteria

  • client/README.md and docs/user-manual.md state the same minimum version and how it was determined.
  • The secret-removal behavior is checked on the minimum version and on the Debian 13 package, and the docs say what was observed on each.
  • Bats test: the installer and install-release.sh warn below the minimum (fake podman on PATH) and stay quiet at or above it.
  • Bats test: an unparsable podman version output warns and does not abort.
  • Existing deployments keep deploying without config changes. No deploy aborts on Podman version in this release.
  • CHANGELOG entry under Unreleased.

Open questions

  • Should a later release abort below the minimum, or keep the warning? Warn-only is the option that cannot break existing deployments.
Dominant language
Python
Stars
0
Forks
0
Avg merge
1d 1h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AInvirion/orcaster

All issues in AInvirion/orcaster

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.