Skip to content

fix(e2e): Fleet Podman proof fails when the host defaults to cgroupfs - #166796

Closed
RomneyDa wants to merge 3 commits into
mainfrom
fix/frv-docker-failures-20261007
Closed

RomneyDa wants to merge 3 commits into
mainfrom
fix/frv-docker-failures-20261007

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

FRV 37694088337 (beta, candidate e4c6c8714da4f3d910c81c673ba8863ded3d7892) failed the normalCi Docker seed job 113044081449 in the Fleet Podman control. All Docker cache/upgrade/restore cells finished; Podman reported cgroupfs, but the control requires systemd to prove delegated resource limits. The task-private CONTAINERS_CONF selected storage roots without selecting that required manager.

User Impact

No user-visible change. Release validation selects the cgroup manager its Podman control already requires; host and runtime defaults remain unchanged.

Why This Change Was Made

Set cgroup_manager = "systemd" in the control's private engine config. Keep the real rootless, cgroup-v2, systemd, memory, PID, filesystem, network, and cleanup assertions unchanged. No host configuration or product default changes.

Evidence

  • Original failed job: actual: cgroupfs, expected: systemd.
  • Original host preflight reports an active user systemd manager, enabled delegation, and CPU/memory/PID controllers. This is fixture selection, not a missing-host capability.
  • Real fixed-head Docker job 113064897089 now reports Podman 5.8.4, rootless cgroup v2, and cgroupManager=systemd. This proves the original manager boundary. The subsequent fleet create fails with a generic CLI error before a registry entry exists; container/network cleanup passes. The full Docker lane is not passing, and the newly reached create failure remains under investigation.
  • bash -n scripts/e2e/lib/fleet-cache/podman-control.sh and git diff --check passed.
  • Changed-file gate passed formatting, guard/ratchet/dependency checks, script types, and all root-test type shards. Its script dead-export scan reports inherited scripts/publish-model-catalog.mts: readRecommendedModels, byte-identical to the main base and outside this diff; subsequent focused lint passed; the inherited dead export remains documented.

Backports

The identical missing manager selection exists on release/2026.10.2, release/2026.10.1 (b882e76384748485669517a8b28a866acabbf718), and release/2026.9.9 (76cfa7f7734ce80e4d9046651c04c6a60e5f4002). It is applicable as a test-harness fix, not a user-runtime fix. This PR targets main; the proposed 10.2 backport is #166817 and remains draft while the Docker lane is unresolved. Older lines are applicability analysis only.

Doctor/onboarding and candidate admission timeouts are separate unresolved failures; this change does not claim to fix them.

OCI runtime rejection exposed after manager repair

The diagnostic head 8cd63e4 Docker job reports crun: unknown version specified at actual OCI container start. Task-private container/network cleanup still completes and preserves the failed status.

Head 20fb05d additionally retains podman info's selected OCI runtime path/version in the existing preflight JSON. No runtime is installed, upgraded, swapped, or selected by this diagnostic addition; syntax and whitespace checks pass. Exact-head CI and refreshed review are pending.

The runner-image report documents this same error with Podman 5.8.4 selecting an older crun path. That is a source-backed infrastructure hypothesis, not measured selected-runtime-version proof on our runner. Do not treat this PR as a full Docker fix until that prerequisite is verified and the real control passes.

@clawsweeper

clawsweeper Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@RomneyDa
RomneyDa marked this pull request as ready for review October 7, 2026 23:14
@RomneyDa

RomneyDa commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 7, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 8:41 PM ET / October 8, 2026, 00:41 UTC (Revision 3).

ClawSweeper review

What this changes

The Fleet container test selects systemd in its private Podman configuration, enables existing CLI error diagnostics, and records the selected OCI runtime in preflight output.

Merge readiness

✅ Ready for maintainer review

The patch remains useful: current main and the latest release still omit the manager selection required by this control. No introduced correctness or security defect was found; the reported OCI runtime failure remains separate from the repaired manager mismatch.

Priority: P2
Reviewed head: 20fb05d6cbd7eef5981a5bbb66f5a2a2d233953a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable harness repair with no actionable patch findings; full Docker success remains a separate gate outcome.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor proof gate is exempt for this MEMBER-authored PR. Captured hosted evidence reports the private Podman manager correction and improved CLI failure diagnostics on earlier heads; the latest change only records selected OCI runtime facts. Raw logs were inaccessible to this reviewer, and full lifecycle success remains unproven. No stored user-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor proof gate is exempt for this MEMBER-authored PR. Captured hosted evidence reports the private Podman manager correction and improved CLI failure diagnostics on earlier heads; the latest change only records selected OCI runtime facts. Raw logs were inaccessible to this reviewer, and full lifecycle success remains unproven. No stored user-data contract changes.
Evidence reviewed 9 items Pinned introduced change: The merge-base-to-head diff selects systemd only in the task-private engine configuration, enables the existing debug switch only for isolated Fleet invocations, and adds OCI runtime facts to diagnostic JSON. Resource, isolation, and cleanup assertions remain unchanged.
Still necessary on current main: The full current-main control still requires cgroupManager=systemd but does not set cgroup_manager in its private containers.conf. Its caller exercises the packaged CLI and invokes this Podman control after the Docker cells.
Latest-release boundary: Inspection of the control at v2026.9.8 also finds the systemd assertion and private CONTAINERS_CONF, without explicit cgroup_manager selection. This is release-validation harness behavior, not a change to installed users' configuration.
Findings None None.
Security None None.

How this fits together

Fleet manages isolated OpenClaw containers through Docker or Podman. This release-validation control feeds a packaged CLI and container image into a disposable rootless Podman environment, then checks lifecycle behavior, resource limits, and cleanup.

flowchart TD
  A[Packaged CLI and image] --> B[Private Podman configuration]
  B --> C[Rootless runtime preflight]
  C --> D[Fleet container lifecycle]
  D --> E[Resource and isolation assertions]
  C --> F[Runtime diagnostics]
  D --> G[Cleanup and exit status]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Other +3. Total +3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 2 +3
Total 1 5 2 +3

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #166796
Summary: This PR owns the main-branch manager correction; the related draft carries it alongside another correction onto a release branch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the control's explicit systemd selection and bounded diagnostics, and qualify the runner's OCI prerequisite separately without weakening lifecycle or cleanup assertions.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: on a supported host choosing cgroupfs, the private configuration omits manager selection while preflight requires systemd. No local runtime reproduction was executed.

Is this the best way to solve the issue?

Yes. Selecting the manager in the control's existing private configuration repairs the fixture boundary, and the additional diagnostics reuse existing owners without changing assertions or host defaults.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c73c99d9e033.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a bounded release-validation fixture mismatch without changing user runtime defaults.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor proof gate is exempt for this MEMBER-authored PR. Captured hosted evidence reports the private Podman manager correction and improved CLI failure diagnostics on earlier heads; the latest change only records selected OCI runtime facts. Raw logs were inaccessible to this reviewer, and full lifecycle success remains unproven. No stored user-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head diff selects systemd only in the task-private engine configuration, enables the existing debug switch only for isolated Fleet invocations, and adds OCI runtime facts to diagnostic JSON. Resource, isolation, and cleanup assertions remain unchanged. (scripts/e2e/lib/fleet-cache/podman-control.sh:40, 20fb05d6cbd7)
  • Still necessary on current main: The full current-main control still requires cgroupManager=systemd but does not set cgroup_manager in its private containers.conf. Its caller exercises the packaged CLI and invokes this Podman control after the Docker cells. (scripts/e2e/lib/fleet-cache/podman-control.sh:160, c73c99d9e033)
  • Latest-release boundary: Inspection of the control at v2026.9.8 also finds the systemd assertion and private CONTAINERS_CONF, without explicit cgroup_manager selection. This is release-validation harness behavior, not a change to installed users' configuration. (scripts/e2e/lib/fleet-cache/podman-control.sh, fc23bc864e45)
  • Re-review continuity: GitHub's comparison against the previously reviewed head confirms that the latest commit only adds info.host.ociRuntime to existing preflight JSON. The previous structured review had no findings; this addition does not select, install, or upgrade an OCI runtime. (scripts/e2e/lib/fleet-cache/podman-control.sh:171, 20fb05d6cbd7)
  • Hosted behavior evidence and limits: The captured PR body reports cgroupManager=systemd after the manager repair, then crun rejection at container start on the diagnostic head, with cleanup preserving failure. GitHub independently confirms job 113064897089 ran head 17043aa and job 113072257949 ran head 8cd63e4; both failed. Raw job-log inspection was blocked at the artifact-storage domain, so those runtime observations remain attributed to the captured body rather than independently read logs. Neither run proves the complete Docker lane passes. (8cd63e4f6859)
  • Diagnostics use the existing owner: The complete CLI failure formatter uses OPENCLAW_DEBUG to include nested error causes and stacks. The control supplies an empty inherited environment, private home/state/storage roots, and a synthetic gateway token; the patch introduces no diagnostic implementation or authority transfer. (src/cli/failure-output.ts:176, 20fb05d6cbd7)

Likely related people:

  • Alix-007: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-07T23:18:29.516Z sha 17043aa :: needs maintainer review before merge. :: none
  • reviewed 2026-10-07T23:42:36.827Z sha 8cd63e4 :: needs maintainer review before merge. :: none

@RomneyDa

RomneyDa commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review: the original manager boundary is now proven on hosted Docker CI. A follow-up enables the existing CLI debug diagnostics only inside this synthetic, env-isolated Podman control to identify the next create failure; no runtime assertion or operator default changes.

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

RomneyDa commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 20fb05d. One extra existing preflight JSON field retains Podman-selected OCI runtime facts after the debug head exposed crun unknown-version rejection. No runtime/dependency selection or host configuration changed. Original manager repair is proven; full Docker gate remains unresolved and the body keeps that distinction.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

RomneyDa commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Superseded on main by merged #165825 (858d31d), which intentionally removes the experimental fleet owner, its Docker/Podman harness, and CI invocation. This repair must not restore retired main functionality. The frozen release candidate and older release lines retain that harness; draft backport #166817 preserves the scoped repair there. Latest Docker job 113089358661 confirms rootless/systemd/v2/overlay with Podman 5.8.4 selecting /usr/bin/crun 1.14.1 before crun: unknown version specified; that host incompatibility remains unresolved for retained branches. Closing the obsolete main PR, not claiming that the retained-branch OCI failure is fixed.

@RomneyDa RomneyDa closed this Oct 8, 2026
@RomneyDa
RomneyDa deleted the fix/frv-docker-failures-20261007 branch October 22, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant