File tree 2 files changed +14
-1
lines changed
monitortests/testframework/operatorloganalyzer
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,8 @@ const (
262
262
263
263
ReasonHighGeneration IntervalReason = "HighGeneration"
264
264
ReasonInvalidGeneration IntervalReason = "GenerationViolation"
265
+
266
+ ReasonEtcdBootstrapRemoved IntervalReason = "EtcdBootstrapRemoved"
265
267
)
266
268
267
269
type AnnotationKey string
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ import (
4
4
"context"
5
5
"errors"
6
6
"fmt"
7
- "github.com/openshift/origin/pkg/monitortests/testframework/watchnamespaces"
8
7
"strings"
9
8
"time"
10
9
10
+ "github.com/openshift/origin/pkg/monitortests/testframework/watchnamespaces"
11
+
11
12
"github.com/openshift/origin/pkg/monitor"
12
13
"github.com/openshift/origin/pkg/monitor/monitorapi"
13
14
"github.com/openshift/origin/pkg/monitortestframework"
@@ -207,6 +208,16 @@ func (g operatorLogHandler) HandleLogLine(logLine podaccess.LogLineContent) {
207
208
).
208
209
Build (logLine .Instant , logLine .Instant ),
209
210
)
211
+ case strings .Contains (logLine .Line , "Removing bootstrap member" ): // ceo removed bootstrap member
212
+ g .recorder .AddIntervals (
213
+ monitorapi .NewInterval (monitorapi .SourcePodLog , monitorapi .Info ).
214
+ Locator (logLine .Locator ).
215
+ Message (monitorapi .NewMessage ().
216
+ Reason (monitorapi .ReasonEtcdBootstrapRemoved ).
217
+ HumanMessage (logLine .Line ),
218
+ ).
219
+ Build (logLine .Instant , logLine .Instant ),
220
+ )
210
221
}
211
222
212
223
}
You can’t perform that action at this time.
0 commit comments