-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-04-28-05_55_16.log
113 lines (113 loc) · 3.87 KB
/
2023-04-28-05_55_16.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
+ 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 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.'
Fri Apr 28 05:55:19 2023 - INFO - Start to prepare the test environment.
+ EXECUTE_T=120m
+ DNF_INSTALL dmidecode
+ pkgs=dmidecode
+ node=1
+ '[' -z '' ']'
+ tmpfile=
++ python3 /root/mugen/libs/locallibs/rpm_manage.py install --pkgs dmidecode --node 1 --tempfile ''
+ tmpfile2=/tmp/tmpaxw8wv7_
+ '[' -z '' ']'
+ tmpfile=/tmp/tmpaxw8wv7_
+ 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.'
Fri Apr 28 05:55:50 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.'
Fri Apr 28 05:55:51 2023 - INFO - Start to run test.
+ repet_num=0
+ '[' 0 -le 50 ']'
+ echo '===========loop 0=============='
===========loop 0==============
+ SSH_CMD ls 10.198.114.4 'openEuler12#$' root
+ cmd=ls
+ remoteip=10.198.114.4
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c ls -i 10.198.114.4 -u root -p 'openEuler12#$' -t 300 -o 22
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
Fri Apr 28 05:55:53 2023 - ERROR - connection to 10.198.114.4 failed.
+ ret=101
+ test 101 -ne 0
+ LOG_ERROR 'Failed in remote CMD operation:101'
+ message='Failed in remote CMD operation:101'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed in remote CMD operation:101'
Fri Apr 28 05:55:54 2023 - ERROR - Failed in remote CMD operation:101
+ return 101
+ CHECK_RESULT 101
+ actual_result=101
+ expect_result=0
+ mode=0
+ error_log=
+ exit_mode=0
+ '[' -z 101 ']'
+ '[' 0 -eq 0 ']'
+ test 101x '!=' 0x
+ test -n ''
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_reboot.sh line 35'
+ message='oe_test_reboot.sh line 35'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_reboot.sh line 35'
Fri Apr 28 05:55:54 2023 - ERROR - oe_test_reboot.sh line 35
+ '[' 0 -eq 1 ']'
+ return 0
+ SSH_CMD reboot 10.198.114.4 'openEuler12#$' root
+ cmd=reboot
+ remoteip=10.198.114.4
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c reboot -i 10.198.114.4 -u root -p 'openEuler12#$' -t 300 -o 22
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
Fri Apr 28 05:55:57 2023 - ERROR - connection to 10.198.114.4 failed.
+ ret=101
+ test 101 -ne 0
+ LOG_ERROR 'Failed in remote CMD operation:101'
+ message='Failed in remote CMD operation:101'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed in remote CMD operation:101'
Fri Apr 28 05:55:58 2023 - ERROR - Failed in remote CMD operation:101
+ return 101
+ ping -c 10 10.198.114.4
+ grep -w '0% packet loss' lossfile
+ CHECK_RESULT 1 1
+ actual_result=1
+ expect_result=1
+ mode=0
+ error_log=
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 1x
+ return 0
+ REMOTE_REBOOT_WAIT 2 10
+ node=2
+ waittime=10
+ '[' 10x '!=' x ']'
+ python3 /root/mugen/libs/locallibs/remote_reboot.py wait --node 2 --waittime 10
Fri Apr 28 07:55:16 2023 - ERROR - Timeout : Command 'bash -x oe_test_reboot.sh' timed out after 7199.999315199999 seconds