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
{Type: controlplanev1.KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition, Status: metav1.ConditionUnknown, Reason: controlplanev1.KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason, Message: "Failed to get the Node hosting the etcd member"},
83
83
},
84
84
},
85
-
expectedEtcdMembersAgreeOnMemberList: false, // without reading notes, we can make assumptions.
86
-
expectedEtcdMembersAgreeOnClusterID: false, // without reading notes, we can make assumptions.
87
-
expectedEtcdMembersAndMachinesAreMatching: false, // without reading notes, we can make assumptions.
85
+
expectedEtcdMembersAgreeOnMemberList: false, // without reading nodes, we can not make assumptions.
86
+
expectedEtcdMembersAgreeOnClusterID: false, // without reading nodes, we can not make assumptions.
87
+
expectedEtcdMembersAndMachinesAreMatching: false, // without reading nodes, we can not make assumptions.
88
88
},
89
89
{
90
90
name: "If there are provisioning machines, a node without machine should be ignored in v1beta1, reported in v1beta2",
{Type: controlplanev1.KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition, Status: metav1.ConditionUnknown, Reason: controlplanev1.KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason, Message: "Failed to connect to the etcd Pod on the n1 Node: failed to get client for node"},
165
165
},
166
166
},
167
-
expectedEtcdMembersAgreeOnMemberList: false, // failure in reading members, we can make assumptions.
168
-
expectedEtcdMembersAgreeOnClusterID: false, // failure in reading members, we can make assumptions.
169
-
expectedEtcdMembersAndMachinesAreMatching: false, // failure in reading members, we can make assumptions.
167
+
expectedEtcdMembersAgreeOnMemberList: false, // failure in reading members, we can not make assumptions.
168
+
expectedEtcdMembersAgreeOnClusterID: false, // failure in reading members, we can not make assumptions.
169
+
expectedEtcdMembersAndMachinesAreMatching: false, // failure in reading members, we can not make assumptions.
170
170
},
171
171
{
172
172
name: "etcd client reporting status errors should be reflected into a false condition",
{Type: controlplanev1.KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition, Status: metav1.ConditionUnknown, Reason: controlplanev1.KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason, Message: "Failed to get answer from the etcd member on the n1 Node: failed to get list of members for etcd cluster: failed to list members"},
243
243
},
244
244
},
245
-
expectedEtcdMembersAgreeOnMemberList: false, // without reading members, we can make assumptions.
246
-
expectedEtcdMembersAgreeOnClusterID: false, // without reading members, we can make assumptions.
247
-
expectedEtcdMembersAndMachinesAreMatching: false, // without reading members, we can make assumptions.
245
+
expectedEtcdMembersAgreeOnMemberList: false, // without reading members, we can not make assumptions.
246
+
expectedEtcdMembersAgreeOnClusterID: false, // without reading members, we can not make assumptions.
247
+
expectedEtcdMembersAndMachinesAreMatching: false, // without reading members, we can not make assumptions.
248
248
},
249
249
{
250
250
name: "an etcd member with alarms should report false condition",
{Type: controlplanev1.KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition, Status: metav1.ConditionFalse, Reason: controlplanev1.KubeadmControlPlaneMachineEtcdMemberNotHealthyV1Beta2Reason, Message: "Etcd member has cluster ID 2, but all previously seen etcd members have cluster ID 1"},
{Type: controlplanev1.KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition, Status: metav1.ConditionFalse, Reason: controlplanev1.KubeadmControlPlaneMachineEtcdMemberNotHealthyV1Beta2Reason, Message: "The etcd member hosted on this Machine reports the cluster is composed by [n2 n3], but all previously seen etcd members are reporting [n1 n2]"},
{Type: controlplanev1.KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition, Status: metav1.ConditionFalse, Reason: controlplanev1.KubeadmControlPlaneMachineEtcdMemberNotHealthyV1Beta2Reason, Message: "Etcd doesn't have an etcd member for Node n2"},
g.Expect(controlPane.EtcdMembersAgreeOnMemberList).To(Equal(tt.expectedEtcdMembersAgreeOnMemberList), "EtcdMembersAgreeOnMemberList does not match")
669
674
g.Expect(controlPane.EtcdMembersAgreeOnClusterID).To(Equal(tt.expectedEtcdMembersAgreeOnClusterID), "EtcdMembersAgreeOnClusterID does not match")
670
675
g.Expect(controlPane.EtcdMembersAndMachinesAreMatching).To(Equal(tt.expectedEtcdMembersAndMachinesAreMatching), "EtcdMembersAndMachinesAreMatching does not match")
0 commit comments