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

operation not supported trying to create /dev/fd #28

Open
larsf opened this issue Jan 3, 2025 · 7 comments
Open

operation not supported trying to create /dev/fd #28

larsf opened this issue Jan 3, 2025 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@larsf
Copy link

larsf commented Jan 3, 2025

Hi, I installed podman-5.2.5_2 and podman-suite-20241023 on FreeBSD 14.2-RELEASE and followed the instructions here:
https://podman.io/docs/installation#installing-on-freebsd-140

When I tried to run
podman run --rm docker.io/dougrabson/hello

it errors out with:
Error: OCI runtime error: ocijail: filesystem error: in create_directory: Operation not supported ["/var/db/containers/storage/zfs/graph/5c44eb630e2cd76eb1823fa3766f368ce6837764b7e9836ef683d96cf65f8ba5/dev/fd"]

So why is podman asking ocijail to create a directory in /dev ?

wondering if it is related to this code in podman:

config_freebsd.go has:
if st.IsDir() {
// For devfs, we need to add the directory as well
addDevice(g, resolvedDevicePath)

@mnour
Copy link

mnour commented Jan 4, 2025

Hi @larsf,

I have tried the scenario that caused the issues on a fresh install for both FreeBSD 14.1-RELEASE-p6 and 14.2-RELEASE in both cases it worked like a charm

@mnour mnour added the bug Something isn't working label Jan 4, 2025
@mnour
Copy link

mnour commented Jan 4, 2025

Hi @larsf,

I've tried other scenarios where Podman Storage cfg might be messed up:

  • Configured to use ZFS while ZFS is not even configured or there is no ZFS dataset at the expected location
  • Configured to use VFS while location is a ZFS dataset

All of course cause errors but none leads to the error you've reported.

Whenever you have time, would you please share a detailed reproduction path including:

  • Initial state and configuration of your FreeBSD setup
  • What steps are taken that lead to the errors you face

Thanks a lot in advance 👊

@larsf
Copy link
Author

larsf commented Jan 5, 2025

Hi @mnour
Thanks for verifying that it works on 14.2-RELEASE. This system has been upgraded multiple times - built from source, so it is likely that there is an older config/library somewhere that the culprit or something stupid I did. I'll spend some more time on this tomorrow.

@mnour
Copy link

mnour commented Jan 5, 2025

Hey @larsf!

No problem at all 👊

@mnour mnour added experience report Tell us about your experiences using Podman on FreeBSD and removed bug Something isn't working labels Jan 5, 2025
@mnour mnour closed this as completed Jan 5, 2025
@larsf
Copy link
Author

larsf commented Jan 6, 2025

@mnour The issue turned out to be an old devfs ruleset with the same number as the jail set in /etc/defaults/devfs.rules. It hid most devices, including /dev/fd. Does podman use a default devfs set (like the jail (4) one from /etc/defaults/devfs.rules or do we as users need to something like the ocijail alpline example run.sh script where we need to create a jailset to use before running (what would be the command line option for it) or does it simply use the highest devfs ruleset? The docs for podman installation probably need a small blurb about your devfs config to clarify

@mnour
Copy link

mnour commented Jan 7, 2025

Hey @larsf,

This is actually a very good finding and might be even a bug. I will re-open the issue and do some more tests given your latest input to see if behaviour is reproducible.

Thanks a million @larsf 👊

@mnour mnour reopened this Jan 7, 2025
@mnour mnour added bug Something isn't working and removed experience report Tell us about your experiences using Podman on FreeBSD labels Jan 7, 2025
@mnour mnour self-assigned this Jan 7, 2025
@mnour
Copy link

mnour commented Jan 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants