Bug 1226825

Summary: podman erros with "configure storage: unknown option overlay.mountopt"
Product: [openSUSE] openSUSE Tumbleweed Reporter: Matej Cepl <mcepl>
Component: ContainersAssignee: Danish Prakash <danish.prakash>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: containers-bugowner, danish.prakash, lmb
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Matej Cepl 2024-06-23 16:34:37 UTC
Using distrobox/podman containers on MicroOS and with the last snapshot of Tumbleweed I get this on any podman command I run:

ERRO[0000] User-selected graph driver "overlay" overwritten by graph driver "btrfs" from database - delete libpod local files ("/var/lib/containers/storage") to resolve.  May prevent use of images created by other tools 
Error: configure storage: unknown option overlay.mountopt ("overlay.mountopt=nodev,metacopy=on")

Unfortunately, it also breaks my main working container (`distrobox --root`).

mitmanek:~ $ cat /etc/os-release 
NAME="openSUSE MicroOS"
# VERSION="20240621"
ID="opensuse-microos"
ID_LIKE="suse opensuse opensuse-tumbleweed microos sl-micro"
VERSION_ID="20240621"
PRETTY_NAME="openSUSE MicroOS"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:microos:20240621"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:MicroOS"
LOGO="distributor-logo-MicroOS"
mitmanek:~ $
Comment 1 Matej Cepl 2024-06-23 20:17:59 UTC
I had to copy /usr/share/containers/storage.conf to /etc/containers/storage.conf and change `storage.driver` to `"btrfs"` to make podman work again as before.

How come `podman` with default configuration breaks?

(used libcontainers-common-20240618-1.1.noarch)
Comment 2 Danish Prakash 2024-06-26 09:47:10 UTC
This happened because we moved all distro-specific configs (storage, mounts, seccomp) to the correct path (/usr/share/containers/*). In the process, the older storage.conf in /etc/containers/ was dropped. It was an oversight on my end.
 
> ERRO[0000] User-selected graph driver "overlay" overwritten by graph driver
> "btrfs" from database - delete libpod local files
> ("/var/lib/containers/storage") to resolve.  May prevent use of images
> created by other tools 
> Error: configure storage: unknown option overlay.mountopt
> ("overlay.mountopt=nodev,metacopy=on")

Your existing workloads were using btrfs driver but with the recent update (fix pending merge to Factory[1]), the driver was set to overlay causing the above error. It should be fixed with the next snapshot and/or wouldn't cause this in the first place.

[1] - https://build.opensuse.org/request/show/1183023