From ef999f0b4ff6c533d896bd162d6735c5d8160ef3 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Tue, 2 Mar 2021 00:19:57 +0200 Subject: [PATCH] change error to warn when removing self from etcd members Signed-off-by: galal-hussein --- pkg/cluster/cluster.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 87060129e8..76f725df33 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -12,6 +12,7 @@ import ( "github.com/rancher/k3s/pkg/cluster/managed" "github.com/rancher/k3s/pkg/daemons/config" "github.com/rancher/k3s/pkg/etcd" + "github.com/sirupsen/logrus" ) type Cluster struct { @@ -61,7 +62,7 @@ func (c *Cluster) Start(ctx context.Context) (<-chan struct{}, error) { // remove etcd member if it exists if err := c.managedDB.RemoveSelf(ctx); err != nil { - return nil, err + logrus.Warnf("Failed to remove this node from etcd members") } return ready, nil