-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-05-08-17_56_27.log
345 lines (345 loc) · 13.3 KB
/
2023-05-08-17_56_27.log
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
+ source /root/mugen/libs/locallibs/common_lib.sh
++ python3 --version
++ '[' 0 -eq 0 ']'
++ source /root/mugen/libs/locallibs/common_lib_python.sh
+ main
++ type -t post_test
+ '[' -n function ']'
+ trap post_test EXIT INT HUP TERM
+ rpm -qa
+ grep expect
++ type -t config_params
+ '[' -n '' ']'
++ type -t pre_test
+ '[' -n '' ']'
++ type -t run_test
+ '[' -n function ']'
+ run_test
+ LOG_INFO 'Start to run test.'
+ message='Start to run test.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to run test.'
Mon May 8 17:56:29 2023 - INFO - Start to run test.
+ ip6tables -A INPUT -i lo -j ACCEPT
oe_test_ip6tables_01.sh: line 24: ip6tables: command not found
+ CHECK_RESULT 127 0 0 'Failed to add rule INPUT'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Failed to add rule INPUT'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Failed to add rule INPUT'
+ LOG_ERROR 'Failed to add rule INPUT'
+ message='Failed to add rule INPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to add rule INPUT'
Mon May 8 17:56:30 2023 - ERROR - Failed to add rule INPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 25'
+ message='oe_test_ip6tables_01.sh line 25'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 25'
Mon May 8 17:56:30 2023 - ERROR - oe_test_ip6tables_01.sh line 25
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -vL
oe_test_ip6tables_01.sh: line 26: ip6tables: command not found
+ grep -A 20 INPUT
+ grep -w lo
+ CHECK_RESULT 1 0 0 'Failed to show rule INPUT'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to show rule INPUT'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to show rule INPUT'
+ LOG_ERROR 'Failed to show rule INPUT'
+ message='Failed to show rule INPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to show rule INPUT'
Mon May 8 17:56:30 2023 - ERROR - Failed to show rule INPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 27'
+ message='oe_test_ip6tables_01.sh line 27'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 27'
Mon May 8 17:56:30 2023 - ERROR - oe_test_ip6tables_01.sh line 27
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -A OUTPUT -o lo -j ACCEPT
oe_test_ip6tables_01.sh: line 28: ip6tables: command not found
+ CHECK_RESULT 127 0 0 'Failed to add rule OUTPUT'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Failed to add rule OUTPUT'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Failed to add rule OUTPUT'
+ LOG_ERROR 'Failed to add rule OUTPUT'
+ message='Failed to add rule OUTPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to add rule OUTPUT'
Mon May 8 17:56:31 2023 - ERROR - Failed to add rule OUTPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 29'
+ message='oe_test_ip6tables_01.sh line 29'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 29'
Mon May 8 17:56:31 2023 - ERROR - oe_test_ip6tables_01.sh line 29
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -vL
+ grep -A 20 OUTPUT
oe_test_ip6tables_01.sh: line 30: ip6tables: command not found
+ grep -w lo
+ CHECK_RESULT 1 0 0 'Failed to show rule OUTPUT'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to show rule OUTPUT'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to show rule OUTPUT'
+ LOG_ERROR 'Failed to show rule OUTPUT'
+ message='Failed to show rule OUTPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to show rule OUTPUT'
Mon May 8 17:56:31 2023 - ERROR - Failed to show rule OUTPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 31'
+ message='oe_test_ip6tables_01.sh line 31'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 31'
Mon May 8 17:56:32 2023 - ERROR - oe_test_ip6tables_01.sh line 31
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -A INPUT -i eth0 -j ACCEPT
oe_test_ip6tables_01.sh: line 32: ip6tables: command not found
+ CHECK_RESULT 127 0 0 'Failed to add rule INPUT eth0'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Failed to add rule INPUT eth0'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Failed to add rule INPUT eth0'
+ LOG_ERROR 'Failed to add rule INPUT eth0'
+ message='Failed to add rule INPUT eth0'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to add rule INPUT eth0'
Mon May 8 17:56:32 2023 - ERROR - Failed to add rule INPUT eth0
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 33'
+ message='oe_test_ip6tables_01.sh line 33'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 33'
Mon May 8 17:56:32 2023 - ERROR - oe_test_ip6tables_01.sh line 33
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -vL
oe_test_ip6tables_01.sh: line 34: ip6tables: command not found
+ grep -A 20 INPUT
+ grep -w eth0
+ CHECK_RESULT 1 0 0 'Failed to show rule INPUT eth0'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to show rule INPUT eth0'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to show rule INPUT eth0'
+ LOG_ERROR 'Failed to show rule INPUT eth0'
+ message='Failed to show rule INPUT eth0'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to show rule INPUT eth0'
Mon May 8 17:56:33 2023 - ERROR - Failed to show rule INPUT eth0
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 35'
+ message='oe_test_ip6tables_01.sh line 35'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 35'
Mon May 8 17:56:33 2023 - ERROR - oe_test_ip6tables_01.sh line 35
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -A OUTPUT -o eth0 -j ACCEPT
oe_test_ip6tables_01.sh: line 36: ip6tables: command not found
+ CHECK_RESULT 127 0 0 'Failed to add rule OUTPUT eth0'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Failed to add rule OUTPUT eth0'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Failed to add rule OUTPUT eth0'
+ LOG_ERROR 'Failed to add rule OUTPUT eth0'
+ message='Failed to add rule OUTPUT eth0'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to add rule OUTPUT eth0'
Mon May 8 17:56:33 2023 - ERROR - Failed to add rule OUTPUT eth0
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 37'
+ message='oe_test_ip6tables_01.sh line 37'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 37'
Mon May 8 17:56:34 2023 - ERROR - oe_test_ip6tables_01.sh line 37
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -vL
oe_test_ip6tables_01.sh: line 38: ip6tables: command not found
+ grep -A 20 OUTPUT
+ grep -w eth0
+ CHECK_RESULT 1 0 0 'Failed to show rule OUTPUT eth0'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to show rule OUTPUT eth0'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to show rule OUTPUT eth0'
+ LOG_ERROR 'Failed to show rule OUTPUT eth0'
+ message='Failed to show rule OUTPUT eth0'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to show rule OUTPUT eth0'
Mon May 8 17:56:34 2023 - ERROR - Failed to show rule OUTPUT eth0
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 39'
+ message='oe_test_ip6tables_01.sh line 39'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 39'
Mon May 8 17:56:34 2023 - ERROR - oe_test_ip6tables_01.sh line 39
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -A FORWARD -i eth1 -j ACCEPT
oe_test_ip6tables_01.sh: line 40: ip6tables: command not found
+ CHECK_RESULT 127 0 0 'Failed to add rule FORWARD INPUT'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Failed to add rule FORWARD INPUT'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Failed to add rule FORWARD INPUT'
+ LOG_ERROR 'Failed to add rule FORWARD INPUT'
+ message='Failed to add rule FORWARD INPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to add rule FORWARD INPUT'
Mon May 8 17:56:35 2023 - ERROR - Failed to add rule FORWARD INPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 41'
+ message='oe_test_ip6tables_01.sh line 41'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 41'
Mon May 8 17:56:35 2023 - ERROR - oe_test_ip6tables_01.sh line 41
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -vL
+ grep -A 20 FORWARD
oe_test_ip6tables_01.sh: line 42: ip6tables: command not found
+ awk '{print $5}'
+ grep -w eth1
+ CHECK_RESULT 1 0 0 'Failed to show rule FORWARD INPUT'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to show rule FORWARD INPUT'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to show rule FORWARD INPUT'
+ LOG_ERROR 'Failed to show rule FORWARD INPUT'
+ message='Failed to show rule FORWARD INPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to show rule FORWARD INPUT'
Mon May 8 17:56:35 2023 - ERROR - Failed to show rule FORWARD INPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 43'
+ message='oe_test_ip6tables_01.sh line 43'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 43'
Mon May 8 17:56:36 2023 - ERROR - oe_test_ip6tables_01.sh line 43
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -A FORWARD -o eth1 -j ACCEPT
oe_test_ip6tables_01.sh: line 44: ip6tables: command not found
+ CHECK_RESULT 127 0 0 'Failed to add rule FORWARD OUTPUT'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Failed to add rule FORWARD OUTPUT'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Failed to add rule FORWARD OUTPUT'
+ LOG_ERROR 'Failed to add rule FORWARD OUTPUT'
+ message='Failed to add rule FORWARD OUTPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to add rule FORWARD OUTPUT'
Mon May 8 17:56:36 2023 - ERROR - Failed to add rule FORWARD OUTPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 45'
+ message='oe_test_ip6tables_01.sh line 45'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 45'
Mon May 8 17:56:36 2023 - ERROR - oe_test_ip6tables_01.sh line 45
+ '[' 0 -eq 1 ']'
+ return 0
+ ip6tables -vL
+ grep -A 20 FORWARD
oe_test_ip6tables_01.sh: line 46: ip6tables: command not found
+ awk '{print $6}'
+ grep -w eth1
+ CHECK_RESULT 1 0 0 'Failed to show rule FORWARD OUTPUT'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to show rule FORWARD OUTPUT'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to show rule FORWARD OUTPUT'
+ LOG_ERROR 'Failed to show rule FORWARD OUTPUT'
+ message='Failed to show rule FORWARD OUTPUT'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to show rule FORWARD OUTPUT'
Mon May 8 17:56:37 2023 - ERROR - Failed to show rule FORWARD OUTPUT
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_ip6tables_01.sh line 47'
+ message='oe_test_ip6tables_01.sh line 47'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_ip6tables_01.sh line 47'
Mon May 8 17:56:37 2023 - ERROR - oe_test_ip6tables_01.sh line 47
+ '[' 0 -eq 1 ']'
+ return 0
+ LOG_INFO 'End to run test.'
+ message='End to run test.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to run test.'
Mon May 8 17:56:37 2023 - INFO - End to run test.
+ CASE_RESULT 0
+ case_re=0
+ test -z 12
+ test 12 -gt 0
+ LOG_ERROR 'failed to execute the case.'
+ message='failed to execute the case.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'failed to execute the case.'
Mon May 8 17:56:38 2023 - ERROR - failed to execute the case.
+ exit 12
+ post_test
+ LOG_INFO 'Start to restore the test environment.'
+ message='Start to restore the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to restore the test environment.'
Mon May 8 17:56:38 2023 - INFO - Start to restore the test environment.
+ ip6tables -D INPUT -i lo -j ACCEPT
oe_test_ip6tables_01.sh: line 53: ip6tables: command not found
+ ip6tables -D OUTPUT -o lo -j ACCEPT
oe_test_ip6tables_01.sh: line 54: ip6tables: command not found
+ ip6tables -D INPUT -i eth0 -j ACCEPT
oe_test_ip6tables_01.sh: line 55: ip6tables: command not found
+ ip6tables -D OUTPUT -o eth0 -j ACCEPT
oe_test_ip6tables_01.sh: line 56: ip6tables: command not found
+ ip6tables -D FORWARD -i eth1 -j ACCEPT
oe_test_ip6tables_01.sh: line 57: ip6tables: command not found
+ ip6tables -D FORWARD -o eth1 -j ACCEPT
oe_test_ip6tables_01.sh: line 58: ip6tables: command not found
+ LOG_INFO 'End to restore the test environment.'
+ message='End to restore the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to restore the test environment.'
Mon May 8 17:56:38 2023 - INFO - End to restore the test environment.