-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Problem with 'podman --storage-driver vfs' in rootless mode #2347
Comments
This is actually intended, to prevent accidental misconfigurations from
rendering images and containers unusable. Any containers created using the
old driver will be unusable once you switch to VFS.
The current solution is to delete ~/.share/containers to wipe the libpod DB
and start fresh. I believe @rhatdan is working on an alternative that will
not require manual removal, but it's not ready yet.
…On Fri, Feb 15, 2019, 07:16 SergeyBear ***@***.*** wrote:
/kind bug
*Description*
When unprivileged user switch from default 'overlay' to 'vfs' with podman
using '--storage-driver' error occur:
Could not get runtime: database storage graph driver overlay does not match our storage graph driver vfs: database configuration mismatch
Same command with buildah works well.
I'm running container with centos 7 and buildah to build containers, so
vfs is my only choice. Switching host to vfs is a stap back in performance.
*P.S.* Selinux is in permissive mode.
*Steps to reproduce the issue:*
useradd test
su - test
buildah --storage-driver=vfs pull fedora
buildah --storage-driver=vfs images
IMAGE NAME IMAGE TAG IMAGE ID CREATED AT SIZEdocker.io/library/fedora latest 26ffec5b4a8a Jan 16, 2019 21:24 283 MB
podman --storage-driver=vfs images
Could not get runtime: database storage graph driver overlay does not match our storage graph driver vfs: database configuration mismatch
*Describe the results you received:*
Could not get runtime: database storage graph driver overlay does not match our storage graph driver vfs: database configuration mismatch
*Describe the results you expected:*
IMAGE NAME IMAGE TAG IMAGE ID CREATED AT SIZEdocker.io/library/fedora latest 26ffec5b4a8a Jan 16, 2019 21:24 283 MB
*Additional information you deem important (e.g. issue happens only
occasionally):*
*Output of podman version:*
Version: 1.0.0
Go Version: go1.11.4
Git Commit: "49780a1cf10d572edc4e1ea3b8a8429ce391d47d"
Built: Mon Jan 14 20:38:17 2019
OS/Arch: linux/amd64
*Output of buildah version:*
Version: 1.6
Go Version: go1.11.4
Image Spec: 1.0.0
Runtime Spec: 1.0.0
CNI Spec: 0.4.0
libcni Version:
Git Commit:
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64
*Output of podman info:*
host:
BuildahVersion: 1.6-dev
Conmon:
package: podman-1.0.0-1.git82e8011.fc29.x86_64
path: /usr/libexec/podman/conmon
version: 'conmon version 1.12.0-dev, commit: 49780a1cf10d572edc4e1ea3b8a8429ce391d47d'
Distribution:
distribution: fedora
version: "29"
MemFree: 359284736
MemTotal: 2087301120
OCIRuntime:
package: runc-1.0.0-67.dev.git12f6a99.fc29.x86_64
path: /usr/bin/runc
version: |-
runc version 1.0.0-rc6+dev
commit: d164d9b08bf7fc96a931403507dd16bced11b865
spec: 1.0.1-dev
SwapFree: 0
SwapTotal: 0
arch: amd64
cpus: 2
hostname: fedora
kernel: 4.20.7-200.fc29.x86_64
os: linux
rootless: true
uptime: 3h 23m 14.83s (Approximately 0.12 days)
insecure registries:
registries: []
registries:
registries:
- docker.io
- registry.fedoraproject.org
- quay.io
- registry.access.redhat.com
- registry.centos.org
store:
ConfigFile: /home/gitlab-runner/.config/containers/storage.conf
ContainerStore:
number: 2
GraphDriverName: overlay
GraphOptions:
- overlay.mount_program=/usr/bin/fuse-overlayfs
GraphRoot: /home/gitlab-runner/.local/share/containers/storage
GraphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
ImageStore:
number: 3
RunRoot: /tmp/user/991
*Output of buildah info:*
{
"host": {
"Distribution": {
"distribution": "fedora",
"version": "29"
},
"MemTotal": 2087301120,
"MenFree": 209571840,
"SwapFree": 0,
"SwapTotal": 0,
"arch": "amd64",
"cpus": 2,
"hostname": "fedora",
"kernel": "4.20.7-200.fc29.x86_64",
"os": "linux",
"rootless": true,
"uptime": "3h 29m 59.77s (Approximately 0.12 days)"
},
"store": {
"ContainerStore": {
"number": 2
},
"GraphDriverName": "overlay",
"GraphOptions": [
"overlay.mount_program=/usr/bin/fuse-overlayfs"
],
"GraphRoot": "/home/gitlab-runner/.local/share/containers/storage",
"GraphStatus": {
"Backing Filesystem": "extfs",
"Native Overlay Diff": "false",
"Supports d_type": "true"
},
"ImageStore": {
"number": 3
},
"RunRoot": "/tmp/user/991"
}
}
*Fedora 29*
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2347>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYHCNUZjxSKJSDJxqDMUH_Vg9IKS1Ulks5vNqU1gaJpZM4a9isQ>
.
|
As I understand while recreating of storage is required, using '--storage-driver' in podman is pointless? Because more efficient is to change config parameter instead of adding '--storage-driver' in every command. P.S. When I use buildah with '--storage-driver' it seems that it behaves quite well when overlay and vfs mixed in single storage. P.P.S. I'm trying to use buildah in containers based on fedora and centos to build images from scratch and for now its the last stopper to achieve that on same host. |
Hm... I could try to mix '--storage-driver' and '--root' and mount vfs storage to different path and use it on next builds... |
Yep! That worked! Now I can switch between storages per command basis and make them persistent:
P.S. Buildah and podman rocks!!! Thank you! |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When unprivileged user switch from default 'overlay' to 'vfs' with podman using '--storage-driver' error occur:
Same command with buildah works well.
I'm running container with centos 7 and buildah to build images, so vfs is my only choice.
Switching host to vfs is a stap back in performance.
P.S. Selinux is in permissive mode.
Steps to reproduce the issue:
useradd test
su - test
buildah --storage-driver=vfs pull fedora
buildah --storage-driver=vfs images
podman --storage-driver=vfs images
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
buildah version
:Output of
podman info
:Output of
buildah info
:Fedora 29
The text was updated successfully, but these errors were encountered: