Skip to content

fix: generate valid TOML in storage.conf and reset stale podman state - #271

Closed
tolusha wants to merge 2 commits into
mainfrom
fix-storage-conf-toml
Closed

tolusha wants to merge 2 commits into
mainfrom
fix-storage-conf-toml

Conversation

@tolusha

@tolusha tolusha commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Problem

podman info (and any podman use) fails in DevWorkspaces built from these images:

Error: configure storage: failed to mount overlay for metacopy check with "nodev" options: permission denied

Root cause: the build-time sed in base/ubi10/Dockerfile / base/ubi9/Dockerfile appended a bare "/var/lib/shared", line after the commented # additionalimagestores = [] entry in storage.conf, producing invalid TOML:

# additionalimagestores = []
"/var/lib/shared",        <- stray line, not valid TOML

Podman >= 5 logs Failed to obtain podman configuration: decode configuration ... toml, silently falls back to default settings (overlay driver), and then fails inside the workspace where unprivileged overlay mounts are denied.

🤖 Generated with Claude Code

@openshift-ci

openshift-ci Bot commented Dec 4, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tolusha

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@tolusha
tolusha marked this pull request as draft December 4, 2026 11:58
@tolusha
tolusha force-pushed the fix-storage-conf-toml branch from be0ea1b to c06192e Compare December 4, 2026 11:59
tolusha and others added 2 commits December 4, 2026 13:00
The sed that adjusted /usr/share/containers/storage.conf appended a bare
"/var/lib/shared", line after the commented additionalimagestores entry,
producing invalid TOML. Podman >= 5 warns "Failed to obtain podman
configuration" and silently falls back to default settings (overlay
driver), which fails inside DevWorkspaces without /dev/fuse or
unprivileged overlay mounts ("failed to mount overlay for metacopy
check: permission denied").

Replace the append with a proper substitution that uncomments and sets
additionalimagestores = ["/var/lib/shared"].

Also clear ~/.local/share/containers/storage on first start in
entrypoint.sh: podman >= 5 persists the graph driver in its sqlite
database, which takes precedence over storage.conf, so a previously
failed run (seeded with the overlay driver) keeps failing even after a
correct vfs/fuse-overlayfs storage.conf is written.

Verified in a DevWorkspace against the ubi10 image: with the vfs user
storage.conf and cleared state, `podman info` succeeds.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha
tolusha force-pushed the fix-storage-conf-toml branch from c06192e to f5a71b8 Compare December 4, 2026 12:00
@tolusha tolusha closed this Dec 4, 2026
@tolusha
tolusha deleted the fix-storage-conf-toml branch December 4, 2026 12:01
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Pull Request UBI 10 images published ✨

Base: quay.io/devfile/base-developer-image:ubi10-pr-271
UDI: quay.io/devfile/universal-developer-image:ubi10-pr-271

1 similar comment
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Pull Request UBI 10 images published ✨

Base: quay.io/devfile/base-developer-image:ubi10-pr-271
UDI: quay.io/devfile/universal-developer-image:ubi10-pr-271

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Pull Request images published ✨

Base: quay.io/devfile/base-developer-image:pr-271
UDI: quay.io/devfile/universal-developer-image:pr-271

3 similar comments
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Pull Request images published ✨

Base: quay.io/devfile/base-developer-image:pr-271
UDI: quay.io/devfile/universal-developer-image:pr-271

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Pull Request images published ✨

Base: quay.io/devfile/base-developer-image:pr-271
UDI: quay.io/devfile/universal-developer-image:pr-271

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Pull Request images published ✨

Base: quay.io/devfile/base-developer-image:pr-271
UDI: quay.io/devfile/universal-developer-image:pr-271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant