From 686a4ebb1b52601e1d42d181e7158ab76bdd1ae2 Mon Sep 17 00:00:00 2001 From: Thilo Fromm Date: Fri, 27 Oct 2023 18:00:21 +0200 Subject: [PATCH] tests/docker: add devicemapper storage test Add a smoke test for the docker devicemapper storage backend. Flatcar ships docker with support for the devicemapper storage back-end but we don't test it regularly. This has almost lead to the docker 24 update silently shipping without that storage driver. Signed-off-by: Thilo Fromm --- kola/tests/docker/docker.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/kola/tests/docker/docker.go b/kola/tests/docker/docker.go index 3eb503e95..90fd6b95e 100644 --- a/kola/tests/docker/docker.go +++ b/kola/tests/docker/docker.go @@ -187,6 +187,29 @@ systemd: Distros: []string{"cl"}, }) + register.Register(®ister.Test{ + Run: func(c cluster.TestCluster) { testDockerInfo("devicemapper", c) }, + ClusterSize: 1, + Name: "docker.devicemapper-storage", + // This test is normally not related to the cloud environment + Platforms: []string{"qemu", "qemu-unpriv"}, + // Added explicit devicemapper driver selection to override overlay2 default + UserData: conf.Butane(` +variant: flatcar +version: 1.0.0 + +storage: + files: + - path: /etc/docker/daemon.json + contents: + inline: | + { + "storage-driver": "devicemapper" + } +`), + Distros: []string{"cl"}, + }) + register.Register(®ister.Test{ // For a while we shipped /usr/lib/coreos/dockerd as the execstart of the // docker systemd unit.