Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildah in podman rootless - "unsupported for this graph driver" #4810

Closed
hiimheregit opened this issue May 22, 2023 · 3 comments
Closed

buildah in podman rootless - "unsupported for this graph driver" #4810

hiimheregit opened this issue May 22, 2023 · 3 comments

Comments

@hiimheregit
Copy link

hiimheregit commented May 22, 2023

Description

Steps to reproduce the issue:

  1. Latest version of buildah from Redhat registry.
  2. Podman rootless
  3. Run buildah in podman rootless

The command that throws the error : buildah build --build-arg [args] --tag [tag]

Describe the results you received:

Error: filesystem type 0x65735546 reported for /var/lib/containers/storage is not supported with 'overlay': backing file system is unsupported for this graph driver
time="2023-05-22T09:45:31Z" level=warning msg="failed to shutdown storage: \"filesystem type 0x65735546 reported for /var/lib/containers/storage is not supported with 'overlay': backing file system is unsupported for this graph driver\""

Describe the results you expected:

Everything would work just as with the "testing" image.

Output of rpm -q buildah or apt list buildah:

buildah-1.29.1-2.module+el8.8.0+18553+8fea4d79.x86_64

Output of buildah version:

Version:         1.29.1
Go Version:      go1.19.6
Image Spec:      1.0.2-dev
Runtime Spec:    1.0.2-dev
CNI Spec:        1.0.0
libcni Version:  v1.1.2
image Version:   5.24.1
Git Commit:      
Built:           Mon Apr  3 09:11:22 2023
OS/Arch:         linux/amd64
BuildPlatform:   linux/amd64

Output of cat /etc/*release:

NAME="Red Hat Enterprise Linux"
VERSION="8.7 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.7 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.7
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"

Output of uname -a:

Linux [host] 4.18.0-425.3.1.el8.x86_64 #1 SMP Fri Sep 30 11:45:06 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Output of cat /home/user/.config/containers/storage.conf:

[storage]

driver = "overlay"
runroot = "/run/user/$UID/containers"
rootless_storage_path = "$HOME/.local/share/containers/storage"

[storage.options.overlay]

mount_program = "/usr/bin/fuse-overlayfs"

Output of cat /etc/containers/storage.conf:

[storage]
driver = "overlay"
runroot = "/run/containers/storage"
graphroot = "/var/lib/containers/storage"

[storage.options]
additionalimagestores = [
]
pull_options = {enable_partial_images = "false", use_hard_links = "false", ostree_repos=""}

[storage.options.overlay]
mountopt = "nodev,metacopy=on"

[storage.options.thinpool]

Thanks.

PS : I add both rpm -q buildah and buildah version commands for the "testing" buildah image that works fine.

buildah-1.29.1-1.fc37.x86_64

Output of buildah version:

Version:         1.29.1
Go Version:      go1.19.5
Image Spec:      1.0.2-dev
Runtime Spec:    1.0.2-dev
CNI Spec:        1.0.0
libcni Version:  v1.1.2
image Version:   5.24.1
Git Commit:      
Built:           Fri Feb 17 10:05:41 2023
OS/Arch:         linux/amd64
BuildPlatform:   linux/amd64
@flouthoc
Copy link
Collaborator

I am not sure if it possible to use overlay inside overlay, maybe use vfs when performing buildah build. i.e buildah --storage-driver vfs build ...

@giuseppe
Copy link
Member

overlay on top of overlay is not supported.

@hiimheregit
Copy link
Author

Indeed, changing the driver helped. Thanks for help @flouthoc @giuseppe

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants