forked from openshift/etcd-tools
-
Notifications
You must be signed in to change notification settings - Fork 19
/
error_checker.sh
executable file
·51 lines (49 loc) · 1.66 KB
/
error_checker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
echo -e "connect: network is unreachable"
cat $1 |grep "connect: network is unreachable"|wc -l
echo -e ""
echo -e "Failed to open cgroups"
cat $1 |grep "Failed to open cgroups"|wc -l
echo -e ""
echo -e "PLEG is not healthy"
cat $1 |grep "PLEG is not healthy"|wc -l
echo -e ""
echo -e "exited with status 255"
cat $1 |grep "exited with status 255"|wc -l
echo -e ""
echo -e "exited with status 1"
cat $1 |grep "exited with status 1"|wc -l
echo -e ""
echo -e "exited with status 2"
cat $1 |grep "exited with status 2"|wc -l
echo -e ""
echo -e "PullImage from image service failed"
cat $1 |grep "PullImage from image service failed"|sort |uniq|wc -l
echo -e ""
echo -e "No CNI configuration file in"
cat $1 |grep "No CNI configuration file in"|sort |uniq|wc -l
echo -e ""
echo -e "Error getting ContainerStatus for containerID"
cat $1 |grep "Error getting ContainerStatus for containerID"|sort |uniq|wc -l
echo -e ""
echo -e "network is not ready: container runtime network not ready"
cat $1 |grep "network is not ready: container runtime network not ready"|sort |uniq|wc -l
echo -e ""
echo -e "can't find the container with id"
cat $1 |grep "can't find the container with id"|sort |uniq|wc -l
echo -e ""
echo -e "DeleteContainer returned error"
cat $1 |grep "DeleteContainer returned error"|sort |uniq|wc -l
echo -e ""
echo -e "timeout"
cat $1 |grep "timeout"|sort |uniq|wc -l
echo -e ""
echo -e "failed to connect service"
cat $1 |grep "failed to connect service"|sort |uniq|wc -l
echo -e ""
echo -e "Connection reset by peer"
cat $1 |grep "Connection reset by peer"|sort |uniq|wc -l
echo -e ""
echo -e "Layer4 timeout"
cat $1 |grep "Connection reset by peer"|sort |uniq|wc -l
echo -e ""