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

Can not create volume inside overlayfs #462

Open
yaroslavkasatikov opened this issue Oct 29, 2024 · 0 comments
Open

Can not create volume inside overlayfs #462

yaroslavkasatikov opened this issue Oct 29, 2024 · 0 comments

Comments

@yaroslavkasatikov
Copy link

Hey team,

I tried to mount on the node merged overlayfs volume:

mount -t overlay overlay -o lowerdir=/tmp/fs/lower/,upperdir=/tmp/fs/upper/,workdir=/tmp/overlay /tmp/fs/merged/
And I want to set /tmp/fs/merged/ as DEFAULT_PATH_FOR_NON_LISTED_NODES
So I have changed it :

{
        "nodePathMap":[
        {
                "node":"DEFAULT_PATH_FOR_NON_LISTED_NODES",
                "paths":["/tmp/fs/merged/storage"]
        }
        ]
}

But when I created the pvc and pod, it seems that helper created the folder under the mounted overlayfs dir:

sh-5.2# ls -la /tmp/fs/merged/storage/
total 0
drwxrwxrwx. 2 root root 40 Oct 29 16:06 .
drwxrwxrwx. 1 root root 60 Oct 29 16:10 ..
sh-5.2# umount /tmp/fs/merged/
sh-5.2# ls -la /tmp/fs/merged/storage/
total 0
drwxr-xr-x. 3 root root 60 Oct 29 16:14 .
drwxr-xr-x. 3 root root 60 Oct 29 16:14 ..
drwxrwxrwx. 2 root root 40 Oct 29 16:14 pvc-7fa119e3-2224-4020-a78f-149ff4dd86ea_local-path-storage_local-path-pvc
sh-5.2#
I have trying it with OKD 4.14.

OS:

Fedora release 38 (Thirty Eight)
NAME="Fedora Linux"
VERSION="38.20231027.3.2 (CoreOS)"
ID=fedora
VERSION_ID=38
VERSION_CODENAME=""
PLATFORM_ID="platform:f38"
PRETTY_NAME="Fedora CoreOS 38.20231027.3.2"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:38"
HOME_URL="https://getfedora.org/coreos/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-coreos/"
SUPPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
BUG_REPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=38
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=38
SUPPORT_END=2024-05-14
VARIANT="CoreOS"
VARIANT_ID=coreos
OSTREE_VERSION='38.20231027.3.2'
Fedora release 38 (Thirty Eight)
Fedora release 38 (Thirty Eight)
cpe:/o:fedoraproject:fedora:38
Is it possible to create a volume inside overlayfs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant