-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-06-07-11_36_23.log
421 lines (420 loc) · 15.2 KB
/
2023-06-07-11_36_23.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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
+ source common/common.sh
++ 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 function ']'
+ config_params
+ LOG_INFO 'Start to config params of the case.'
+ message='Start to config params of the case.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to config params of the case.'
Wed Jun 7 11:36:25 2023 - INFO - Start to config params of the case.
+ common_config_params
+ DRIVER_MEDIUMX=L80
+ DRIVER_TAPE=T10000B
+ LOG_INFO 'End to config params of the case.'
+ message='End to config params of the case.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to config params of the case.'
Wed Jun 7 11:36:26 2023 - INFO - End to config params of the case.
++ type -t pre_test
+ '[' -n function ']'
+ pre_test
+ LOG_INFO 'Start to prepare the test environment.'
+ message='Start to prepare the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to prepare the test environment.'
Wed Jun 7 11:36:26 2023 - INFO - Start to prepare the test environment.
+ common_pre
+ DNF_INSTALL 'mtx rpm-build rpmdevtools git zlib-devel'
+ pkgs='mtx rpm-build rpmdevtools git zlib-devel'
+ node=1
+ '[' -z '' ']'
+ tmpfile=
++ python3 /root/mugen/libs/locallibs/rpm_manage.py install --pkgs 'mtx rpm-build rpmdevtools git zlib-devel' --node 1 --tempfile ''
+ tmpfile2=/tmp/tmpmz8y3mrw
+ '[' -z '' ']'
+ tmpfile=/tmp/tmpmz8y3mrw
+ rpmdev-setuptree
+ git clone https://gitee.com/src-openeuler/mhvtl.git ./tmp/mhvtl
Cloning into './tmp/mhvtl'...
+ cp ./tmp/mhvtl/1.7-0_release.tar.gz ./tmp/mhvtl/build-kernel-module.patch ./tmp/mhvtl/build-mhvtl-module.patch /root/rpmbuild/SOURCES
+ rpmbuild -bb ./tmp/mhvtl/mhvtl-utils.spec
warning: bogus date in %changelog: Wed Dec 22 2022 lutkunpeng <[email protected]> - 1.7-3
error: Failed build dependencies:
gcc is needed by mhvtl-utils-1.7-3.x86_64
kernel-devel is needed by mhvtl-utils-1.7-3.x86_64
RPM build warnings:
bogus date in %changelog: Wed Dec 22 2022 lutkunpeng <[email protected]> - 1.7-3
++ arch
+ dnf install '/root/rpmbuild/RPMS/x86_64/*.rpm' -y
Last metadata expiration check: 0:02:44 ago on Wed 07 Jun 2023 11:34:18 AM UTC.
Can not load RPM file: /root/rpmbuild/RPMS/x86_64/*.rpm.
Could not open: /root/rpmbuild/RPMS/x86_64/*.rpm
+ systemctl start mhvtl.target
Failed to start mhvtl.target: Unit mhvtl.target not found.
+ SLEEP_WAIT 5s
+ wait_time=5s
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 5s --cmd '' --mode 1
++ lsscsi -g
common/common.sh: line 43: lsscsi: command not found
++ grep L80
++ grep -oE '/dev/sg.*'
+ PATH_MEDIUMX=
++ lsscsi -g
++ grep -m 1 T10000B
common/common.sh: line 45: lsscsi: command not found
++ grep -oE '/dev/st[0-9]*'
+ PATH_TAPE=
+ LOG_INFO 'End to prepare the test environment.'
+ message='End to prepare the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End to prepare the test environment.'
Wed Jun 7 11:37:08 2023 - INFO - End to prepare the test environment.
++ 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.'
Wed Jun 7 11:37:08 2023 - INFO - Start to run test.
+ common_test
+ systemctl status mhvtl.target
+ grep 'mhvtl service allowing to start/stop'
Unit mhvtl.target could not be found.
+ CHECK_RESULT 1 0 0 'mhvtl service WRONG'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='mhvtl service WRONG'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'mhvtl service WRONG'
+ LOG_ERROR 'mhvtl service WRONG'
+ message='mhvtl service WRONG'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'mhvtl service WRONG'
Wed Jun 7 11:37:09 2023 - ERROR - mhvtl service WRONG
+ (( exec_result++ ))
+ LOG_ERROR 'common/common.sh line 52'
+ message='common/common.sh line 52'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'common/common.sh line 52'
Wed Jun 7 11:37:09 2023 - ERROR - common/common.sh line 52
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx --version
+ grep 'mtx version'
mtx version 1.3.12
+ CHECK_RESULT 0 0 0 'option: --version error'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='option: --version error'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ mtx -f noattach
cannot open SCSI device 'noattach' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f noattach error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f noattach error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f noattach error'
+ LOG_ERROR 'option: -f noattach error'
+ message='option: -f noattach error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f noattach error'
Wed Jun 7 11:37:09 2023 - ERROR - option: -f noattach error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 47'
+ message='oe_test_mtx_mtx.sh line 47'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 47'
Wed Jun 7 11:37:10 2023 - ERROR - oe_test_mtx_mtx.sh line 47
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f inquiry
+ grep L80
cannot open SCSI device 'inquiry' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f inquiry error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f inquiry error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f inquiry error'
+ LOG_ERROR 'option: -f inquiry error'
+ message='option: -f inquiry error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f inquiry error'
Wed Jun 7 11:37:10 2023 - ERROR - option: -f inquiry error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 49'
+ message='oe_test_mtx_mtx.sh line 49'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 49'
Wed Jun 7 11:37:10 2023 - ERROR - oe_test_mtx_mtx.sh line 49
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f inventory
cannot open SCSI device 'inventory' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f inventory error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f inventory error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f inventory error'
+ LOG_ERROR 'option: -f inventory error'
+ message='option: -f inventory error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f inventory error'
Wed Jun 7 11:37:11 2023 - ERROR - option: -f inventory error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 51'
+ message='oe_test_mtx_mtx.sh line 51'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 51'
Wed Jun 7 11:37:11 2023 - ERROR - oe_test_mtx_mtx.sh line 51
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f status
+ grep Element
cannot open SCSI device 'status' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f status error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f status error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f status error'
+ LOG_ERROR 'option: -f status error'
+ message='option: -f status error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f status error'
Wed Jun 7 11:37:11 2023 - ERROR - option: -f status error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 53'
+ message='oe_test_mtx_mtx.sh line 53'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 53'
Wed Jun 7 11:37:12 2023 - ERROR - oe_test_mtx_mtx.sh line 53
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f first
+ grep done
cannot open SCSI device 'first' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f first error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f first error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f first error'
+ LOG_ERROR 'option: -f first error'
+ message='option: -f first error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f first error'
Wed Jun 7 11:37:12 2023 - ERROR - option: -f first error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 55'
+ message='oe_test_mtx_mtx.sh line 55'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 55'
Wed Jun 7 11:37:12 2023 - ERROR - oe_test_mtx_mtx.sh line 55
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f last
+ grep done
cannot open SCSI device 'last' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f last error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f last error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f last error'
+ LOG_ERROR 'option: -f last error'
+ message='option: -f last error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f last error'
Wed Jun 7 11:37:12 2023 - ERROR - option: -f last error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 57'
+ message='oe_test_mtx_mtx.sh line 57'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 57'
Wed Jun 7 11:37:13 2023 - ERROR - oe_test_mtx_mtx.sh line 57
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f previous
+ grep done
cannot open SCSI device 'previous' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f previous error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f previous error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f previous error'
+ LOG_ERROR 'option: -f previous error'
+ message='option: -f previous error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f previous error'
Wed Jun 7 11:37:13 2023 - ERROR - option: -f previous error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 59'
+ message='oe_test_mtx_mtx.sh line 59'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 59'
Wed Jun 7 11:37:13 2023 - ERROR - oe_test_mtx_mtx.sh line 59
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f next
+ grep done
cannot open SCSI device 'next' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f next error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f next error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f next error'
+ LOG_ERROR 'option: -f next error'
+ message='option: -f next error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f next error'
Wed Jun 7 11:37:14 2023 - ERROR - option: -f next error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 61'
+ message='oe_test_mtx_mtx.sh line 61'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 61'
Wed Jun 7 11:37:14 2023 - ERROR - oe_test_mtx_mtx.sh line 61
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f unload 40 0
+ grep done
cannot open SCSI device 'unload' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f unload 40 0 error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f unload 40 0 error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f unload 40 0 error'
+ LOG_ERROR 'option: -f unload 40 0 error'
+ message='option: -f unload 40 0 error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f unload 40 0 error'
Wed Jun 7 11:37:14 2023 - ERROR - option: -f unload 40 0 error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 63'
+ message='oe_test_mtx_mtx.sh line 63'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 63'
Wed Jun 7 11:37:15 2023 - ERROR - oe_test_mtx_mtx.sh line 63
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f load 1 0
+ grep done
cannot open SCSI device 'load' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f load 1 0 error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f load 1 0 error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f load 1 0 error'
+ LOG_ERROR 'option: -f load 1 0 error'
+ message='option: -f load 1 0 error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f load 1 0 error'
Wed Jun 7 11:37:15 2023 - ERROR - option: -f load 1 0 error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 65'
+ message='oe_test_mtx_mtx.sh line 65'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 65'
Wed Jun 7 11:37:15 2023 - ERROR - oe_test_mtx_mtx.sh line 65
+ '[' 0 -eq 1 ']'
+ return 0
+ mtx -f transfer 40 41
cannot open SCSI device 'transfer' - No such file or directory
+ CHECK_RESULT 1 0 0 'option: -f transfer 40 41 error'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='option: -f transfer 40 41 error'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'option: -f transfer 40 41 error'
+ LOG_ERROR 'option: -f transfer 40 41 error'
+ message='option: -f transfer 40 41 error'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'option: -f transfer 40 41 error'
Wed Jun 7 11:37:16 2023 - ERROR - option: -f transfer 40 41 error
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_mtx_mtx.sh line 67'
+ message='oe_test_mtx_mtx.sh line 67'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_mtx_mtx.sh line 67'
Wed Jun 7 11:37:16 2023 - ERROR - oe_test_mtx_mtx.sh line 67
+ '[' 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.'
Wed Jun 7 11:37:16 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.'
Wed Jun 7 11:37:17 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.'
Wed Jun 7 11:37:17 2023 - INFO - Start to restore the test environment.
+ common_post
+ rm -rf ./tmp /root/rpmbuild
+ systemctl stop mhvtl.target
Failed to stop mhvtl.target: Unit mhvtl.target not loaded.
+ DNF_REMOVE
+ node=1
+ pkg_list=
+ mode=0
+ [[ -z /tmp/tmpmz8y3mrw ]]
+ '[' 0 -ne 0 ']'
+ '[' 1 == 0 ']'
+ python3 /root/mugen/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmpmz8y3mrw
+ '[' 0 -ne 0 ']'
+ 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.'
Wed Jun 7 11:37:25 2023 - INFO - End to restore the test environment.