From c5b31878d90dd8542f838864e08d631cc59992c9 Mon Sep 17 00:00:00 2001 From: Wesley Hershberger Date: Tue, 16 Jul 2024 09:12:44 -0500 Subject: [PATCH] lxd/cluster: Write global patch on every node during recovery Signed-off-by: Wesley Hershberger --- lxd/cluster/recover.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lxd/cluster/recover.go b/lxd/cluster/recover.go index 92514e6c273c..947c29258b96 100644 --- a/lxd/cluster/recover.go +++ b/lxd/cluster/recover.go @@ -390,6 +390,11 @@ func MaybeUnpackRecoveryTarball(database *db.Node) error { return err } + err = writeGlobalNodesPatch(database, incomingRaftNodes) + if err != nil { + return fmt.Errorf("Failed to create global db patch for cluster recover: %w", err) + } + // Now that we're as sure as we can be that the recovery DB is valid, we can // replace the existing DB err = os.RemoveAll(globalDBDir)