-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-05-08-10_28_17.log
222 lines (222 loc) · 7.46 KB
/
2023-05-08-10_28_17.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
+ 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.'
Mon May 8 10:28:18 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/tmpj0a4zqzz
+ '[' -z '' ']'
+ tmpfile=/tmp/tmpj0a4zqzz
+ 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.'
Mon May 8 10:28:36 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.'
Mon May 8 10:28:36 2023 - INFO - Start to run test.
+ repet_num=0
+ '[' 0 -le 50 ']'
+ echo '===========loop 0=============='
===========loop 0==============
+ SSH_CMD ls 10.198.114.2 'openEuler12#$' root
+ cmd=ls
+ remoteip=10.198.114.2
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c ls -i 10.198.114.2 -u root -p 'openEuler12#$' -t 300 -o 22
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
Mon May 8 10:28:37 2023 - ERROR - connection to 10.198.114.2 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'
Mon May 8 10:28:37 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'
Mon May 8 10:28:38 2023 - ERROR - oe_test_reboot.sh line 35
+ '[' 0 -eq 1 ']'
+ return 0
+ SSH_CMD reboot 10.198.114.2 'openEuler12#$' root
+ cmd=reboot
+ remoteip=10.198.114.2
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c reboot -i 10.198.114.2 -u root -p 'openEuler12#$' -t 300 -o 22
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
Mon May 8 10:28:41 2023 - ERROR - connection to 10.198.114.2 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'
Mon May 8 10:28:41 2023 - ERROR - Failed in remote CMD operation:101
+ return 101
+ ping -c 10 10.198.114.2
+ 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
Mon May 8 12:28:17 2023 - ERROR - Timeout : Command 'bash -x oe_test_reboot.sh' timed out after 7199.999800810001 seconds
++ 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 13:06:05 2023 - INFO - Start to restore the test environment.
++ DNF_REMOVE
++ node=1
++ pkg_list=
++ mode=0
++ [[ -z /tmp/tmpj0a4zqzz ]]
++ '[' 0 -ne 0 ']'
++ '[' 1 == 0 ']'
++ python3 /root/mugen/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmpj0a4zqzz
++ '[' 0 -ne 0 ']'
++ rm -rf lossfile
++ 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 13:07:40 2023 - INFO - End to restore the test environment.
Hangup
+ CHECK_RESULT 129
+ actual_result=129
+ expect_result=0
+ mode=0
+ error_log=
+ exit_mode=0
+ '[' -z 129 ']'
+ '[' 0 -eq 0 ']'
+ test 129x '!=' 0x
+ test -n ''
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_reboot.sh line 44'
+ message='oe_test_reboot.sh line 44'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_reboot.sh line 44'
Mon May 8 13:07:41 2023 - ERROR - oe_test_reboot.sh line 44
+ '[' 0 -eq 1 ']'
+ return 0
+ (( repet_num++ ))
+ '[' 1 -le 50 ']'
+ echo '===========loop 1=============='
===========loop 1==============
+ SSH_CMD ls 10.198.114.2 'openEuler12#$' root
+ cmd=ls
+ remoteip=10.198.114.2
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c ls -i 10.198.114.2 -u root -p 'openEuler12#$' -t 300 -o 22
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Mon May 8 13:07:51 2023 - ERROR - connection to 10.198.114.2 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'
Mon May 8 13:07:51 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'
Mon May 8 13:07:52 2023 - ERROR - oe_test_reboot.sh line 35
+ '[' 0 -eq 1 ']'
+ return 0
+ SSH_CMD reboot 10.198.114.2 'openEuler12#$' root
+ cmd=reboot
+ remoteip=10.198.114.2
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c reboot -i 10.198.114.2 -u root -p 'openEuler12#$' -t 300 -o 22
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Mon May 8 13:08:02 2023 - ERROR - connection to 10.198.114.2 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'
Mon May 8 13:08:02 2023 - ERROR - Failed in remote CMD operation:101
+ return 101
+ ping -c 10 10.198.114.2
+ 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