From 92e0ff3bfef936b45350eceda90d95ed85594636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Peliz=C3=A4us?= Date: Tue, 20 Feb 2024 10:35:48 +0100 Subject: [PATCH] lxd/storage/utils: Remove setting UUID when inserting buckets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julian Pelizäus --- lxd/storage/utils.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lxd/storage/utils.go b/lxd/storage/utils.go index cb428396c1cf..f966e53dc151 100644 --- a/lxd/storage/utils.go +++ b/lxd/storage/utils.go @@ -9,7 +9,6 @@ import ( "strings" "time" - "github.com/google/uuid" "golang.org/x/sys/unix" "github.com/canonical/lxd/lxd/apparmor" @@ -380,11 +379,6 @@ func BucketDBCreate(ctx context.Context, pool Pool, projectName string, memberSp bucket.Config = map[string]string{} } - // Ensure bucket has an UUID. - if bucket.Config["volatile.uuid"] == "" { - bucket.Config["volatile.uuid"] = uuid.New().String() - } - bucketVolName := project.StorageVolume(projectName, bucket.Name) bucketVol := drivers.NewVolume(pool.Driver(), pool.Name(), drivers.VolumeTypeBucket, drivers.ContentTypeFS, bucketVolName, bucket.Config, pool.Driver().Config())