feat(images): add a Debian 13 molecule image and test the Proxmox targets on it #226

Open
opened 2026-11-16 14:25:59 +00:00 by Claude · 4 comments
Owner

Spec: What a role's platform declaration means, and supported entry points, resolution comment, "Debian is kept and tested".

What

  • Add a molecule-debian13 image (Debian 13 trixie) built by image.yml, following the image rules in force once the image-layout and CI-versions issues have landed: labels, image doc, job_image on the same release, a first consumer pin made by hand from the first build's digest.
  • Add a ${MOLECULE_IMAGE_DEBIAN13} (or the name the layout uses) platform to the scenarios of:
    • sshd, system_baseline, systemd_hardening: converging the pve profile on it, and the Ubuntu profiles on the Ubuntu images only;
    • user_management: a trixie platform in its scenario (its meta/main.yml declares trixie today);
    • network_interfaces: its only platform, with ifreload still stubbed.
  • Platform names added here carry the per-run prefix of ci(molecule): isolate Molecule runs per run and stop running Molecule on push to main if that issue has landed.
  • Those roles declare Debian: trixie in meta/main.yml; network_interfaces declares nothing else. The READMEs' "Supported platforms" match, and say that /etc/pve and clustering are not reproduced.
  • This issue narrows network_interfaces from all to trixie in its meta/main.yml and writes the breaking_changes fragment for that narrowing (it ships in 2.0.0 with the other platform removals; the platforms issue #133 leaves that role alone).
  • If user_management cannot pass on the image, trixie stays declared and the failure is filed as an issue; it is not moved to a README "Untested platforms" line (that would be an interim removal).

Acceptance

  • The new image builds and pushes (each layer below 100 MB).
  • Molecule passes for the five roles on the trixie platform.
  • check_image_versions.py pins passes; ansible-lint schema[meta] passes.

Notes

  • No role behaviour changes. A failure that needs a role change gets its own issue.
  • The Ubuntu part (noble and resolute for every role) stays in #133.
Spec: [What a role's platform declaration means, and supported entry points](https://git.rkdr.net/Mortis/Kamino/issues/207), resolution comment, "Debian is kept and tested". ## What - Add a `molecule-debian13` image (Debian 13 `trixie`) built by `image.yml`, following the image rules in force once the image-layout and CI-versions issues have landed: labels, image doc, `job_image` on the same release, a first consumer pin made by hand from the first build's digest. - Add a `${MOLECULE_IMAGE_DEBIAN13}` (or the name the layout uses) platform to the scenarios of: - `sshd`, `system_baseline`, `systemd_hardening`: converging the `pve` profile on it, and the Ubuntu profiles on the Ubuntu images only; - `user_management`: a `trixie` platform in its scenario (its `meta/main.yml` declares `trixie` today); - `network_interfaces`: its only platform, with `ifreload` still stubbed. - Platform names added here carry the per-run prefix of [ci(molecule): isolate Molecule runs per run and stop running Molecule on push to main](https://git.rkdr.net/Mortis/Kamino/issues/166) if that issue has landed. - Those roles declare `Debian: trixie` in `meta/main.yml`; `network_interfaces` declares nothing else. The READMEs' "Supported platforms" match, and say that `/etc/pve` and clustering are not reproduced. - This issue narrows `network_interfaces` from `all` to `trixie` in its `meta/main.yml` and writes the `breaking_changes` fragment for that narrowing (it ships in 2.0.0 with the other platform removals; the platforms issue #133 leaves that role alone). - If `user_management` cannot pass on the image, `trixie` stays declared and the failure is filed as an issue; it is not moved to a README "Untested platforms" line (that would be an interim removal). ## Acceptance - The new image builds and pushes (each layer below 100 MB). - Molecule passes for the five roles on the trixie platform. - `check_image_versions.py pins` passes; `ansible-lint` `schema[meta]` passes. ## Notes - No role behaviour changes. A failure that needs a role change gets its own issue. - The Ubuntu part (noble and resolute for every role) stays in #133.
Claude added this to the Continuous delivery milestone 2026-11-16 14:25:59 +00:00
Claude added the
Status
Ready for Agent
label 2026-11-16 14:25:59 +00:00
Author
Owner

Review of the map (2026-11-17).

  • Fifth role. user_management merged after this issue was filed. It declares Debian trixie and its README names Proxmox VE nodes. Add it: a trixie platform in its scenario and Debian: trixie in its meta/main.yml; the acceptance reads "the five roles". If it cannot pass on the image, name trixie under "Untested platforms" in its README and file an issue for it.
  • Gate files. Three gate files accept ubuntu only and must change with the image: scripts/check_image_versions.py (the job_image pattern and the FROM ubuntu: check), scripts/check_bot_pr_diff.py (the job_image line), and renovate.json (the job_image manager and the rule that disables major updates). Add a smoke scenario for the image.
  • Shape. The image is built only on main, so this is at least two pull requests: the image with its gate changes first, then the pin, platforms, metadata and READMEs.
  • Whether the interim removal of trixie from four roles needs a fragment is open in Role interface and semver: output facts, handler names, dropped platforms and internal roles.

Changed: this issue is now blocked by ci(molecule): run Molecule with the toolchain baked into the ci image instead of the runner's venv. Both edit the Molecule job and the toolchain issue changes its shape, the reason the shared-runner decision gave for blocking the isolation issue.

Review of the map (2026-11-17). - **Fifth role.** `user_management` merged after this issue was filed. It declares Debian `trixie` and its README names Proxmox VE nodes. Add it: a trixie platform in its scenario and `Debian: trixie` in its `meta/main.yml`; the acceptance reads "the five roles". If it cannot pass on the image, name trixie under "Untested platforms" in its README and file an issue for it. - **Gate files.** Three gate files accept `ubuntu` only and must change with the image: `scripts/check_image_versions.py` (the `job_image` pattern and the `FROM ubuntu:` check), `scripts/check_bot_pr_diff.py` (the `job_image` line), and `renovate.json` (the `job_image` manager and the rule that disables major updates). Add a smoke scenario for the image. - **Shape.** The image is built only on `main`, so this is at least two pull requests: the image with its gate changes first, then the pin, platforms, metadata and READMEs. - Whether the interim removal of `trixie` from four roles needs a fragment is open in [Role interface and semver: output facts, handler names, dropped platforms and internal roles](https://git.rkdr.net/Mortis/Kamino/issues/257). Changed: this issue is now blocked by [ci(molecule): run Molecule with the toolchain baked into the ci image instead of the runner's venv](https://git.rkdr.net/Mortis/Kamino/issues/225). Both edit the Molecule job and the toolchain issue changes its shape, the reason the shared-runner decision gave for blocking the isolation issue.
Author
Owner

Body edited on 2026-11-20 (final validation round of the map, #87 (comment)): decision 6 added (this issue narrows network_interfaces from all to trixie and writes its breaking_changes fragment) and decision 5 added (if user_management cannot pass on the image, trixie stays declared and the failure is filed as an issue). The comment of 2026-11-17 that sent a failing user_management to an "Untested platforms" README line is superseded on that point.

Body edited on 2026-11-20 (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281): decision 6 added (this issue narrows `network_interfaces` from `all` to `trixie` and writes its `breaking_changes` fragment) and decision 5 added (if `user_management` cannot pass on the image, `trixie` stays declared and the failure is filed as an issue). The comment of 2026-11-17 that sent a failing `user_management` to an "Untested platforms" README line is superseded on that point.
Author
Owner

Final validation round, second pass (2026-11-20): body edited.

  • Added user_management to the scenario list (a trixie platform in its scenario; its meta/main.yml declares trixie today), as the comment of 2026-11-17 asked; the acceptance now reads "the five roles". The bullet on a failing user_management is unchanged.
  • Added: platform names added here carry the per-run prefix of #166 if that issue has landed.
  • The comments above stay as history.
Final validation round, second pass (2026-11-20): body edited. - Added `user_management` to the scenario list (a `trixie` platform in its scenario; its `meta/main.yml` declares `trixie` today), as the comment of 2026-11-17 asked; the acceptance now reads "the five roles". The bullet on a failing `user_management` is unchanged. - Added: platform names added here carry the per-run prefix of #166 if that issue has landed. - The comments above stay as history.
Author
Owner

Unblocked: #225 is merged (PR #345). Molecule now runs from the ci image, and the molecule images remain the test targets.

Two pieces of existing tooling assume Ubuntu. This issue has to widen both, or a Debian image is refused or never bumped:

  • scripts/check_image_versions.py. pins only accepts job_image: ubuntu:<release>@sha256:… and FROM ubuntu:<release>: see JOB_IMAGE_RE, UBUNTU_NAMES and the release comparison around lines 434–516. A debian:13 matrix entry fails Lint.
    • Fix: compare the distribution and the release of job_image with the Dockerfile's FROM, not only an Ubuntu release.
    • The rule in images/AGENTS.md ("same release as the FROM ubuntu:") needs the same wording change.
  • The Renovate regex in renovate.json (the molecule.yml custom manager) matches (?:CI_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?). A MOLECULE_IMAGE_DEBIAN13 pin would never be bumped.
    • Fix: widen the suffix to _[A-Z0-9]+, and test it with renovate --platform=local.

Also new since #225: molecule.yml passes each image variable into the Molecule container explicitly (-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604). Add -e MOLECULE_IMAGE_DEBIAN13 there too, or the scenarios see an empty image:.

Assisted-by: Claude Code

Unblocked: #225 is merged (PR #345). Molecule now runs from the `ci` image, and the molecule images remain the test targets. Two pieces of existing tooling assume Ubuntu. This issue has to widen both, or a Debian image is refused or never bumped: - **`scripts/check_image_versions.py`.** `pins` only accepts `job_image: ubuntu:<release>@sha256:…` and `FROM ubuntu:<release>`: see `JOB_IMAGE_RE`, `UBUNTU_NAMES` and the release comparison around lines 434–516. A `debian:13` matrix entry fails Lint. - Fix: compare the distribution and the release of `job_image` with the Dockerfile's `FROM`, not only an Ubuntu release. - The rule in `images/AGENTS.md` ("same release as the `FROM ubuntu:`") needs the same wording change. - **The Renovate regex in `renovate.json`** (the molecule.yml custom manager) matches `(?:CI_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?)`. A `MOLECULE_IMAGE_DEBIAN13` pin would never be bumped. - Fix: widen the suffix to `_[A-Z0-9]+`, and test it with `renovate --platform=local`. Also new since #225: `molecule.yml` passes each image variable into the Molecule container explicitly (`-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604`). Add `-e MOLECULE_IMAGE_DEBIAN13` there too, or the scenarios see an empty `image:`. Assisted-by: Claude Code
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#226