From a0a11ee507a4d35e6096a220e06ba2b47037a1b3 Mon Sep 17 00:00:00 2001 From: Wesley Hershberger Date: Mon, 29 Jul 2024 17:49:44 -0500 Subject: [PATCH] internal/recover: Write the global DB patch on all nodes A fix for the same issue as in LXD: https://github.com/canonical/lxd/pull/13754#issuecomment-2231001761 Signed-off-by: Wesley Hershberger --- internal/recover/recover.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/recover/recover.go b/internal/recover/recover.go index 2c10f7ff..2992b0a6 100644 --- a/internal/recover/recover.go +++ b/internal/recover/recover.go @@ -496,6 +496,11 @@ func MaybeUnpackRecoveryTarball(filesystem *sys.OS) error { return err } + err = writeGlobalMembersPatch(filesystem, incomingMembers) + if err != nil { + return fmt.Errorf("Failed to write global DB update: %w", err) + } + return nil }