From 3354423c0dcc3fb151e63b74fed1ac52319f0638 Mon Sep 17 00:00:00 2001 From: Matt Heon Date: Fri, 8 Aug 2025 09:00:19 -0400 Subject: [PATCH] Add a deprecation notice for users of BoltDB Right now, only log-level=info, so not shown by default. We can continue to up this in subsequent releases to convince folks of the urgency of switching. Resolves https://issues.redhat.com/browse/RUN-3343 Signed-off-by: Matt Heon --- libpod/boltdb_state.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go index 45fd80b79c..ee872ad6be 100644 --- a/libpod/boltdb_state.go +++ b/libpod/boltdb_state.go @@ -94,6 +94,11 @@ func NewBoltState(path string, runtime *Runtime) (State, error) { logrus.Debugf("Allowing deprecated database backend due to CI_DESIRED_DATABASE.") } + // TODO: Up this to WARN level in 5.7, ERROR level in 5.8 + if os.Getenv("SUPPRESS_BOLTDB_WARNING") == "" { + logrus.Infof("The deprecated BoltDB database driver is in use. This driver will be removed in the upcoming Podman 6.0 release in mid 2026. It is advised that you migrate to SQLite to avoid issues when this occurs. Set SUPPRESS_BOLTDB_WARNING environment variable to remove this message.") + } + db, err := bolt.Open(path, 0600, nil) if err != nil { return nil, fmt.Errorf("opening database %s: %w", path, err)