From 05df0bdae016080356a9b67676744589ec516422 Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Wed, 27 Mar 2024 23:34:57 +0000 Subject: [PATCH] fix(replica/entity_id): ignore not implemented error During upgrades some nodes are not.. updated.. so ignore the error Signed-off-by: Tiago Castro --- .../agents/src/bin/core/nexus/operations_helper.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/control-plane/agents/src/bin/core/nexus/operations_helper.rs b/control-plane/agents/src/bin/core/nexus/operations_helper.rs index 57ffe7b7d..ef926cf1a 100644 --- a/control-plane/agents/src/bin/core/nexus/operations_helper.rs +++ b/control-plane/agents/src/bin/core/nexus/operations_helper.rs @@ -141,11 +141,13 @@ impl OperationGuardArc { replica_state.node.clone(), ); if let Err(error) = node.set_replica_entity_id(&set_entity_id).await { - tracing::error!( - replica.uuid = %replica_state.uuid, - %error, - "Failed to set entity_id", - ); + if error.tonic_code() != tonic::Code::Unimplemented { + tracing::error!( + replica.uuid = %replica_state.uuid, + %error, + "Failed to set entity_id", + ); + } } } }