Skip to content

Commit

Permalink
fix: Correctly detect weave IP allocation issues (#72)
Browse files Browse the repository at this point in the history
* fix: Correctly detect weave IP allocation issues

* Correct regex expression
  • Loading branch information
banjoh authored Jul 7, 2023
1 parent 98777f8 commit 293d1b9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions in-cluster/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,19 +359,19 @@ spec:
- pass:
message: Weave is ready
regex: '"Ready": true'
# TODO: Analysis results are false positives
# https://github.com/replicatedhq/troubleshoot-specs/issues/43
# - textAnalyze:
# checkName: Weave IP Allocation
# exclude: ""
# ignoreIfNoFiles: true
# fileName: kots/kurl/weave/kube-system/weave-net-*/weave-report-stdout.txt
# outcomes:
# - fail:
# message: IP Allocation issues detected. Please run `rm /var/lib/weave/weave-netdata.db && reboot` on each node to resolve this.
# - pass:
# message: Weave is ready, there are no IP allocation issues.
# regex: '"IP Allocation was seeded by different peers": false'
- textAnalyze:
checkName: Weave IP Allocation
exclude: ""
ignoreIfNoFiles: true
regex: 'IP allocation was seeded by different peers'
fileName: kots/kurl/weave/weave-net-*/weave.log
outcomes:
- fail:
when: "true"
message: IP Allocation issues detected. Please run `rm /var/lib/weave/weave-netdata.db && reboot` on each node to resolve this.
- pass:
when: "false"
message: Weave is ready, there are no IP allocation issues.
- textAnalyze:
checkName: Inter-pod Networking
exclude: ""
Expand Down

0 comments on commit 293d1b9

Please sign in to comment.