-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-06-08-11_59_31.log
494 lines (488 loc) · 19.5 KB
/
2023-06-08-11_59_31.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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
+ 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 loading data!'
+ message='Start loading data!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start loading data!'
Thu Jun 8 11:59:39 2023 - INFO - Start loading data!
++ TEST_DISK 1
++ id=1
++ python3 /root/mugen/libs/locallibs/get_test_device.py --device disk --node 1
+ TEST_DISK=/dev/
+ LOG_INFO 'Loading data is complete!'
+ message='Loading data is complete!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Loading data is complete!'
Thu Jun 8 12:00:02 2023 - INFO - Loading data is complete!
++ type -t pre_test
+ '[' -n function ']'
+ pre_test
+ LOG_INFO 'Start environmental preparation.'
+ message='Start environmental preparation.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.'
Thu Jun 8 12:00:04 2023 - INFO - Start environmental preparation.
+ DNF_INSTALL 'tang clevis clevis-dracut cryptsetup-reencrypt clevis-udisks2'
+ pkgs='tang clevis clevis-dracut cryptsetup-reencrypt clevis-udisks2'
+ node=1
+ '[' -z '' ']'
+ tmpfile=
++ python3 /root/mugen/libs/locallibs/rpm_manage.py install --pkgs 'tang clevis clevis-dracut cryptsetup-reencrypt clevis-udisks2' --node 1 --tempfile ''
Thu Jun 8 12:00:27 2023 - ERROR - pkgs:(cryptsetup-reencrypt) not found
+ tmpfile2=
+ '[' -z '' ']'
+ tmpfile=
+ DNF_INSTALL tang 2
+ pkgs=tang
+ node=2
+ '[' -z '' ']'
+ tmpfile=
++ python3 /root/mugen/libs/locallibs/rpm_manage.py install --pkgs tang --node 2 --tempfile ''
Traceback (most recent call last):
File "/root/mugen/libs/locallibs/rpm_manage.py", line 176, in <module>
exitcode, output = rpm_install(args.pkgs, args.node, args.tempfile)
File "/root/mugen/libs/locallibs/rpm_manage.py", line 66, in rpm_install
conn = ssh_cmd.pssh_conn(
File "/root/mugen/libs/locallibs/ssh_cmd.py", line 53, in pssh_conn
conn.connect(ip, port, user, password, timeout=timeout)
File "/usr/lib/python3.10/site-packages/paramiko/client.py", line 340, in connect
to_try = list(self._families_and_addresses(hostname, port))
File "/usr/lib/python3.10/site-packages/paramiko/client.py", line 203, in _families_and_addresses
addrinfos = socket.getaddrinfo(
File "/usr/lib64/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
+ tmpfile2=
+ '[' -z '' ']'
+ tmpfile=
+ echo -e 'n\n\np\n\n\n+100M\nw'
+ fdisk /dev/
fdisk: cannot open /dev/: Is a directory
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
+ ls /mnt/test_encrypted
ls: cannot access '/mnt/test_encrypted': No such file or directory
+ mkdir /mnt/test_encrypted
+ ls /etc/systemd/system/tangd.socket.d
ls: cannot access '/etc/systemd/system/tangd.socket.d': No such file or directory
+ SOCKET_CONTENT='[Socket]\nListenStream=\nListenStream=8009'
+ mkdir /etc/systemd/system/tangd.socket.d
+ echo -e '[Socket]\nListenStream=\nListenStream=8009'
++ uuidgen
+ UUID=2a301dd2-1062-44e9-afdb-175c28cc278d
+ LOG_INFO 'End of environmental preparation!'
+ message='End of environmental preparation!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!'
Thu Jun 8 12:00:39 2023 - INFO - End of environmental preparation!
++ type -t run_test
+ '[' -n function ']'
+ run_test
+ LOG_INFO 'Start executing testcase.'
+ message='Start executing testcase.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start executing testcase.'
Thu Jun 8 12:00:40 2023 - INFO - Start executing testcase.
+ echo -e '\n\n'
+ cryptsetup-reencrypt --type luks1 --new --reduce-device-size 8M /dev/1
oe_test_high_nbde.sh: line 44: cryptsetup-reencrypt: command not found
+ CHECK_RESULT 127 0 0 'Disk encryption failed'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Disk encryption failed'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Disk encryption failed'
+ LOG_ERROR 'Disk encryption failed'
+ message='Disk encryption failed'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Disk encryption failed'
Thu Jun 8 12:00:42 2023 - ERROR - Disk encryption failed
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_high_nbde.sh line 45'
+ message='oe_test_high_nbde.sh line 45'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_high_nbde.sh line 45'
Thu Jun 8 12:00:44 2023 - ERROR - oe_test_high_nbde.sh line 45
+ '[' 0 -eq 1 ']'
+ return 0
+ echo -e '\n'
+ cryptsetup open /dev/1 test_encrypted
oe_test_high_nbde.sh: line 46: cryptsetup: command not found
+ CHECK_RESULT 127 0 0 'Disk mapping failed'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Disk mapping failed'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Disk mapping failed'
+ LOG_ERROR 'Disk mapping failed'
+ message='Disk mapping failed'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Disk mapping failed'
Thu Jun 8 12:00:46 2023 - ERROR - Disk mapping failed
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_high_nbde.sh line 47'
+ message='oe_test_high_nbde.sh line 47'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_high_nbde.sh line 47'
Thu Jun 8 12:00:47 2023 - ERROR - oe_test_high_nbde.sh line 47
+ '[' 0 -eq 1 ']'
+ return 0
+ mkfs.ext4 /dev/mapper/test_encrypted -F
mke2fs 1.46.5 (30-Dec-2021)
The file /dev/mapper/test_encrypted does not exist and no size was specified.
+ mount /dev/mapper/test_encrypted /mnt/test_encrypted
mount: /mnt/test_encrypted: special device /dev/mapper/test_encrypted does not exist.
+ CHECK_RESULT 32 0 0 'Disk mount failed'
+ actual_result=32
+ expect_result=0
+ mode=0
+ error_log='Disk mount failed'
+ exit_mode=0
+ '[' -z 32 ']'
+ '[' 0 -eq 0 ']'
+ test 32x '!=' 0x
+ test -n 'Disk mount failed'
+ LOG_ERROR 'Disk mount failed'
+ message='Disk mount failed'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Disk mount failed'
Thu Jun 8 12:00:49 2023 - ERROR - Disk mount failed
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_high_nbde.sh line 50'
+ message='oe_test_high_nbde.sh line 50'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_high_nbde.sh line 50'
Thu Jun 8 12:00:51 2023 - ERROR - oe_test_high_nbde.sh line 50
+ '[' 0 -eq 1 ']'
+ return 0
+ cryptsetup luksHeaderBackup /dev/1 --header-backup-file /tmp/header.bin
oe_test_high_nbde.sh: line 51: cryptsetup: command not found
+ CHECK_RESULT 127 0 0 'Backup luksHeader information failed'
+ actual_result=127
+ expect_result=0
+ mode=0
+ error_log='Backup luksHeader information failed'
+ exit_mode=0
+ '[' -z 127 ']'
+ '[' 0 -eq 0 ']'
+ test 127x '!=' 0x
+ test -n 'Backup luksHeader information failed'
+ LOG_ERROR 'Backup luksHeader information failed'
+ message='Backup luksHeader information failed'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Backup luksHeader information failed'
Thu Jun 8 12:00:53 2023 - ERROR - Backup luksHeader information failed
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_high_nbde.sh line 52'
+ message='oe_test_high_nbde.sh line 52'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_high_nbde.sh line 52'
Thu Jun 8 12:00:55 2023 - ERROR - oe_test_high_nbde.sh line 52
+ '[' 0 -eq 1 ']'
+ return 0
+ SLEEP_WAIT 2
+ wait_time=2
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 2 --cmd '' --mode 1
+ systemctl enable tangd.socket
Failed to enable unit: Unit file tangd.socket does not exist.
+ CHECK_RESULT 1 0 0 'Failed to enable tangd.socket service'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to enable tangd.socket service'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to enable tangd.socket service'
+ LOG_ERROR 'Failed to enable tangd.socket service'
+ message='Failed to enable tangd.socket service'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to enable tangd.socket service'
Thu Jun 8 12:01:01 2023 - ERROR - Failed to enable tangd.socket service
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_high_nbde.sh line 55'
+ message='oe_test_high_nbde.sh line 55'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_high_nbde.sh line 55'
Thu Jun 8 12:01:03 2023 - ERROR - oe_test_high_nbde.sh line 55
+ '[' 0 -eq 1 ']'
+ return 0
+ systemctl daemon-reload
+ systemctl show tangd.socket -p Listen
+ grep 8009
+ CHECK_RESULT 1 0 0 'Failed to display the '\''Listen'\'' property of tangd.socket'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to display the '\''Listen'\'' property of tangd.socket'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to display the '\''Listen'\'' property of tangd.socket'
+ LOG_ERROR 'Failed to display the '\''Listen'\'' property of tangd.socket'
+ message='Failed to display the '\''Listen'\'' property of tangd.socket'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to display the '\''Listen'\'' property of tangd.socket'
Thu Jun 8 12:01:18 2023 - ERROR - Failed to display the 'Listen' property of tangd.socket
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_high_nbde.sh line 58'
+ message='oe_test_high_nbde.sh line 58'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_high_nbde.sh line 58'
Thu Jun 8 12:01:19 2023 - ERROR - oe_test_high_nbde.sh line 58
+ '[' 0 -eq 1 ']'
+ return 0
+ systemctl start tangd.socket
Failed to start tangd.socket: Unit tangd.socket not found.
+ CHECK_RESULT 5 0 0 'Failed to start tangd.socket service'
+ actual_result=5
+ expect_result=0
+ mode=0
+ error_log='Failed to start tangd.socket service'
+ exit_mode=0
+ '[' -z 5 ']'
+ '[' 0 -eq 0 ']'
+ test 5x '!=' 0x
+ test -n 'Failed to start tangd.socket service'
+ LOG_ERROR 'Failed to start tangd.socket service'
+ message='Failed to start tangd.socket service'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to start tangd.socket service'
Thu Jun 8 12:01:21 2023 - ERROR - Failed to start tangd.socket service
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_high_nbde.sh line 60'
+ message='oe_test_high_nbde.sh line 60'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_high_nbde.sh line 60'
Thu Jun 8 12:01:23 2023 - ERROR - oe_test_high_nbde.sh line 60
+ '[' 0 -eq 1 ']'
+ return 0
+ SSH_CMD 'systemctl enable tangd.socket;mkdir /etc/systemd/system/tangd.socket.d'
+ cmd='systemctl enable tangd.socket;mkdir /etc/systemd/system/tangd.socket.d'
+ remoteip=
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c 'systemctl enable tangd.socket;mkdir /etc/systemd/system/tangd.socket.d' -i '' -u root -p 'openEuler12#$' -t 300 -o 22
Usage: sshcmd.sh -c "command" -i "remote machinet ip" [-u login_user] [-p login_password] [-o port] [-t timeout]+ ret=1
+ test 1 -ne 0
+ LOG_ERROR 'Failed in remote CMD operation:1'
+ message='Failed in remote CMD operation:1'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed in remote CMD operation:1'
Thu Jun 8 12:01:25 2023 - ERROR - Failed in remote CMD operation:1
+ return 1
+ P_SSH_CMD --node 2 --cmd 'echo -e [Socket]\\nListenStream=\\nListenStream=8009 > /etc/systemd/system/tangd.socket.d/override.conf'
+ python3 /root/mugen/libs/locallibs/ssh_cmd.py --node 2 --cmd 'echo -e [Socket]\\nListenStream=\\nListenStream=8009 > /etc/systemd/system/tangd.socket.d/override.conf'
Thu Jun 8 12:01:32 2023 - ERROR - You need to check the environment configuration file to see if this node information exists.
+ SSH_CMD 'systemctl daemon-reload;systemctl show tangd.socket -p Listen | grep 8009;
systemctl start tangd.socket;systemctl stop firewalld;setenforce 0'
+ cmd='systemctl daemon-reload;systemctl show tangd.socket -p Listen | grep 8009;
systemctl start tangd.socket;systemctl stop firewalld;setenforce 0'
+ remoteip=
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c 'systemctl daemon-reload;systemctl show tangd.socket -p Listen | grep 8009;
systemctl start tangd.socket;systemctl stop firewalld;setenforce 0' -i '' -u root -p 'openEuler12#$' -t 300 -o 22
Usage: sshcmd.sh -c "command" -i "remote machinet ip" [-u login_user] [-p login_password] [-o port] [-t timeout]+ ret=1
+ test 1 -ne 0
+ LOG_ERROR 'Failed in remote CMD operation:1'
+ message='Failed in remote CMD operation:1'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed in remote CMD operation:1'
Thu Jun 8 12:01:34 2023 - ERROR - Failed in remote CMD operation:1
+ return 1
+ curl http://127.0.0.1:8009/adv -o adv.jws
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 127.0.0.1 port 8009 after 95 ms: Couldn't connect to server
+ SLEEP_WAIT 1
+ wait_time=1
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 1 --cmd '' --mode 1
+ expect '-c
set timeout 120
spawn luksmeta init -n -d /dev/1
expect {
"yn" {
send "y\r"
exp_continue
}
timeout
}
'
spawn luksmeta init -n -d /dev/1
couldn't execute "luksmeta": no such file or directory
while executing
"spawn luksmeta init -n -d /dev/1"
+ CHECK_RESULT 0 0 0 'luksmeta init failed'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='luksmeta init failed'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ echo
+ luksmeta save -d /dev/1 -s 0 -u 2a301dd2-1062-44e9-afdb-175c28cc278d
oe_test_high_nbde.sh: line 79: luksmeta: command not found
+ expect '-c
set timeout 120
spawn clevis luks bind -d /dev/1 sss '\''{"t":1,"pins":{"tang":[{"url":"http://127.0.0.1:8009"},{"url":"http://:8009"}]}}'\''
expect {
"ynYN" {
send "y\r"
exp_continue
}
"yn" {
send "y\r"
exp_continue
}
"assword" {
send "\r"
exp_continue
}
timeout
}
'
extra characters after close-brace
while executing
"spawn clevis luks bind -d /dev/1 sss '{"t":1,"pins":{"tang":[{"url":"http://127.0.0.1:8009"},"
+ CHECK_RESULT 0 0 0 'Disk binding failed'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Disk binding failed'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ expect '-c
set timeout 120
spawn clevis luks unbind -d /dev/1 -s 1
expect {
"yn" {
send "y\r"
exp_continue
}
timeout
}
'
spawn clevis luks unbind -d /dev/1 -s 1
couldn't execute "clevis": no such file or directory
while executing
"spawn clevis luks unbind -d /dev/1 -s 1"
+ CHECK_RESULT 0 0 0 'Disk unbinding failed'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Disk unbinding failed'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ LOG_INFO 'Finish testcase execution.'
+ message='Finish testcase execution.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish testcase execution.'
Thu Jun 8 12:01:41 2023 - INFO - Finish testcase execution.
+ CASE_RESULT 0
+ case_re=0
+ test -z 7
+ test 7 -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.'
Thu Jun 8 12:01:44 2023 - ERROR - failed to execute the case.
+ exit 7
+ post_test
+ LOG_INFO 'start environment cleanup.'
+ message='start environment cleanup.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.'
Thu Jun 8 12:01:45 2023 - INFO - start environment cleanup.
+ umount /mnt/test_encrypted
umount: /mnt/test_encrypted: not mounted.
+ cryptsetup close test_encrypted
oe_test_high_nbde.sh: line 118: cryptsetup: command not found
+ mkfs.ext4 /dev/1 -F
mke2fs 1.46.5 (30-Dec-2021)
The file /dev/1 does not exist and no size was specified.
+ echo -e 'd\n\nw'
+ fdisk /dev/
fdisk: cannot open /dev/: Is a directory
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
+ DNF_REMOVE
+ node=1
+ pkg_list=
+ mode=0
+ [[ -z '' ]]
+ [[ -z '' ]]
+ LOG_WARN 'no thing to do.'
+ message='no thing to do.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level warn --message 'no thing to do.'
Thu Jun 8 12:01:48 2023 - WARN - no thing to do.
+ return 0
+ rm -rf secert.jwe adv.jws sec.jwe input-plain.txt /etc/systemd/system/tangd.socket.d /mnt/test_encrypted1 /var/db/tang /tmp/header.bin
+ DNF_REMOVE 2 tang
+ node=2
+ pkg_list=tang
+ mode=0
+ [[ -z '' ]]
+ [[ -z tang ]]
+ '[' 0 -ne 0 ']'
+ '[' 2 == 0 ']'
+ python3 /root/mugen/libs/locallibs/rpm_manage.py remove --node 2 --pkgs tang --tempfile ''
Traceback (most recent call last):
File "/root/mugen/libs/locallibs/rpm_manage.py", line 181, in <module>
exitcode = rpm_remove(args.node, args.pkgs, args.tempfile)
File "/root/mugen/libs/locallibs/rpm_manage.py", line 142, in rpm_remove
conn = ssh_cmd.pssh_conn(
File "/root/mugen/libs/locallibs/ssh_cmd.py", line 53, in pssh_conn
conn.connect(ip, port, user, password, timeout=timeout)
File "/usr/lib/python3.10/site-packages/paramiko/client.py", line 340, in connect
to_try = list(self._families_and_addresses(hostname, port))
File "/usr/lib/python3.10/site-packages/paramiko/client.py", line 203, in _families_and_addresses
addrinfos = socket.getaddrinfo(
File "/usr/lib64/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
+ '[' 0 -ne 0 ']'
+ SSH_CMD 'rm -rf /etc/systemd/system/tangd.socket.d /var/db/tang'
+ cmd='rm -rf /etc/systemd/system/tangd.socket.d /var/db/tang'
+ remoteip=
+ remotepasswd='openEuler12#$'
+ remoteuser=root
+ timeout=300
+ connport=22
+ bash /root/mugen/libs/locallibs/sshcmd.sh -c 'rm -rf /etc/systemd/system/tangd.socket.d /var/db/tang' -i '' -u root -p 'openEuler12#$' -t 300 -o 22
Usage: sshcmd.sh -c "command" -i "remote machinet ip" [-u login_user] [-p login_password] [-o port] [-t timeout]+ ret=1
+ test 1 -ne 0
+ LOG_ERROR 'Failed in remote CMD operation:1'
+ message='Failed in remote CMD operation:1'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed in remote CMD operation:1'
Thu Jun 8 12:01:57 2023 - ERROR - Failed in remote CMD operation:1
+ return 1
+ mkfs.ext4 /dev/ -F
mke2fs 1.46.5 (30-Dec-2021)
mkfs.ext4: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
+ LOG_INFO 'Finish environment cleanup!'
+ message='Finish environment cleanup!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!'
Thu Jun 8 12:01:59 2023 - INFO - Finish environment cleanup!