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
Copy file name to clipboardExpand all lines: scripts/README.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
A set of scripts to run basic checks on an OpenShift cluster. PRs welcome!
4
4
5
-
> :warning: This is an unofficial tool, don't blame us if it breaks your cluster
5
+
This >:warning: is an unofficial tool, don't blame us if it breaks your cluster
6
6
7
7
## ovn_cleanConntrack.sh
8
8
@@ -42,7 +42,7 @@ Single node execution:
42
42
$ ./ovn_cleanConntrack.sh -s my.node.com
43
43
```
44
44
45
-
For the -k parameter, the original behavior is still the same but if you want to analyse different clusters from the same bastion you can do it using the -k parameter to pass the kubeconfig file to the script, for example:
45
+
For the -k parameter, the original behavior is still the same but if you want to analyze different clusters from the same bastion you can do it using the -k parameter to pass the kubeconfig file to the script, for example:
@@ -56,15 +56,16 @@ If no -k is indicated the script expects to have the KUBECONFIG variable exporte
56
56
For the -q parameter, instead of printing the output to the standard output now you can indicate the file were to save the output of the script, to cover the commented use case for running on batch mode:
If no conntracks with issues are found the files `/tmp/cluster?.output` won't be created. If no -q is indicated, the script will print the results in the standard output.
65
+
If no conntracks with issues are found the files `/tmp/cluster?.output` won't be created. If no `-q` is indicated, the script will print the results in the standard output.
65
66
66
-
Here is an example on how to configure a cronjob to run the script every hour (you can place it on /etc/cron.d/1conntracks).
67
-
This example uses the parameters -k and -q indicating the kubeconfig and the file to save the output:
67
+
Here is an example of how to configure a cronjob to run the script every hour (you can place it on `/etc/cron.d/1conntracks`).
68
+
This example uses the parameters `-k` and `-q` indicating the kubeconfig and the file to save the output:
In that example, the debug log is still being generated using the LOG var inside the script, but that is a debug log file in case we need to debug the script behaviour, and it can be modified according to bastion space and needs.
80
+
In that example, the debug log is still being generated using the LOG var inside the script, but that is a debug log file in case we need to debug the script behavior, and it can be modified according to bastion space and needs.
80
81
81
82
## recover-northd.sh
82
83
83
84
### Usage
84
85
85
-
````bash
86
+
```bash
86
87
$ ./recover-northd.sh -h
87
88
This script checks if northd is stuck and optionally intervene
88
89
@@ -91,15 +92,17 @@ This script checks if northd is stuck and optionally intervene
91
92
Save extra DEBUG lines into the log: recover-northd.sh -d
92
93
Set the KUBECONFIG env var to /kubeconfig/file: recover-northd.sh -k /kubeconfig/file
93
94
Remediate the issue: recover-northd.sh -r
95
+
```
94
96
95
-
After the execution a logfile will be generated with the name recover-northd.DATE.log
97
+
After the execution, a logfile will be generated with the name `recover-northd.DATE.log`
96
98
97
99
### Examples
98
100
99
101
Saving extra debug lines in the log file:
102
+
100
103
```bash
101
104
$ ./recover-northd.sh -d
102
-
````
105
+
```
103
106
104
107
For the -k parameter, the original behavior is still the same but if you want to analyse different clusters from the same bastion you can do it using the -k parameter to pass the kubeconfig file to the script, for example:
In the previous example, the script will analyse the clusters indicated by the kubeconfig files on `/home/kni/clusterconfigs/cluster1/kubeconfig`, `/home/kni/clusterconfigs/cluster2/kubeconfig` and `/home/kni/clusterconfigs/cluster3/kubeconfig`
113
-
If no -k is indicated the script expects to have the KUBECONFIG variable exported in the system otherwise it will give an error because it can't connect.
114
116
115
-
For the -r parameter, the script will send an exit to the northd container for OVN to elect a new leader:
117
+
If no `-k` is indicated the script expects to have the KUBECONFIG variable exported in the system otherwise it will give an error because it can't connect.
118
+
119
+
For the `-r` parameter, the script will send an exit to the northd container for OVN to elect a new leader:
0 commit comments