You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note. even if we fail reading the member list from one node/etcd members we do not set EtcdMembersAgreeOnMemberList and EtcdMembersAgreeOnClusterID to false
156
156
// (those info are computed on what we can collect during inspection, so we can reason about availability even if there is a certain degree of problems in the cluster).
@@ -197,14 +197,18 @@ func (w *Workload) updateManagedEtcdConditions(ctx context.Context, controlPlane
Message: fmt.Sprintf("Failed to get answer from the etcd member on the %s Node: %s", nodeName, err.Error()),
338
342
})
339
-
returnnil, errors.Wrapf(err, "failed to get answer from the etcd member on the %s Node", nodeName)
343
+
returnnil, nil, errors.Wrapf(err, "failed to get answer from the etcd member on the %s Node", nodeName)
344
+
}
345
+
346
+
// Gets the list of etcd alarms.
347
+
alarms, err:=etcdClient.Alarms(ctx)
348
+
iferr!=nil {
349
+
conditions.MarkFalse(machine, controlplanev1.MachineEtcdMemberHealthyCondition, controlplanev1.EtcdMemberUnhealthyReason, clusterv1.ConditionSeverityError, "Failed to get answer from the etcd alarms on the %s Node", nodeName)
0 commit comments